Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { SSHClient *ssh.Client DestinationPath []string // Verbose output when communicating with host Verbose bool // Stop transfer on OS error - occurs during filepath.Walk StopOnOSError bool // Show progress bar ShowProgressBar bool // Configurable progress bar ProgressBar *pb.ProgressBar // contains filtered or unexported fields }
Client wraps a ssh.Client and provides additional functionality.
func NewClient ¶
NewClient returns a ssh.Client wrapper. DestinationPath is set to the current directory by default.
func (*Client) GetErrorStack ¶
GetErrorStack returns all errors that have occurred so far.
func (*Client) GetLastError ¶
GetLastError should be queried after a call to Download() or Upload().
func (*Client) SetDestinationPath ¶
SetDestinationPath sets where content will be sent.
Click to show internal directories.
Click to hide internal directories.