scp

package
v0.0.0-...-7052534 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

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

func (ProgressBar) Update

func (pb ProgressBar) Update(tot int64)

Update Updates the Progress Bar

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

Jump to

Keyboard shortcuts

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