Documentation
¶
Index ¶
- Constants
- func CreateTempDir(client *Client) (tempPath string, err error)
- type Alias
- type Client
- func (c Client) Close() error
- func (c Client) Command(name string, args ...string) (*goph.Cmd, error)
- func (c Client) CommandContext(ctx context.Context, name string, args ...string) (*goph.Cmd, error)
- func (c Client) DetermineClientDetails() (err error)
- func (c Client) Download(remotePath string, localPath string) (err error)
- func (c Client) GetArch() string
- func (c Client) GetOS() string
- func (c Client) GetOSTempDir() (tempDir string, err error)
- func (c Client) JoinPath(paths ...string) string
- func (c Client) Mkdir(path string) (err error)
- func (c Client) NewSftp(opts ...sftp.ClientOption) (*sftp.Client, error)
- func (c Client) Rmdir(path string) (err error)
- func (c Client) Rmrf(path string) (err error)
- func (c Client) Run(cmd string) ([]byte, error)
- func (c Client) RunContext(ctx context.Context, name string) ([]byte, error)
- func (c Client) Upload(localPath string, remotePath string) (err error)
- type ClientDetails
Constants ¶
View Source
const LINUX = "linux"
View Source
const MAX_RETRIES = 3
View Source
const RAND_STR_LEN = 6
View Source
const WINDOWS = "windows"
Variables ¶
This section is empty.
Functions ¶
func CreateTempDir ¶
Types ¶
type Client ¶
func (Client) CommandContext ¶
func (Client) DetermineClientDetails ¶
func (Client) GetOSTempDir ¶
func (Client) RunContext ¶
type ClientDetails ¶
type ClientDetails struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.