Documentation ¶
Index ¶
Constants ¶
View Source
const ( MsgData = '1' MsgResize = '2' )
Variables ¶
This section is empty.
Functions ¶
func NewSSHClient ¶
func NewSSHClient(conf *SSHClientConfig) (*ssh.Client, error)
Types ¶
type SSHClientConfig ¶
type SSHClientConfig struct { AuthModel AuthModel HostAddr string User string Password string KeyPath string Timeout time.Duration }
func SSHClientConfigPassword ¶
func SSHClientConfigPassword(hostAddr, user, Password string) *SSHClientConfig
func SSHClientConfigPulicKey ¶
func SSHClientConfigPulicKey(hostAddr, user, keyPath string) *SSHClientConfig
type Turn ¶
type Turn struct { StdinPipe io.WriteCloser Session *ssh.Session WsConn *websocket.Conn Recorder *Recorder }
func (*Turn) SessionWait ¶
type WebSSH ¶
type WebSSH struct {
*WebSSHConfig
}
func NewWebSSH ¶
func NewWebSSH(conf *WebSSHConfig) *WebSSH
func (WebSSH) RecoderList ¶
Click to show internal directories.
Click to hide internal directories.