Documentation ¶
Overview ¶
Copyright 2020 Platform9 Systems Inc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SudoPassword string
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // RunCommand executes the remote command returning the stdout, stderr and any error associated with it RunCommand(cmd string) ([]byte, []byte, error) // Uploadfile uploads the srcFile to remoteDestFilePath and changes the mode to the filemode UploadFile(srcFilePath, remoteDstFilePath string, mode os.FileMode, cb func(read int64, total int64)) error // Downloadfile downloads the remoteFile to localFile and changes the mode to the filemode DownloadFile(remoteFile, localPath string, mode os.FileMode, cb func(read int64, total int64)) error }
Client interface provides ways to run command and upload files to remote hosts
Click to show internal directories.
Click to hide internal directories.