scp

package
v0.0.0-...-20155fc Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2018 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BUFFER_SIZE = 2 * 1024 * 1024
)

Variables

View Source
var (
	ErrScpWriteAck = errors.New("scp: Failed to write ack buffer")
	ErrScpFailed   = errors.New("scp: copy file failed")
)
View Source
var (
	ErrUnimplementScpFetch = errors.New("unimplements scp fetch file yet")
)

Functions

This section is empty.

Types

type Scp

type Scp struct {
	// contains filtered or unexported fields
}

func NewScp

func NewScp(client *gossh.Client, cmd *command.Command, terminal gossh.Terminal) *Scp

func (*Scp) Fetch

func (scp *Scp) Fetch(remote, local string) (int64, error)

func (*Scp) Put

func (scp *Scp) Put(local, remote string) (int64, error)

Jump to

Keyboard shortcuts

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