scp

package
v0.0.0-...-1d19e64 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2014 License: Apache-2.0 Imports: 11 Imported by: 4

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

func ScpCli

func ScpCli(args []string) (error, int)

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) Exec

func (scp *SecureCopier) Exec(inPipe io.Reader, outPipe io.Writer, errPipe io.Writer) (error, int)

func (*SecureCopier) Name

func (scp *SecureCopier) Name() string

func (*SecureCopier) ParseFlags

func (scp *SecureCopier) ParseFlags(call []string, errPipe io.Writer) (error, int)

func Scp(call []string) error {

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL