sftp

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDir

func NewDir(root string, address string, userName string, password string, sshKey string, r retry.Retry, maxTranRate int64) (http.FileSystem, error)

NewDir returns a http.FileSystem instance for sftp

func NewSFTPDriver added in v0.5.0

func NewSFTPDriver(remoteAddr string, userName string, password string, sshKey string, autoReconnect bool, r retry.Retry, maxTranRate int64) driver.Driver

NewSFTPDriver get a sftp driver

Types

type Dir

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

Dir an implementation of http.FileSystem for sftp

func (*Dir) Open

func (d *Dir) Open(name string) (http.File, error)

Open opens the named file for reading

Jump to

Keyboard shortcuts

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