2018-08-07 16:52:11 +01:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2018-10-17 12:40:11 +01:00
|
|
|
// Source: storj.io/storj/pkg/pointerdb/pdbclient (interfaces: Client)
|
2018-08-07 16:52:11 +01:00
|
|
|
|
|
|
|
// Package mock_pointerdb is a generated GoMock package.
|
|
|
|
package mock_pointerdb
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
2018-11-06 17:49:17 +00:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
2018-11-26 18:21:44 +00:00
|
|
|
reflect "reflect"
|
2018-10-17 12:40:11 +01:00
|
|
|
pb "storj.io/storj/pkg/pb"
|
|
|
|
pdbclient "storj.io/storj/pkg/pointerdb/pdbclient"
|
2018-08-07 16:52:11 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
// MockClient is a mock of Client interface
|
|
|
|
type MockClient struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockClientMockRecorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// MockClientMockRecorder is the mock recorder for MockClient
|
|
|
|
type MockClientMockRecorder struct {
|
|
|
|
mock *MockClient
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockClient creates a new mock instance
|
|
|
|
func NewMockClient(ctrl *gomock.Controller) *MockClient {
|
|
|
|
mock := &MockClient{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockClientMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockClient) EXPECT() *MockClientMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// Delete mocks base method
|
2018-10-25 21:28:16 +01:00
|
|
|
func (m *MockClient) Delete(arg0 context.Context, arg1 string) error {
|
2018-08-07 16:52:11 +01:00
|
|
|
ret := m.ctrl.Call(m, "Delete", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Delete indicates an expected call of Delete
|
|
|
|
func (mr *MockClientMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockClient)(nil).Delete), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get mocks base method
|
2018-11-26 18:21:44 +00:00
|
|
|
func (m *MockClient) Get(arg0 context.Context, arg1 string) (*pb.Pointer, []*pb.Node, *pb.PayerBandwidthAllocation, error) {
|
2018-08-07 16:52:11 +01:00
|
|
|
ret := m.ctrl.Call(m, "Get", arg0, arg1)
|
2018-09-18 05:39:06 +01:00
|
|
|
ret0, _ := ret[0].(*pb.Pointer)
|
2018-11-06 17:03:11 +00:00
|
|
|
ret1, _ := ret[1].([]*pb.Node)
|
2018-11-26 18:21:44 +00:00
|
|
|
ret2, _ := ret[2].(*pb.PayerBandwidthAllocation)
|
|
|
|
ret3, _ := ret[3].(error)
|
|
|
|
return ret0, ret1, ret2, ret3
|
2018-08-07 16:52:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Get indicates an expected call of Get
|
|
|
|
func (mr *MockClientMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockClient)(nil).Get), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
|
|
|
// List mocks base method
|
2018-10-25 21:28:16 +01:00
|
|
|
func (m *MockClient) List(arg0 context.Context, arg1, arg2, arg3 string, arg4 bool, arg5 int, arg6 uint32) ([]pdbclient.ListItem, bool, error) {
|
2018-08-07 16:52:11 +01:00
|
|
|
ret := m.ctrl.Call(m, "List", arg0, arg1, arg2, arg3, arg4, arg5, arg6)
|
2018-08-22 16:07:00 +01:00
|
|
|
ret0, _ := ret[0].([]pdbclient.ListItem)
|
2018-08-07 16:52:11 +01:00
|
|
|
ret1, _ := ret[1].(bool)
|
|
|
|
ret2, _ := ret[2].(error)
|
|
|
|
return ret0, ret1, ret2
|
|
|
|
}
|
|
|
|
|
|
|
|
// List indicates an expected call of List
|
|
|
|
func (mr *MockClientMockRecorder) List(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockClient)(nil).List), arg0, arg1, arg2, arg3, arg4, arg5, arg6)
|
|
|
|
}
|
|
|
|
|
2018-10-30 16:24:46 +00:00
|
|
|
// PayerBandwidthAllocation mocks base method
|
2018-11-26 18:21:44 +00:00
|
|
|
func (m *MockClient) PayerBandwidthAllocation(arg0 context.Context, arg1 pb.PayerBandwidthAllocation_Action) (*pb.PayerBandwidthAllocation, error) {
|
|
|
|
ret := m.ctrl.Call(m, "PayerBandwidthAllocation", arg0, arg1)
|
2018-10-30 16:24:46 +00:00
|
|
|
ret0, _ := ret[0].(*pb.PayerBandwidthAllocation)
|
2018-11-26 18:21:44 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
2018-10-30 16:24:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// PayerBandwidthAllocation indicates an expected call of PayerBandwidthAllocation
|
2018-11-26 18:21:44 +00:00
|
|
|
func (mr *MockClientMockRecorder) PayerBandwidthAllocation(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PayerBandwidthAllocation", reflect.TypeOf((*MockClient)(nil).PayerBandwidthAllocation), arg0, arg1)
|
2018-10-30 16:24:46 +00:00
|
|
|
}
|
|
|
|
|
2018-08-07 16:52:11 +01:00
|
|
|
// Put mocks base method
|
2018-10-25 21:28:16 +01:00
|
|
|
func (m *MockClient) Put(arg0 context.Context, arg1 string, arg2 *pb.Pointer) error {
|
2018-08-07 16:52:11 +01:00
|
|
|
ret := m.ctrl.Call(m, "Put", arg0, arg1, arg2)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Put indicates an expected call of Put
|
|
|
|
func (mr *MockClientMockRecorder) Put(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockClient)(nil).Put), arg0, arg1, arg2)
|
|
|
|
}
|
2018-10-17 12:40:11 +01:00
|
|
|
|
|
|
|
// SignedMessage mocks base method
|
2018-11-05 15:12:19 +00:00
|
|
|
func (m *MockClient) SignedMessage() *pb.SignedMessage {
|
2018-10-17 12:40:11 +01:00
|
|
|
ret := m.ctrl.Call(m, "SignedMessage")
|
|
|
|
ret0, _ := ret[0].(*pb.SignedMessage)
|
2018-11-05 15:12:19 +00:00
|
|
|
return ret0
|
2018-10-17 12:40:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// SignedMessage indicates an expected call of SignedMessage
|
|
|
|
func (mr *MockClientMockRecorder) SignedMessage() *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SignedMessage", reflect.TypeOf((*MockClient)(nil).SignedMessage))
|
|
|
|
}
|