Documentation
¶
Overview ¶
Package webssh
Package webssh ¶
Package webssh ¶
Package webssh ¶
Package webssh
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 SSHClientConfigPublicKey ¶
func SSHClientConfigPublicKey(hostAddr, user, keyPath string) *SSHClientConfig
type WebSSH ¶
type WebSSH struct {
*WebSSHConfig
}
func NewWebSSH ¶
func NewWebSSH(conf *WebSSHConfig) *WebSSH
func (WebSSH) ServeConn ¶
func (w WebSSH) ServeConn(c *fushinServer.Context)
Click to show internal directories.
Click to hide internal directories.