Documentation ¶
Index ¶
- Constants
- func IsExitMissingError(err error) bool
- func ParseOutput(output []byte) []string
- type Client
- func (s *Client) Close()
- func (s *Client) GetConfig() ClientConfig
- func (s *Client) RawRun(cmds ...string) ([]string, error)
- func (s *Client) Run(cmds ...string) ([]string, error)
- func (s *Client) RunCmd(cmd string) ([]string, error)
- func (s *Client) RunTerminal() error
- func (s *Client) RunWithInput(input io.Reader, cmds ...string) ([]string, error)
- func (s *Client) RunWithTTY(cmds ...string) ([]string, error)
- type ClientConfig
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func IsExitMissingError ¶
func ParseOutput ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetConfig ¶
func (s *Client) GetConfig() ClientConfig
func (*Client) RunTerminal ¶
func (*Client) RunWithInput ¶
type ClientConfig ¶
func (ClientConfig) ConnectContext ¶
func (ClientConfig) NewClient ¶
func (conf ClientConfig) NewClient() (*Client, error)
func (ClientConfig) ToSshConfig ¶
func (conf ClientConfig) ToSshConfig() (*ssh.ClientConfig, error)
Click to show internal directories.
Click to hide internal directories.