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 ¶
- type MockAuthenticationHandler
- type MockAuthenticationHandlerMockRecorder
- type MockClient
- func (m *MockClient) Close() error
- func (m *MockClient) Connect(ctx context.Context) error
- func (m *MockClient) Download(ctx context.Context, remotePath, localPath string, opts ...sftp.DownloadOption) error
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) List(ctx context.Context, remotePath string) ([]os.FileInfo, error)
- func (m *MockClient) Mkdir(ctx context.Context, remotePath string) error
- func (m *MockClient) Remove(ctx context.Context, remotePath string) error
- func (m *MockClient) Rename(ctx context.Context, oldPath, newPath string) error
- func (m *MockClient) Stat(ctx context.Context, remotePath string) (os.FileInfo, error)
- func (m *MockClient) Upload(ctx context.Context, localPath, remotePath string, opts ...sftp.UploadOption) error
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) Close() *gomock.Call
- func (mr *MockClientMockRecorder) Connect(ctx interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Download(ctx, remotePath, localPath interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) List(ctx, remotePath interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Mkdir(ctx, remotePath interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Remove(ctx, remotePath interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Rename(ctx, oldPath, newPath interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Stat(ctx, remotePath interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Upload(ctx, localPath, remotePath interface{}, opts ...interface{}) *gomock.Call
- type MockConnectionManager
- type MockConnectionManagerMockRecorder
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 ¶
func (m *MockAuthenticationHandler) EXPECT() *MockAuthenticationHandlerMockRecorder
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) 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) 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) 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 ¶
func (m *MockConnectionManager) EXPECT() *MockConnectionManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConnectionManager) GetConnection ¶
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 ¶
func (mr *MockConnectionManagerMockRecorder) Close() *gomock.Call
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.