sftp

package
v0.0.0-...-367f9bc Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUniqSSHKeyPath

func GetUniqSSHKeyPath() string

GetUniqSSHKeyPath the uniq private key path

Types

type SSHConfig

type SSHConfig struct {
	Addr     string
	User     string
	Password string
	Key      string
}

func (*SSHConfig) Validate

func (conf *SSHConfig) Validate() (*ssh.ClientConfig, error)

type Webdav

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

func NewWebdav

func NewWebdav(conf *SSHConfig) (*Webdav, error)

func (Webdav) DeleteDir

func (c Webdav) DeleteDir(path string) error

func (Webdav) DeleteFile

func (c Webdav) DeleteFile(path string) error

func (Webdav) Mkdir

func (c Webdav) Mkdir(name string, perm os.FileMode) error

func (*Webdav) OpenFile

func (dav *Webdav) OpenFile(name string, flag int, perm os.FileMode) (drivers.FileAdaptor, error)

func (Webdav) Stat

func (c Webdav) Stat(path string) (os.FileInfo, error)

Jump to

Keyboard shortcuts

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