Documentation
¶
Overview ¶
Package transfer copies files between local and remote filesystems over an existing ssh.Client, using SFTP. It replaces 1.x's shell-out to /usr/bin/scp + sshpass, so passwords never reach argv and no external binaries need to be on PATH.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Spec ¶
Spec is a parsed source/destination pair.
func ParseSpec ¶
ParseSpec interprets a pair of scp-style arguments. A bare local path stays local; `id:path` is remote-on-the-node-named-id. explicitTunnelID, if set, overrides any prefix found in the args — this lets two bare local paths turn into an upload when the user has told us which tunnel to target via --tunnel-id.
Click to show internal directories.
Click to hide internal directories.