ftp

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Download

type Download struct {
}

func (*Download) Execute

func (d *Download) Execute(ctx context.Context, repos *DownloadRepos, input *DownloadInput) error

type DownloadInput

type DownloadInput struct {
	RemotePath string
	Path       string
}

type DownloadRepos

type DownloadRepos struct {
	Logger     logging.Logger
	Connection connection.Connection
	FileStore  repositories.FileStore
}

type DownloadUseCase

type DownloadUseCase interface {
	Execute(context.Context, *DownloadRepos, *DownloadInput) error
}

type ListFiles

type ListFiles struct {
}

func (*ListFiles) Execute

func (u *ListFiles) Execute(ctx context.Context, repos *ListFilesRepos, input *ListFilesInput) ([]*entities.Entry, error)

type ListFilesInput

type ListFilesInput struct {
	ShowAll  bool
	Path     string
	SortType entities.SortType
}

type ListFilesRepos

type ListFilesRepos struct {
	Logger     logging.Logger
	Connection connection.Connection
}

type ListFilesUseCase

type ListFilesUseCase interface {
	Execute(context.Context, *ListFilesRepos, *ListFilesInput) ([]*entities.Entry, error)
}

type Mkdir

type Mkdir struct {
}

func (*Mkdir) Execute

func (u *Mkdir) Execute(_ context.Context, repos *MkdirRepos, input *MkdirInput) error

type MkdirInput

type MkdirInput struct {
	Path string
}

type MkdirRepos

type MkdirRepos struct {
	Logger     logging.Logger
	Connection connection.Connection
}

type MkdirUseCase

type MkdirUseCase interface {
	Execute(ctx context.Context, repos *MkdirRepos, input *MkdirInput) error
}

type Move

type Move struct {
}

func (*Move) Execute

func (u *Move) Execute(ctx context.Context, repos *MoveRepos, input *MoveInput) error

type MoveInput

type MoveInput struct {
	OldPath string
	NewPath string
}

type MoveRepos

type MoveRepos struct {
	Logger     logging.Logger
	Connection connection.Connection
}

type MoveUseCase

type MoveUseCase interface {
	Execute(context.Context, *MoveRepos, *MoveInput) error
}

type Remove

type Remove struct {
}

func (*Remove) Execute

func (u *Remove) Execute(ctx context.Context, repos *RemoveRepos, input *RemoveInput) error

type RemoveInput

type RemoveInput struct {
	Path string
}

type RemoveRepos

type RemoveRepos struct {
	Logger     logging.Logger
	Connection connection.Connection
}

type RemoveUseCase

type RemoveUseCase interface {
	Execute(context.Context, *RemoveRepos, *RemoveInput) error
}

type Status

type Status struct {
}

func (*Status) Execute

func (u *Status) Execute(_ context.Context, repos *StatusRepos, _ *StatusInput) (*entities.Status, error)

type StatusInput

type StatusInput struct {
}

type StatusRepos

type StatusRepos struct {
	Logger     logging.Logger
	Connection connection.Connection
}

type StatusUseCase

type StatusUseCase interface {
	Execute(context.Context, *StatusRepos, *StatusInput) (*entities.Status, error)
}

type UploadFile

type UploadFile struct {
}

func (*UploadFile) Execute

func (u *UploadFile) Execute(ctx context.Context, repos *UploadFileRepos, input *UploadFileInput) error

type UploadFileInput

type UploadFileInput struct {
	FileReader  io.Reader
	RemotePath  string
	SizeInBytes uint64
}

type UploadFileRepos

type UploadFileRepos struct {
	Logger     logging.Logger
	Connection connection.Connection
}

type UploadFileUseCase

type UploadFileUseCase interface {
	Execute(context.Context, *UploadFileRepos, *UploadFileInput) error
}

Jump to

Keyboard shortcuts

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