sftp

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sftp

type Sftp struct {
	Client    *sftp.Client
	Directory string
	Ssh       ssh.Ssh
}

func New

func New(address string, password string, port string, privateKey []byte, timeout time.Duration, user string, directory string) Sftp

func (*Sftp) Dial

func (s *Sftp) Dial() error

func (Sftp) Get

func (s Sftp) Get(p string) ([]byte, error)

func (Sftp) Ls

func (s Sftp) Ls(r string) ([]os.FileInfo, error)

func (Sftp) Mkdir

func (s Sftp) Mkdir(d string) error

func (Sftp) Put

func (s Sftp) Put(p string, data []byte) (int, error)

Jump to

Keyboard shortcuts

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