Documentation
¶
Index ¶
- func IsRetryableSSHError(err error) bool
- func ShellEscape(s string) string
- type Client
- func (c *Client) Close() error
- func (c *Client) FileExists(path string) (bool, error)
- func (c *Client) Healthy() bool
- func (c *Client) MkdirAll(path string) error
- func (c *Client) MkdirAllSudo(path string) error
- func (c *Client) MkdirAllSudoWithPerm(path, perm string) error
- func (c *Client) Run(cmd string) (stdout, stderr string, err error)
- func (c *Client) RunWithStdin(stdin string, cmd string) (stdout, stderr string, err error)
- func (c *Client) StreamRun(ctx context.Context, cmd string, stdoutChan, stderrChan chan string) error
- func (c *Client) UploadFile(localPath, remotePath string) error
- func (c *Client) UploadFileSudo(localPath, remotePath string) error
- func (c *Client) UploadFileSudoWithPerm(localPath, remotePath, perm string) error
- type SSHConfig
- type SSHRetryConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRetryableSSHError ¶
func ShellEscape ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClientWithConfig ¶
func NewClientWithRetry ¶
func (*Client) MkdirAllSudo ¶
func (*Client) MkdirAllSudoWithPerm ¶
func (*Client) RunWithStdin ¶
func (*Client) UploadFile ¶
func (*Client) UploadFileSudo ¶
func (*Client) UploadFileSudoWithPerm ¶
type SSHConfig ¶
func DefaultSSHConfig ¶
func DefaultSSHConfig() *SSHConfig
type SSHRetryConfig ¶
func DefaultSSHRetryConfig ¶
func DefaultSSHRetryConfig() *SSHRetryConfig
Click to show internal directories.
Click to hide internal directories.