schnutibox/vendor/github.com/tmc/scp
2021-04-10 17:47:18 +02:00
..
LICENSE adds integration test and prepare tweaks 2021-04-10 17:47:18 +02:00
README.md adds integration test and prepare tweaks 2021-04-10 17:47:18 +02:00
scp.go adds integration test and prepare tweaks 2021-04-10 17:47:18 +02:00

scp

import "github.com/tmc/scp"

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

func Copy

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

func CopyPath

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