Documentation
¶
Index ¶
- type Client
- func (c *Client) Exec(command string, logWriter io.Writer) error
- func (c *Client) GetEnv(logWriter io.Writer) ([]string, error)
- func (c *Client) GetUserUidGid() (string, string, error)
- func (c *Client) ReadFile(filePath string) ([]byte, error)
- func (c *Client) WriteFile(content, filePath string) ([]byte, error)
- type SessionConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*ssh.Client
}
func (*Client) GetEnv ¶ added in v0.21.1
func (c *Client) GetEnv(logWriter io.Writer) ([]string, error)
func (*Client) GetUserUidGid ¶
func (c *Client) GetUserUidGid() (string, string, error)
type SessionConfig ¶
type SessionConfig struct {
Hostname string
Port int
Username string
Password *string
PrivateKeyPath *string
}
Click to show internal directories.
Click to hide internal directories.