Documentation
¶
Index ¶
- type Client
- func NewWithAgent(hostname string, port int, username string, debug bool) (*Client, error)
- func NewWithPassword(hostname string, port int, username string, password string) (*Client, error)
- func NewWithPrivateKey(hostname string, port int, username string, privateKeyFilename string, ...) (*Client, error)
- func (c *Client) Capture(command string) (string, error)
- func (c *Client) Close() error
- func (c *Client) Connect() error
- func (c *Client) Execute(command string) error
- func (c *Client) ExecuteInteractively(command string, inputMap map[string]string) error
- func (c *Client) NewSession() (*ssh.Session, error)
- func (c *Client) RequestPty(session *ssh.Session) error
- func (c *Client) SetProperty(key, value string)
- func (c *Client) Upload(localPath string, remotePath string, permission string, debug bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { ClientConfig *ssh.ClientConfig // contains filtered or unexported fields }
func NewWithAgent ¶
func NewWithPassword ¶
func NewWithPrivateKey ¶
func (*Client) ExecuteInteractively ¶
func (*Client) SetProperty ¶
Click to show internal directories.
Click to hide internal directories.