Documentation
¶
Overview ¶
Package mock_storage is a generated GoMock package.
Index ¶
- type MockDestination
- func (m *MockDestination) Close()
- func (m *MockDestination) CreateFile(ctx context.Context, path string, size int64, modTime time.Time, ...) error
- func (m *MockDestination) DeleteFile(ctx context.Context, filePath string, protocol protoc.Client) error
- func (m *MockDestination) EXPECT() *MockDestinationMockRecorder
- func (m *MockDestination) FinalizeTransfer(ctx context.Context, filePath string, protocol protoc.Client) error
- func (m *MockDestination) GetFileInfo(ctx context.Context, filePath string, protocol protoc.Client) (xferfile.Info, error)
- func (m *MockDestination) TransferFileChunk(ctx context.Context, filePath string, reader io.Reader, offset int64, ...) (int64, error)
- type MockDestinationMockRecorder
- func (mr *MockDestinationMockRecorder) Close() *gomock.Call
- func (mr *MockDestinationMockRecorder) CreateFile(ctx, path, size, modTime, protocol any) *gomock.Call
- func (mr *MockDestinationMockRecorder) DeleteFile(ctx, filePath, protocol any) *gomock.Call
- func (mr *MockDestinationMockRecorder) FinalizeTransfer(ctx, filePath, protocol any) *gomock.Call
- func (mr *MockDestinationMockRecorder) GetFileInfo(ctx, filePath, protocol any) *gomock.Call
- func (mr *MockDestinationMockRecorder) TransferFileChunk(ctx, filePath, reader, offset, protocol any) *gomock.Call
- type MockSource
- func (m *MockSource) Close()
- func (m *MockSource) EXPECT() *MockSourceMockRecorder
- func (m *MockSource) GetFileFromOffset(ctx context.Context, filePath string, offset int64, credential protoc.Client) (io.ReadCloser, error)
- func (m *MockSource) GetFileInfo(ctx context.Context, filePath string, protocol protoc.Client) (xferfile.Info, error)
- type MockSourceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDestination ¶
type MockDestination struct {
// contains filtered or unexported fields
}
MockDestination is a mock of Destination interface.
func NewMockDestination ¶
func NewMockDestination(ctrl *gomock.Controller) *MockDestination
NewMockDestination creates a new mock instance.
func (*MockDestination) CreateFile ¶
func (m *MockDestination) CreateFile(ctx context.Context, path string, size int64, modTime time.Time, protocol protoc.Client) error
CreateFile mocks base method.
func (*MockDestination) DeleteFile ¶
func (m *MockDestination) DeleteFile(ctx context.Context, filePath string, protocol protoc.Client) error
DeleteFile mocks base method.
func (*MockDestination) EXPECT ¶
func (m *MockDestination) EXPECT() *MockDestinationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDestination) FinalizeTransfer ¶
func (m *MockDestination) FinalizeTransfer(ctx context.Context, filePath string, protocol protoc.Client) error
FinalizeTransfer mocks base method.
type MockDestinationMockRecorder ¶
type MockDestinationMockRecorder struct {
// contains filtered or unexported fields
}
MockDestinationMockRecorder is the mock recorder for MockDestination.
func (*MockDestinationMockRecorder) Close ¶
func (mr *MockDestinationMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockDestinationMockRecorder) CreateFile ¶
func (mr *MockDestinationMockRecorder) CreateFile(ctx, path, size, modTime, protocol any) *gomock.Call
CreateFile indicates an expected call of CreateFile.
func (*MockDestinationMockRecorder) DeleteFile ¶
func (mr *MockDestinationMockRecorder) DeleteFile(ctx, filePath, protocol any) *gomock.Call
DeleteFile indicates an expected call of DeleteFile.
func (*MockDestinationMockRecorder) FinalizeTransfer ¶
func (mr *MockDestinationMockRecorder) FinalizeTransfer(ctx, filePath, protocol any) *gomock.Call
FinalizeTransfer indicates an expected call of FinalizeTransfer.
func (*MockDestinationMockRecorder) GetFileInfo ¶
func (mr *MockDestinationMockRecorder) GetFileInfo(ctx, filePath, protocol any) *gomock.Call
GetFileInfo indicates an expected call of GetFileInfo.
func (*MockDestinationMockRecorder) TransferFileChunk ¶
func (mr *MockDestinationMockRecorder) TransferFileChunk(ctx, filePath, reader, offset, protocol any) *gomock.Call
TransferFileChunk indicates an expected call of TransferFileChunk.
type MockSource ¶
type MockSource struct {
// contains filtered or unexported fields
}
MockSource is a mock of Source interface.
func NewMockSource ¶
func NewMockSource(ctrl *gomock.Controller) *MockSource
NewMockSource creates a new mock instance.
func (*MockSource) EXPECT ¶
func (m *MockSource) EXPECT() *MockSourceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSource) GetFileFromOffset ¶
func (m *MockSource) GetFileFromOffset(ctx context.Context, filePath string, offset int64, credential protoc.Client) (io.ReadCloser, error)
GetFileFromOffset mocks base method.
type MockSourceMockRecorder ¶
type MockSourceMockRecorder struct {
// contains filtered or unexported fields
}
MockSourceMockRecorder is the mock recorder for MockSource.
func (*MockSourceMockRecorder) Close ¶
func (mr *MockSourceMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockSourceMockRecorder) GetFileFromOffset ¶
func (mr *MockSourceMockRecorder) GetFileFromOffset(ctx, filePath, offset, credential any) *gomock.Call
GetFileFromOffset indicates an expected call of GetFileFromOffset.
func (*MockSourceMockRecorder) GetFileInfo ¶
func (mr *MockSourceMockRecorder) GetFileInfo(ctx, filePath, protocol any) *gomock.Call
GetFileInfo indicates an expected call of GetFileInfo.