Documentation ¶
Overview ¶
Package scp provides a simple interface to copying files over a go.crypto/ssh session.
Index ¶
- func Copy(size int64, mode os.FileMode, fileName string, contents io.Reader, ...) error
- func CopyFromRemote(session *ssh.Session, remotePath string, localPath string) error
- func CopyPath(filePath, destinationPath string, session *ssh.Session) error
- func CopyToRemote(session *ssh.Session, localPath string, remotePath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFromRemote ¶
CopyFromRemote 从远程拷贝到本地
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.