2018-07-19 23:57:22 +01:00
|
|
|
// Copyright (C) 2018 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2018-09-18 05:39:06 +01:00
|
|
|
// Source: storj.io/storj/pkg/pb (interfaces: PointerDBClient)
|
2018-07-19 23:57:22 +01:00
|
|
|
|
2018-08-22 16:07:00 +01:00
|
|
|
// Package pdbclient is a generated GoMock package.
|
|
|
|
package pdbclient
|
2018-07-19 23:57:22 +01:00
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
2018-07-27 07:02:59 +01:00
|
|
|
reflect "reflect"
|
|
|
|
|
2018-07-19 23:57:22 +01:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
|
|
grpc "google.golang.org/grpc"
|
2018-10-16 12:43:44 +01:00
|
|
|
|
2018-11-26 18:21:44 +00:00
|
|
|
pb "storj.io/storj/pkg/pb"
|
2018-07-19 23:57:22 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
// MockPointerDBClient is a mock of PointerDBClient interface
|
|
|
|
type MockPointerDBClient struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockPointerDBClientMockRecorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// MockPointerDBClientMockRecorder is the mock recorder for MockPointerDBClient
|
|
|
|
type MockPointerDBClientMockRecorder struct {
|
|
|
|
mock *MockPointerDBClient
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockPointerDBClient creates a new mock instance
|
|
|
|
func NewMockPointerDBClient(ctrl *gomock.Controller) *MockPointerDBClient {
|
|
|
|
mock := &MockPointerDBClient{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockPointerDBClientMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockPointerDBClient) EXPECT() *MockPointerDBClientMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// Delete mocks base method
|
2018-09-18 05:39:06 +01:00
|
|
|
func (m *MockPointerDBClient) Delete(arg0 context.Context, arg1 *pb.DeleteRequest, arg2 ...grpc.CallOption) (*pb.DeleteResponse, error) {
|
2018-07-19 23:57:22 +01:00
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "Delete", varargs...)
|
2018-09-18 05:39:06 +01:00
|
|
|
ret0, _ := ret[0].(*pb.DeleteResponse)
|
2018-07-19 23:57:22 +01:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// Delete indicates an expected call of Delete
|
|
|
|
func (mr *MockPointerDBClientMockRecorder) Delete(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockPointerDBClient)(nil).Delete), varargs...)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get mocks base method
|
2018-09-18 05:39:06 +01:00
|
|
|
func (m *MockPointerDBClient) Get(arg0 context.Context, arg1 *pb.GetRequest, arg2 ...grpc.CallOption) (*pb.GetResponse, error) {
|
2018-07-19 23:57:22 +01:00
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "Get", varargs...)
|
2018-09-18 05:39:06 +01:00
|
|
|
ret0, _ := ret[0].(*pb.GetResponse)
|
2018-07-19 23:57:22 +01:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get indicates an expected call of Get
|
|
|
|
func (mr *MockPointerDBClientMockRecorder) Get(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockPointerDBClient)(nil).Get), varargs...)
|
|
|
|
}
|
|
|
|
|
|
|
|
// List mocks base method
|
2018-09-18 05:39:06 +01:00
|
|
|
func (m *MockPointerDBClient) List(arg0 context.Context, arg1 *pb.ListRequest, arg2 ...grpc.CallOption) (*pb.ListResponse, error) {
|
2018-07-19 23:57:22 +01:00
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "List", varargs...)
|
2018-09-18 05:39:06 +01:00
|
|
|
ret0, _ := ret[0].(*pb.ListResponse)
|
2018-07-19 23:57:22 +01:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// List indicates an expected call of List
|
|
|
|
func (mr *MockPointerDBClientMockRecorder) List(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockPointerDBClient)(nil).List), varargs...)
|
|
|
|
}
|
|
|
|
|
2018-11-26 18:21:44 +00:00
|
|
|
// PayerBandwidthAllocation mocks base method
|
|
|
|
func (m *MockPointerDBClient) PayerBandwidthAllocation(arg0 context.Context, arg1 *pb.PayerBandwidthAllocationRequest, arg2 ...grpc.CallOption) (*pb.PayerBandwidthAllocationResponse, error) {
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "PayerBandwidthAllocation", varargs...)
|
|
|
|
ret0, _ := ret[0].(*pb.PayerBandwidthAllocationResponse)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
2018-07-30 20:25:18 +01:00
|
|
|
}
|
|
|
|
|
2018-11-26 18:21:44 +00:00
|
|
|
// PayerBandwidthAllocation indicates an expected call of PayerBandwidthAllocation
|
|
|
|
func (mr *MockPointerDBClientMockRecorder) PayerBandwidthAllocation(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PayerBandwidthAllocation", reflect.TypeOf((*MockPointerDBClient)(nil).PayerBandwidthAllocation), varargs...)
|
2018-07-30 20:25:18 +01:00
|
|
|
}
|
|
|
|
|
2018-07-19 23:57:22 +01:00
|
|
|
// Put mocks base method
|
2018-09-18 05:39:06 +01:00
|
|
|
func (m *MockPointerDBClient) Put(arg0 context.Context, arg1 *pb.PutRequest, arg2 ...grpc.CallOption) (*pb.PutResponse, error) {
|
2018-07-19 23:57:22 +01:00
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "Put", varargs...)
|
2018-09-18 05:39:06 +01:00
|
|
|
ret0, _ := ret[0].(*pb.PutResponse)
|
2018-07-19 23:57:22 +01:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// Put indicates an expected call of Put
|
|
|
|
func (mr *MockPointerDBClientMockRecorder) Put(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockPointerDBClient)(nil).Put), varargs...)
|
2018-07-27 07:02:59 +01:00
|
|
|
}
|