Documentation
¶
Index ¶
- func CopyDirectoryFrom(ctx context.Context, provider ssh.SSHProvider, req *tlw.CopyRequest) error
- func CopyDirectoryTo(ctx context.Context, provider ssh.SSHProvider, req *tlw.CopyRequest) error
- func CopyFileFrom(ctx context.Context, provider ssh.SSHProvider, req *tlw.CopyRequest) error
- func CopyFileTo(ctx context.Context, provider ssh.SSHProvider, req *tlw.CopyRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyDirectoryFrom ¶
func CopyDirectoryFrom(ctx context.Context, provider ssh.SSHProvider, req *tlw.CopyRequest) error
CopyDirectoryFrom copies a single directory, and all the files contained within it on the remote machine to the local machine. req contains the complete path of the source directory on the remote machine, and the complete path of the destination directory on the local machine where the source directory will be copied. The destination path is the directory within which the source directory will be copied.
func CopyDirectoryTo ¶
func CopyDirectoryTo(ctx context.Context, provider ssh.SSHProvider, req *tlw.CopyRequest) error
CopyDirectoryTo copies a single directory from local machine to remote device. req contains the complete path of the source directory on the local machine, and the complete path of the destination directory on the remote device where the source directory will be copied.
func CopyFileFrom ¶
func CopyFileFrom(ctx context.Context, provider ssh.SSHProvider, req *tlw.CopyRequest) error
CopyFileFrom copies a single file from remote device to local machine. req contains the complete path of the source file on the remote machine, and the complete path of the destination directory on the local machine where the source file will be copied. The destination path is just the directory name, and does not include the filename.
func CopyFileTo ¶
func CopyFileTo(ctx context.Context, provider ssh.SSHProvider, req *tlw.CopyRequest) error
CopyFileTo copies a single file from local machine to remote device. req contains the complete path of the source file on the local machine, and the complete path of the destination directory on the remote device where the source file will be copied.
Types ¶
This section is empty.