scp

package
v0.0.0-...-1a3c03a Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package scp provides a simple interface to copying files over a go.crypto/ssh session.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(size int64, mode os.FileMode, fileName string, contents io.Reader, destinationPath string, session *ssh.Session) error

func CopyFromRemote

func CopyFromRemote(session *ssh.Session, remotePath string, localPath string) error

CopyFromRemote 从远程拷贝到本地

func CopyPath

func CopyPath(filePath, destinationPath string, session *ssh.Session) error

func CopyToRemote

func CopyToRemote(session *ssh.Session, localPath string, remotePath string) error

CopyToRemote 从本地拷贝到远程

Types

This section is empty.

Jump to

Keyboard shortcuts

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