plg_backend_ftp

package
v0.0.0-...-bec2cf3 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FtpCache AppCache

Functions

This section is empty.

Types

type Ftp

type Ftp struct {
	// contains filtered or unexported fields
}

func (Ftp) Cat

func (f Ftp) Cat(path string) (reader io.ReadCloser, err error)

func (Ftp) Close

func (f Ftp) Close() error

func (Ftp) Execute

func (f Ftp) Execute(fn func(*goftp.Client) error)

func (Ftp) Home

func (f Ftp) Home() (home string, err error)

func (Ftp) Init

func (f Ftp) Init(params map[string]string, app *App) (IBackend, error)

func (Ftp) LoginForm

func (f Ftp) LoginForm() Form

func (Ftp) Ls

func (f Ftp) Ls(path string) (files []os.FileInfo, err error)

func (Ftp) Meta

func (f Ftp) Meta(path string) Metadata

func (Ftp) Mkdir

func (f Ftp) Mkdir(path string) (err error)

func (Ftp) Mv

func (f Ftp) Mv(from string, to string) (err error)

func (Ftp) Rm

func (f Ftp) Rm(path string) (err error)

func (Ftp) Save

func (f Ftp) Save(path string, file io.Reader) (err error)

func (Ftp) Touch

func (f Ftp) Touch(path string) (err error)

Jump to

Keyboard shortcuts

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