io

package
v0.0.0-...-9febfc8 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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