upload

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PerformUploadFile

func PerformUploadFile(ctx context.Context, logger logging.Logger, deps *Dependencies, input *CmdUploadInput) (err error)

Types

type CmdUploadInput

type CmdUploadInput struct {
	Config         ftpclient.ConnectorConfig
	FilePath       string
	RemoteFilePath string
	Recursive      bool
}

type Dependencies

type Dependencies struct {
	Connector     ftpclient.Connector
	Filesystem    fs.FS
	UploadUseCase ftp.UploadFileUseCase
	MkdirUseCase  ftp.MkdirUseCase
}

Jump to

Keyboard shortcuts

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