2018-08-07 16:52:11 +01:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: storj.io/storj/pkg/storage/ec (interfaces: Client)
|
|
|
|
|
|
|
|
// Package mock_ecclient is a generated GoMock package.
|
|
|
|
package mock_ecclient
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
io "io"
|
|
|
|
reflect "reflect"
|
2018-08-13 09:39:45 +01:00
|
|
|
time "time"
|
|
|
|
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
2018-08-07 16:52:11 +01:00
|
|
|
eestream "storj.io/storj/pkg/eestream"
|
|
|
|
client "storj.io/storj/pkg/piecestore/rpc/client"
|
|
|
|
ranger "storj.io/storj/pkg/ranger"
|
|
|
|
overlay "storj.io/storj/protos/overlay"
|
|
|
|
)
|
|
|
|
|
|
|
|
// 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
|
|
|
|
func (m *MockClient) Delete(arg0 context.Context, arg1 []*overlay.Node, arg2 client.PieceID) error {
|
|
|
|
ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Delete indicates an expected call of Delete
|
|
|
|
func (mr *MockClientMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockClient)(nil).Delete), arg0, arg1, arg2)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get mocks base method
|
2018-09-14 15:10:43 +01:00
|
|
|
func (m *MockClient) Get(arg0 context.Context, arg1 []*overlay.Node, arg2 eestream.ErasureScheme, arg3 client.PieceID, arg4 int64) (ranger.Ranger, error) {
|
2018-08-07 16:52:11 +01:00
|
|
|
ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2, arg3, arg4)
|
2018-09-14 15:10:43 +01:00
|
|
|
ret0, _ := ret[0].(ranger.Ranger)
|
2018-08-07 16:52:11 +01:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get indicates an expected call of Get
|
|
|
|
func (mr *MockClientMockRecorder) Get(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockClient)(nil).Get), arg0, arg1, arg2, arg3, arg4)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Put mocks base method
|
|
|
|
func (m *MockClient) Put(arg0 context.Context, arg1 []*overlay.Node, arg2 eestream.RedundancyStrategy, arg3 client.PieceID, arg4 io.Reader, arg5 time.Time) error {
|
|
|
|
ret := m.ctrl.Call(m, "Put", arg0, arg1, arg2, arg3, arg4, arg5)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Put indicates an expected call of Put
|
|
|
|
func (mr *MockClientMockRecorder) Put(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockClient)(nil).Put), arg0, arg1, arg2, arg3, arg4, arg5)
|
|
|
|
}
|