mocks

package
v0.0.0-...-2b5ea0c Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	mock.Mock
}

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

func (_m *Connection) Download(ctx context.Context, path string) ([]byte, error)

Download provides a mock function with given fields: ctx, path

func (*Connection) EnableExplicitTLSMode

func (_m *Connection) EnableExplicitTLSMode() error

EnableExplicitTLSMode provides a mock function with given fields:

func (*Connection) IsDir

func (_m *Connection) IsDir(ctx context.Context, path string) (bool, error)

IsDir provides a mock function with given fields: ctx, path

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

Jump to

Keyboard shortcuts

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