Documentation
¶
Index ¶
- type Connection
- func (_m *Connection) Cd(path string) error
- func (_m *Connection) Download(ctx context.Context, path string) ([]byte, error)
- func (_m *Connection) EnableExplicitTLSMode() error
- func (_m *Connection) IsDir(ctx context.Context, path string) (bool, error)
- func (_m *Connection) List(ctx context.Context, options *connection.ListOptions) ([]*entities.Entry, error)
- func (_m *Connection) Login(user string, password string) error
- func (_m *Connection) Mkdir(path string) error
- func (_m *Connection) Move(oldPath string, newPath string) error
- func (_m *Connection) Ready() error
- func (_m *Connection) RemoveDir(path string) error
- func (_m *Connection) RemoveFile(path string) error
- func (_m *Connection) Size(path string) (uint64, error)
- func (_m *Connection) Status() (*entities.Status, error)
- func (_m *Connection) Stop() error
- func (_m *Connection) Upload(ctx context.Context, options *connection.UploadOptions) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
Connection is an autogenerated mock type for the Connection type
func NewConnection ¶
func NewConnection(t mockConstructorTestingTNewConnection) *Connection
NewConnection creates a new instance of Connection. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Connection) Cd ¶
func (_m *Connection) Cd(path string) error
Cd provides a mock function with given fields: path
func (*Connection) EnableExplicitTLSMode ¶
func (_m *Connection) EnableExplicitTLSMode() error
EnableExplicitTLSMode provides a mock function with given fields:
func (*Connection) List ¶
func (_m *Connection) List(ctx context.Context, options *connection.ListOptions) ([]*entities.Entry, error)
List provides a mock function with given fields: ctx, options
func (*Connection) Login ¶
func (_m *Connection) Login(user string, password string) error
Login provides a mock function with given fields: user, password
func (*Connection) Mkdir ¶
func (_m *Connection) Mkdir(path string) error
Mkdir provides a mock function with given fields: path
func (*Connection) Move ¶
func (_m *Connection) Move(oldPath string, newPath string) error
Move provides a mock function with given fields: oldPath, newPath
func (*Connection) Ready ¶
func (_m *Connection) Ready() error
Ready provides a mock function with given fields:
func (*Connection) RemoveDir ¶
func (_m *Connection) RemoveDir(path string) error
RemoveDir provides a mock function with given fields: path
func (*Connection) RemoveFile ¶
func (_m *Connection) RemoveFile(path string) error
RemoveFile provides a mock function with given fields: path
func (*Connection) Size ¶
func (_m *Connection) Size(path string) (uint64, error)
Size provides a mock function with given fields: path
func (*Connection) Status ¶
func (_m *Connection) Status() (*entities.Status, error)
Status provides a mock function with given fields:
func (*Connection) Stop ¶
func (_m *Connection) Stop() error
Stop provides a mock function with given fields:
func (*Connection) Upload ¶
func (_m *Connection) Upload(ctx context.Context, options *connection.UploadOptions) error
Upload provides a mock function with given fields: ctx, options