Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DialFunc = ssh.Dial
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Dialer Dialer SSHSessionFactory SSHSessionFactory Stdin io.Reader Stdout io.Writer Stderr io.Writer }
type CryptoSSHSessionFactory ¶
func (*CryptoSSHSessionFactory) New ¶
func (c *CryptoSSHSessionFactory) New() (SSHSession, error)
type SSHSession ¶
type SSHSession interface { StdinPipe() (io.WriteCloser, error) StdoutPipe() (io.Reader, error) StderrPipe() (io.Reader, error) SendRequest(name string, wantReply bool, payload []byte) (bool, error) RequestPty(term string, h, w int, termmodes ssh.TerminalModes) error // contains filtered or unexported methods }
type SSHSessionFactory ¶
type SSHSessionFactory interface {
New() (SSHSession, error)
}
Click to show internal directories.
Click to hide internal directories.