scp

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connect added in v0.6.13

type Connect struct {
	// server name
	Server string

	// ssh connect
	Connect *sftp.Client

	// Output
	Output *output.Output
}

Connect ...

type Info added in v0.6.13

type Info struct {
	// is remote flag
	IsRemote bool

	// connect server list
	Server []string

	// path list
	Path []string
}

Info ...

type PathSet added in v0.6.13

type PathSet struct {
	Base      string
	PathSlice []string
}

PathSet ...

type Scp added in v0.6.13

type Scp struct {
	// ssh Run
	Run *sshl.Run

	// From and To data
	From Info
	To   Info

	Config  conf.Config
	AuthMap map[sshl.AuthKey][]ssh.AuthMethod

	// send parallel flag
	Parallel    bool
	ParallelNum int

	// progress bar
	Progress   *mpb.Progress
	ProgressWG *sync.WaitGroup
}

Scp ...

func (*Scp) Start added in v0.6.13

func (cp *Scp) Start(confpath string)

Start scp, switching process.

Jump to

Keyboard shortcuts

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