scp

package
v0.0.0-...-10b7c71 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

README

Documentation

Index

Constants

View Source
const (
	SCP_PUSH_BEGIN_FILE       = "C"
	SCP_PUSH_BEGIN_FOLDER     = "D"
	SCP_PUSH_BEGIN_END_FOLDER = "0"
	SCP_PUSH_END_FOLDER       = "E"
	SCP_PUSH_END              = "\x00"
)

Variables

This section is empty.

Functions

func GetPerm

func GetPerm(f *os.File) (perm string)

Types

type Scp

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

func NewScp

func NewScp(clientConn *ssh.Client) *Scp

Initializer

func (*Scp) PullFile

func (scp *Scp) PullFile(srcpath, targetFile string) error

Pull file from remote to local targetFile 远端目标文件 srcpath 本地目录

func (*Scp) PushDir

func (scp *Scp) PushDir(src string, dest string) error

Push directory to server

func (*Scp) PushFile

func (scp *Scp) PushFile(src string, dest string) error

Push one file to server

Jump to

Keyboard shortcuts

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