Documentation ¶
Index ¶
Constants ¶
View Source
const DEFAULT_FORMAT = "\r%s % 3d %% %d kb %0.2f kb/s %v "
View Source
const (
VERSION = "0.4.0"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ProgressBar ¶
type ProgressBar struct { Out io.Writer Format string Subject string StartTime time.Time Size int64 }
func NewProgressBar ¶
func NewProgressBar(subject string, size int64) ProgressBar
func NewProgressBarTo ¶
func NewProgressBarTo(subject string, size int64, outPipe io.Writer) ProgressBar
func (ProgressBar) Update ¶
func (pb ProgressBar) Update(tot int64)
type SecureCopier ¶
type SecureCopier struct { Port int IsRecursive bool IsRemoteTo bool IsRemoteFrom bool IsQuiet bool IsVerbose bool IsCheckKnownHosts bool KeyFile string // contains filtered or unexported fields }
func (*SecureCopier) Name ¶
func (scp *SecureCopier) Name() string
func (*SecureCopier) ParseFlags ¶
func Scp(call []string) error {
Click to show internal directories.
Click to hide internal directories.