Documentation
¶
Index ¶
Constants ¶
View Source
const DEFAULTFORMAT = "\r%s % 3d %% %d kb %0.2f kb/s %v "
DEFAULTFORMAT for progressbar
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProgressBar ¶
type ProgressBar struct { Out io.Writer Format string Subject string StartTime time.Time Size int64 }
ProgressBar Struct for Progress Bar
func NewProgressBar ¶
func NewProgressBar(subject string, size int64) ProgressBar
NewProgressBar Instantiatiates a new Progress Bar
func NewProgressBarTo ¶
func NewProgressBarTo(subject string, size int64, outPipe io.Writer) ProgressBar
NewProgressBarTo Instantiatiates a new Progress Bar To
type SecureCopier ¶
type SecureCopier struct { Port int IsRecursive bool IsRemoteTo bool IsRemoteFrom bool IsQuiet bool IsVerbose bool IsCheckKnownHosts bool Password bool KeyFile string // contains filtered or unexported fields }
SecureCopier Main data structure
func NewSecureCopier ¶
func NewSecureCopier() SecureCopier
func (*SecureCopier) Exec ¶
func (scp *SecureCopier) Exec(args []string) (int, error)
Exec Main execution function
func (*SecureCopier) Name ¶
func (scp *SecureCopier) Name() string
Name Helper that returns name of the program
Click to show internal directories.
Click to hide internal directories.