plg_backend_sftp

package
v0.2.2-0...-091e9c0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SftpCache AppCache

Functions

This section is empty.

Types

type Sftp

type Sftp struct {
	SSHClient  *ssh.Client
	SFTPClient *sftp.Client
	// contains filtered or unexported fields
}

func (Sftp) Cat

func (b Sftp) Cat(path string) (io.ReadCloser, error)

func (Sftp) Close

func (b Sftp) Close() error

func (Sftp) Home

func (b Sftp) Home() (string, error)

func (Sftp) Init

func (s Sftp) Init(params map[string]string, app *App) (IBackend, error)

func (Sftp) LoginForm

func (b Sftp) LoginForm() Form

func (Sftp) Ls

func (b Sftp) Ls(path string) ([]os.FileInfo, error)

func (Sftp) Mkdir

func (b Sftp) Mkdir(path string) error

func (Sftp) Mv

func (b Sftp) Mv(from string, to string) error

func (Sftp) Rm

func (b Sftp) Rm(path string) error

func (Sftp) Save

func (b Sftp) Save(path string, file io.Reader) error

func (Sftp) Stat

func (b Sftp) Stat(path string) (os.FileInfo, error)

func (Sftp) Touch

func (b Sftp) Touch(path string) error

Jump to

Keyboard shortcuts

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