scp-go: github.com/laher/scp-go/scp Index | Files

package scp

import "github.com/laher/scp-go/scp"

Index

Package Files

fromremote.go progressbar.go scp.go toremote.go

Constants

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

func ScpCli Uses

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

type ProgressBar Uses

type ProgressBar struct {
    Out       io.Writer
    Format    string
    Subject   string
    StartTime time.Time
    Size      int64
}

func NewProgressBar Uses

func NewProgressBar(subject string, size int64) ProgressBar

func NewProgressBarTo Uses

func NewProgressBarTo(subject string, size int64, outPipe io.Writer) ProgressBar

func (ProgressBar) Update Uses

func (pb ProgressBar) Update(tot int64)

type SecureCopier Uses

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 Uses

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

func (*SecureCopier) Name Uses

func (scp *SecureCopier) Name() string

func (*SecureCopier) ParseFlags Uses

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

func Scp(call []string) error {

Package scp imports 11 packages (graph) and is imported by 3 packages. Updated 2020-03-26. Refresh now. Tools for package owners.