Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PasswordAuth indicates password-based authentication PasswordAuth = "passwordAuth" // KeyAuth indicates key-based authentication KeyAuth = "keyAuth" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileManager ¶
type FileManager interface { Upload(localFilePath, remoteDir string) error Download(remoteFilePath, localDir string) error Delete(remoteFilePath string) error }
FileManager is an interface for managing files on a remote server
func NewFileManager ¶
func NewFileManager(sshClient *ssh.Client) (FileManager, error)
Click to show internal directories.
Click to hide internal directories.