remote

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Download rsyncOperation = iota
	Upload   rsyncOperation = iota
)

Variables

This section is empty.

Functions

func CreateSession

func CreateSession(sshClient *ssh.Client) (*ssh.Session, error)

func EstablishConnection

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

func Exec

func Exec(session *ssh.Session, dir string, cmd []string) error

func ProjectPath

func ProjectPath(cwd string) string

func RemoteRITCSDirectory

func RemoteRITCSDirectory() string

func RunRsync

func RunRsync(projectPath string, op rsyncOperation) 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 🇻🇳