remote

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupTempDir

func CleanupTempDir(sftpClient *sftp.Client, tempdir string, tarPath string) error

func CreateTempDir

func CreateTempDir(sftpClient *sftp.Client) (string, error)

func DownloadFromTarball

func DownloadFromTarball(sftpClient *sftp.Client, remoteTarPath string) error

func EstablishConnection

func EstablishConnection() (*ssh.Client, *sftp.Client, error)

func RemoveTempDir

func RemoveTempDir(client *sftp.Client, tempdir string) error

func RunCmd

func RunCmd(sshClient *ssh.Client, dir string, cmd []string) error

func RunTar

func RunTar(sshClient *ssh.Client, remoteTempDir, remoteTarPath string, extract bool) error

func UploadCWD

func UploadCWD(
	sftpClient *sftp.Client,
	ignoreStatements []string,
	remoteTarPath string,
) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳