Documentation ¶
Index ¶
Constants ¶
View Source
const ( FlagFile int = 1 << iota FlagDir )
Variables ¶
This section is empty.
Functions ¶
func BuildSSHURL ¶
BuildSSHURL builds up a SSH URL to feed ssh @host: hostname @port: port
func PrivateKeyAuthMethod ¶
func PrivateKeyAuthMethod(privateKeyPath string) ssh.AuthMethod
PrivateKeyAuthMethod returns a ssh.AuthMethod initialized with a private key @privateKeyPath: path to the private key to use
Types ¶
type Client ¶
Client
func New ¶
func New(host, port, username string, sams ...ssh.AuthMethod) (*Client, error)
New returns a new SFTP Client @host: hostname to connect to @port: port on the hostname @username: username to login @sams: list of ssh.AuthMethod to use
func (*Client) ResolveSymlink ¶
ResolveSymlink resolve a path and returns the path of the file pointed if it is a symlink @path: path to resolve
Click to show internal directories.
Click to hide internal directories.