Documentation ¶
Index ¶
- Constants
- func AddHostHandler(svcCtx *svc.ServiceContext) http.HandlerFunc
- func EditHostHandler(svcCtx *svc.ServiceContext) http.HandlerFunc
- func HostsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc
- func NewSSHClient(conf *SSHClientConfig) (*ssh.Client, error)
- func WsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc
- type AuthModel
- type RecHeader
- type RecType
- type Recorder
- type Resize
- type SSHClientConfig
- type Turn
Constants ¶
View Source
const ( MsgData = '1' MsgResize = '2' )
Turn
Variables ¶
This section is empty.
Functions ¶
func AddHostHandler ¶
func AddHostHandler(svcCtx *svc.ServiceContext) http.HandlerFunc
func EditHostHandler ¶
func EditHostHandler(svcCtx *svc.ServiceContext) http.HandlerFunc
func HostsHandler ¶
func HostsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc
func NewSSHClient ¶
func NewSSHClient(conf *SSHClientConfig) (*ssh.Client, error)
func WsHandler ¶
func WsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc
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
Click to show internal directories.
Click to hide internal directories.