Documentation
¶
Index ¶
- Variables
- type AWSSSMConnection
- func (a *AWSSSMConnection) Command(cmdLine []string) ([]byte, error)
- func (a *AWSSSMConnection) Connect() error
- func (a *AWSSSMConnection) CopyFile(localPath string, remotePath string) error
- func (a *AWSSSMConnection) Disconnect() error
- func (a *AWSSSMConnection) Info() string
- func (a *AWSSSMConnection) User() string
- type Client
- func (c Client) Command(cmdLine []string) ([]byte, error)
- func (c Client) Connect() error
- func (c Client) ConnectWithRetry(timeout time.Duration, callback func()) error
- func (c Client) Connection() Connection
- func (c Client) DirCopy(localPath string, remotePath string, override bool) error
- func (c Client) DirEnsure(path string) error
- func (c Client) DirExists(path string) (bool, error)
- func (c Client) Disconnect() error
- func (c Client) FileCopy(localPath string, remotePath string, override bool) error
- func (c Client) FileExists(path string) (bool, error)
- func (c Client) FileMakeExecutable(path string) error
- func (c Client) FileMove(oldPath string, newPath string) error
- func (c Client) FileWrite(remotePath string, text string) error
- func (c Client) PathCopy(localPath string, remotePath string, override bool) error
- func (c Client) PathDelete(path string) error
- func (c Client) RunShellCommand(cmd string, dir string) ([]byte, error)
- func (c Client) RunShellPurely(cmd string) ([]byte, error)
- func (c Client) RunShellScript(cmdName string, cmdScript string, dir string) ([]byte, error)
- func (c Client) SetupEnv() error
- func (c Client) TypeName() string
- func (c Client) Use(callback func(c Client) error) error
- type ClientManager
- type Connection
- type SSHConnection
- func (s *SSHConnection) Command(cmdLine []string) ([]byte, error)
- func (s *SSHConnection) Connect() error
- func (s *SSHConnection) CopyFile(localPath string, remotePath string) error
- func (s *SSHConnection) Disconnect() error
- func (s *SSHConnection) Info() string
- func (s *SSHConnection) User() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientManagerDefault = &ClientManager{}
Functions ¶
This section is empty.
Types ¶
type AWSSSMConnection ¶
type AWSSSMConnection struct {
// contains filtered or unexported fields
}
func (*AWSSSMConnection) Command ¶
func (a *AWSSSMConnection) Command(cmdLine []string) ([]byte, error)
func (*AWSSSMConnection) Connect ¶
func (a *AWSSSMConnection) Connect() error
func (*AWSSSMConnection) CopyFile ¶
func (a *AWSSSMConnection) CopyFile(localPath string, remotePath string) error
func (*AWSSSMConnection) Disconnect ¶
func (a *AWSSSMConnection) Disconnect() error
func (*AWSSSMConnection) Info ¶
func (a *AWSSSMConnection) Info() string
func (*AWSSSMConnection) User ¶
func (a *AWSSSMConnection) User() string
type Client ¶
type Client struct { Env map[string]string WorkDir string Sudo bool // contains filtered or unexported fields }
func (Client) ConnectWithRetry ¶
func (Client) Connection ¶
func (c Client) Connection() Connection
func (Client) Disconnect ¶
func (Client) FileMakeExecutable ¶
func (Client) PathDelete ¶
func (Client) RunShellCommand ¶
func (Client) RunShellScript ¶
type Connection ¶
type SSHConnection ¶
type SSHConnection struct {
// contains filtered or unexported fields
}
func (*SSHConnection) Connect ¶
func (s *SSHConnection) Connect() error
func (*SSHConnection) CopyFile ¶
func (s *SSHConnection) CopyFile(localPath string, remotePath string) error
func (*SSHConnection) Disconnect ¶
func (s *SSHConnection) Disconnect() error
func (*SSHConnection) Info ¶
func (s *SSHConnection) Info() string
func (*SSHConnection) User ¶
func (s *SSHConnection) User() string
Click to show internal directories.
Click to hide internal directories.