sftp

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 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, sshConfig core.SSHConfig, r retry.Retry, maxTranRate int64, logger *logger.Logger) (http.FileSystem, error)

NewDir returns a http.FileSystem instance for sftp

func NewSFTPDriver added in v0.5.0

func NewSFTPDriver(remoteAddr string, sshConfig core.SSHConfig, autoReconnect bool, r retry.Retry, maxTranRate int64, logger *logger.Logger) 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