plg_backend_sftp

package
v0.2.2-0...-b6fe63f Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: AGPL-3.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SftpCache AppCache

Functions

func NewSpan

func NewSpan(app *App, name string, attrs map[string]string) tracer.ISpan

Types

type Sftp

type Sftp struct {
	SSHClient  *ssh.Client
	SFTPClient *tracedClient
	// 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
⌂ 换网址