scp

package
v0.0.0-...-77b1a84 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidRemoteAddr = errors.New("scp: invalid remote address")
	ErrInvalidRemotePath = errors.New("scp: invalid remote path")
	ErrInvalidLocalPath  = errors.New("scp: invalid local path")
)

Functions

func TransferFile

func TransferFile(conf TransferConfig) error

TransferFile transfers file between two hosts using scp. FIXME: support context

Types

type TransferConfig

type TransferConfig struct {
	Direct     TransferDirect
	RemoteAddr string
	RemotePath string

	LocalPath string
}

type TransferDirect

type TransferDirect int
const (
	ToRemote TransferDirect = iota
	ToLocal
)

Jump to

Keyboard shortcuts

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