Documentation
¶
Index ¶
- Constants
- Variables
- type HostStatusRequest
- type Request
- type SSHSession
- type VNCForward
- type WSConnect
- func (w *WSConnect) Close() error
- func (w *WSConnect) HandlerFTaskStatus(conn *websocket.Conn, msg *WsMsg)
- func (w *WSConnect) HandlerHostStatus(conn *websocket.Conn, msg *WsMsg)
- func (w *WSConnect) HandlerResize(conn *websocket.Conn, msg *WsMsg)
- func (w *WSConnect) HandlerSSHShell(conn *websocket.Conn, msg *WsMsg)
- func (w *WSConnect) InitHandlers() *WSConnect
- func (w *WSConnect) Serve()
- func (w *WSConnect) WriteMsg(msg interface{})
- type WebService
- type WsHandler
- type WsMsg
Constants ¶
View Source
const ( EventCancel = "cancel" EventConnect = "connect" )
View Source
const ( WSStatusSuccess = "0" WSStatusError = "-1" DefaultStatusInterval = 2 * time.Second )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type HostStatusRequest ¶
type SSHSession ¶
SSHSession connect to ssh server using ssh session.
func NewSshConn ¶
func NewSshConn(cols, rows int, sshClient *transport.Client) (*SSHSession, error)
func (*SSHSession) Close ¶
func (s *SSHSession) Close()
func (*SSHSession) ReceiveWsMsg ¶
func (s *SSHSession) ReceiveWsMsg(wsConn *websocket.Conn, exitCh chan struct{})
ReceiveWsMsg receive websocket msg do some handling then write into ssh.session.stdin
func (*SSHSession) SendComboOutput ¶
func (s *SSHSession) SendComboOutput(wsConn *websocket.Conn, exitCh chan struct{})
func (*SSHSession) SessionWait ¶
func (s *SSHSession) SessionWait(quitChan chan struct{})
type VNCForward ¶
type VNCForward struct {
// contains filtered or unexported fields
}
func NewVNCForward ¶
func (*VNCForward) Close ¶
func (vf *VNCForward) Close()
func (*VNCForward) Serve ¶
func (vf *VNCForward) Serve()
type WSConnect ¶
func NewWSConnect ¶
func NewWSConnect(conn *websocket.Conn, engine WebService) *WSConnect
func (*WSConnect) HandlerFTaskStatus ¶
func (*WSConnect) HandlerHostStatus ¶
func (*WSConnect) HandlerResize ¶
func (*WSConnect) HandlerSSHShell ¶
func (*WSConnect) InitHandlers ¶
type WebService ¶
Click to show internal directories.
Click to hide internal directories.