sftp_mocks

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package sftp_mocks is a generated GoMock package.

Package sftp_mocks is a generated GoMock package.

Package sftp_mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthenticationHandler

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

MockAuthenticationHandler is a mock of AuthenticationHandler interface.

func NewMockAuthenticationHandler

func NewMockAuthenticationHandler(ctrl *gomock.Controller) *MockAuthenticationHandler

NewMockAuthenticationHandler creates a new mock instance.

func (*MockAuthenticationHandler) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAuthenticationHandler) GetAuthMethods

func (m *MockAuthenticationHandler) GetAuthMethods() ([]ssh.AuthMethod, error)

GetAuthMethods mocks base method.

func (*MockAuthenticationHandler) ValidateCredentials

func (m *MockAuthenticationHandler) ValidateCredentials() error

ValidateCredentials mocks base method.

type MockAuthenticationHandlerMockRecorder

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

MockAuthenticationHandlerMockRecorder is the mock recorder for MockAuthenticationHandler.

func (*MockAuthenticationHandlerMockRecorder) GetAuthMethods

func (mr *MockAuthenticationHandlerMockRecorder) GetAuthMethods() *gomock.Call

GetAuthMethods indicates an expected call of GetAuthMethods.

func (*MockAuthenticationHandlerMockRecorder) ValidateCredentials

func (mr *MockAuthenticationHandlerMockRecorder) ValidateCredentials() *gomock.Call

ValidateCredentials indicates an expected call of ValidateCredentials.

type MockClient

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

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) Close

func (m *MockClient) Close() error

Close mocks base method.

func (*MockClient) Connect

func (m *MockClient) Connect(ctx context.Context) error

Connect mocks base method.

func (*MockClient) Download

func (m *MockClient) Download(ctx context.Context, remotePath, localPath string, opts ...sftp.DownloadOption) error

Download mocks base method.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockClient) List

func (m *MockClient) List(ctx context.Context, remotePath string) ([]os.FileInfo, error)

List mocks base method.

func (*MockClient) Mkdir

func (m *MockClient) Mkdir(ctx context.Context, remotePath string) error

Mkdir mocks base method.

func (*MockClient) Remove

func (m *MockClient) Remove(ctx context.Context, remotePath string) error

Remove mocks base method.

func (*MockClient) Rename

func (m *MockClient) Rename(ctx context.Context, oldPath, newPath string) error

Rename mocks base method.

func (*MockClient) Stat

func (m *MockClient) Stat(ctx context.Context, remotePath string) (os.FileInfo, error)

Stat mocks base method.

func (*MockClient) Upload

func (m *MockClient) Upload(ctx context.Context, localPath, remotePath string, opts ...sftp.UploadOption) error

Upload mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) Close

func (mr *MockClientMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockClientMockRecorder) Connect

func (mr *MockClientMockRecorder) Connect(ctx interface{}) *gomock.Call

Connect indicates an expected call of Connect.

func (*MockClientMockRecorder) Download

func (mr *MockClientMockRecorder) Download(ctx, remotePath, localPath interface{}, opts ...interface{}) *gomock.Call

Download indicates an expected call of Download.

func (*MockClientMockRecorder) List

func (mr *MockClientMockRecorder) List(ctx, remotePath interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockClientMockRecorder) Mkdir

func (mr *MockClientMockRecorder) Mkdir(ctx, remotePath interface{}) *gomock.Call

Mkdir indicates an expected call of Mkdir.

func (*MockClientMockRecorder) Remove

func (mr *MockClientMockRecorder) Remove(ctx, remotePath interface{}) *gomock.Call

Remove indicates an expected call of Remove.

func (*MockClientMockRecorder) Rename

func (mr *MockClientMockRecorder) Rename(ctx, oldPath, newPath interface{}) *gomock.Call

Rename indicates an expected call of Rename.

func (*MockClientMockRecorder) Stat

func (mr *MockClientMockRecorder) Stat(ctx, remotePath interface{}) *gomock.Call

Stat indicates an expected call of Stat.

func (*MockClientMockRecorder) Upload

func (mr *MockClientMockRecorder) Upload(ctx, localPath, remotePath interface{}, opts ...interface{}) *gomock.Call

Upload indicates an expected call of Upload.

type MockConnectionManager

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

MockConnectionManager is a mock of ConnectionManager interface.

func NewMockConnectionManager

func NewMockConnectionManager(ctrl *gomock.Controller) *MockConnectionManager

NewMockConnectionManager creates a new mock instance.

func (*MockConnectionManager) Close

func (m *MockConnectionManager) Close() error

Close mocks base method.

func (*MockConnectionManager) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockConnectionManager) GetConnection

func (m *MockConnectionManager) GetConnection(ctx context.Context) (*sftp.Client, error)

GetConnection mocks base method.

func (*MockConnectionManager) ReleaseConnection

func (m *MockConnectionManager) ReleaseConnection(client *sftp.Client) error

ReleaseConnection mocks base method.

type MockConnectionManagerMockRecorder

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

MockConnectionManagerMockRecorder is the mock recorder for MockConnectionManager.

func (*MockConnectionManagerMockRecorder) Close

Close indicates an expected call of Close.

func (*MockConnectionManagerMockRecorder) GetConnection

func (mr *MockConnectionManagerMockRecorder) GetConnection(ctx interface{}) *gomock.Call

GetConnection indicates an expected call of GetConnection.

func (*MockConnectionManagerMockRecorder) ReleaseConnection

func (mr *MockConnectionManagerMockRecorder) ReleaseConnection(client interface{}) *gomock.Call

ReleaseConnection indicates an expected call of ReleaseConnection.

Jump to

Keyboard shortcuts

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