Documentation ¶
Index ¶
- func NewHttpClient(sshClient *Client) (httpClient *http.Client, e error)
- type Client
- func (client *Client) Attach() error
- func (c *Client) Close()
- func (c *Client) Connect() (err error)
- func (c *Client) ConnectWhenNotConnected() (e error)
- func (c *Client) Connection() (*ssh.Client, error)
- func (c *Client) Debug(args ...interface{})
- func (c *Client) Error(args ...interface{})
- func (c *Client) Execute(s string) (r *Result, e error)
- func (c *Client) Info(args ...interface{})
- func (c *Client) Password(user string) (password string, e error)
- func (c *Client) SetPassword(password string)
- func (c *Client) SetPrivateKey(privateKey string)
- func (c *Client) Write(writer Writer, args []interface{})
- func (c *Client) WriteFile(path, content, owner string, mode int) (res *Result, e error)
- func (c *Client) WriteFileCommand(path, content, owner string, mode int) string
- type Config
- type LogWriter
- type Result
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { User string Host string Port int Agent net.Conn Conn *ssh.Client DebugWriter Writer ErrorWriter Writer InfoWriter Writer PrivateKey string // contains filtered or unexported fields }
func (*Client) ConnectWhenNotConnected ¶
func (*Client) SetPassword ¶
func (*Client) SetPrivateKey ¶
Click to show internal directories.
Click to hide internal directories.