mock_storage

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mock_storage is a generated GoMock package.

Index

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) Close

func (m *MockDestination) Close()

Close mocks base method.

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

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.

func (*MockDestination) GetFileInfo

func (m *MockDestination) GetFileInfo(ctx context.Context, filePath string, protocol protoc.Client) (xferfile.Info, error)

GetFileInfo mocks base method.

func (*MockDestination) TransferFileChunk

func (m *MockDestination) TransferFileChunk(ctx context.Context, filePath string, reader io.Reader, offset int64, protocol protoc.Client) (int64, error)

TransferFileChunk mocks base method.

type MockDestinationMockRecorder

type MockDestinationMockRecorder struct {
	// contains filtered or unexported fields
}

MockDestinationMockRecorder is the mock recorder for MockDestination.

func (*MockDestinationMockRecorder) Close

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) Close

func (m *MockSource) Close()

Close mocks base method.

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.

func (*MockSource) GetFileInfo

func (m *MockSource) GetFileInfo(ctx context.Context, filePath string, protocol protoc.Client) (xferfile.Info, error)

GetFileInfo 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL