Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSCPClient ¶
Types ¶
type SSHSession ¶
type SSHSession struct { Stdout io.Reader Stdin io.Writer Stderr io.Reader // contains filtered or unexported fields }
func NewSSHSession ¶
func NewSSHSession(session *ssh.Session, hookCmd string, hookStdout bool) *SSHSession
New Session
func (*SSHSession) Ready ¶
func (s *SSHSession) Ready() <-chan int
func (*SSHSession) ShellDone ¶
func (s *SSHSession) ShellDone() <-chan int
func (*SSHSession) TerminalWithKeepAlive ¶
func (s *SSHSession) TerminalWithKeepAlive(interval time.Duration) error
open a interactive shell with keepalive
Click to show internal directories.
Click to hide internal directories.