2018-07-03 09:35:01 +01:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2019-02-20 05:36:08 +00:00
|
|
|
// Source: storj.io/storj/pkg/piecestore/psclient (interfaces: Client)
|
2018-09-11 13:40:45 +01:00
|
|
|
|
2018-07-03 09:35:01 +01:00
|
|
|
// Package ecclient is a generated GoMock package.
|
|
|
|
package ecclient
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
2019-02-20 05:36:08 +00:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
2018-07-03 09:35:01 +01:00
|
|
|
io "io"
|
|
|
|
reflect "reflect"
|
2018-09-18 05:39:06 +01:00
|
|
|
pb "storj.io/storj/pkg/pb"
|
2019-02-20 05:36:08 +00:00
|
|
|
psclient "storj.io/storj/pkg/piecestore/psclient"
|
2018-07-03 09:35:01 +01:00
|
|
|
ranger "storj.io/storj/pkg/ranger"
|
2019-02-20 05:36:08 +00:00
|
|
|
storj "storj.io/storj/pkg/storj"
|
|
|
|
time "time"
|
2018-07-03 09:35:01 +01:00
|
|
|
)
|
|
|
|
|
2018-11-06 17:49:17 +00:00
|
|
|
// MockPSClient is a mock of Client interface
|
2018-07-03 09:35:01 +01:00
|
|
|
type MockPSClient struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockPSClientMockRecorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// MockPSClientMockRecorder is the mock recorder for MockPSClient
|
|
|
|
type MockPSClientMockRecorder struct {
|
|
|
|
mock *MockPSClient
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockPSClient creates a new mock instance
|
|
|
|
func NewMockPSClient(ctrl *gomock.Controller) *MockPSClient {
|
|
|
|
mock := &MockPSClient{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockPSClientMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockPSClient) EXPECT() *MockPSClientMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2018-08-20 16:11:54 +01:00
|
|
|
// Close mocks base method
|
|
|
|
func (m *MockPSClient) Close() error {
|
2019-02-20 05:36:08 +00:00
|
|
|
m.ctrl.T.Helper()
|
2018-08-20 16:11:54 +01:00
|
|
|
ret := m.ctrl.Call(m, "Close")
|
2018-07-03 09:35:01 +01:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2018-08-20 16:11:54 +01:00
|
|
|
// Close indicates an expected call of Close
|
|
|
|
func (mr *MockPSClientMockRecorder) Close() *gomock.Call {
|
2019-02-20 05:36:08 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2018-08-20 16:11:54 +01:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockPSClient)(nil).Close))
|
2018-07-03 09:35:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Delete mocks base method
|
2019-02-20 05:36:08 +00:00
|
|
|
func (m *MockPSClient) Delete(arg0 context.Context, arg1 psclient.PieceID, arg2 storj.NodeID) error {
|
|
|
|
m.ctrl.T.Helper()
|
2018-10-17 12:40:11 +01:00
|
|
|
ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2)
|
2018-07-03 09:35:01 +01:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Delete indicates an expected call of Delete
|
2018-10-17 12:40:11 +01:00
|
|
|
func (mr *MockPSClientMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call {
|
2019-02-20 05:36:08 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2018-10-17 12:40:11 +01:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockPSClient)(nil).Delete), arg0, arg1, arg2)
|
2018-07-03 09:35:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Get mocks base method
|
2019-02-20 05:36:08 +00:00
|
|
|
func (m *MockPSClient) Get(arg0 context.Context, arg1 psclient.PieceID, arg2 int64, arg3 *pb.PayerBandwidthAllocation) (ranger.Ranger, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2, arg3)
|
2018-09-14 15:10:43 +01:00
|
|
|
ret0, _ := ret[0].(ranger.Ranger)
|
2018-07-03 09:35:01 +01:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get indicates an expected call of Get
|
2019-02-20 05:36:08 +00:00
|
|
|
func (mr *MockPSClientMockRecorder) Get(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockPSClient)(nil).Get), arg0, arg1, arg2, arg3)
|
2018-07-03 09:35:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Meta mocks base method
|
2019-02-20 05:36:08 +00:00
|
|
|
func (m *MockPSClient) Meta(arg0 context.Context, arg1 psclient.PieceID) (*pb.PieceSummary, error) {
|
|
|
|
m.ctrl.T.Helper()
|
2018-07-03 09:35:01 +01:00
|
|
|
ret := m.ctrl.Call(m, "Meta", arg0, arg1)
|
2018-09-18 05:39:06 +01:00
|
|
|
ret0, _ := ret[0].(*pb.PieceSummary)
|
2018-07-03 09:35:01 +01:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// Meta indicates an expected call of Meta
|
|
|
|
func (mr *MockPSClientMockRecorder) Meta(arg0, arg1 interface{}) *gomock.Call {
|
2019-02-20 05:36:08 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2018-07-03 09:35:01 +01:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Meta", reflect.TypeOf((*MockPSClient)(nil).Meta), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Put mocks base method
|
2019-02-20 05:36:08 +00:00
|
|
|
func (m *MockPSClient) Put(arg0 context.Context, arg1 psclient.PieceID, arg2 io.Reader, arg3 time.Time, arg4 *pb.PayerBandwidthAllocation) error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Put", arg0, arg1, arg2, arg3, arg4)
|
2018-07-03 09:35:01 +01:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Put indicates an expected call of Put
|
2019-02-20 05:36:08 +00:00
|
|
|
func (mr *MockPSClientMockRecorder) Put(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockPSClient)(nil).Put), arg0, arg1, arg2, arg3, arg4)
|
2018-09-11 13:40:45 +01:00
|
|
|
}
|