Back to godoc.org

Package scp

v0.0.0-...-1d19e64
Latest Go to latest

The latest major version is .

Published: Apr 18, 2014 | License: Apache-2.0 | Module: github.com/laher/scp-go

Index

Constants

const DEFAULT_FORMAT = "\r%s   % 3d %%  %d kb %0.2f kb/s %v      "
const (
	VERSION = "0.4.0"
)

func ScpCli

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

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 {

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier