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