xfer

package
v0.0.0-...-70da08f Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultSshPort int = 22

Variables

This section is empty.

Functions

func DownloadSftpFile

func DownloadSftpFile(uri string, privateKeys map[string]string, dstFile *os.File) error

func NewSshClientConfig

func NewSshClientConfig(user string, privateKeyPath string, privateKeyPassword string) (*ssh.ClientConfig, error)

func UploadSftpFile

func UploadSftpFile(srcPath string, uri string, privateKeys map[string]string) error

Types

type ParsedSftpUri

type ParsedSftpUri struct {
	User           string
	Host           string
	Port           int
	PrivateKeyPath string
	RemotePath     string
}

Jump to

Keyboard shortcuts

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