Documentation ¶
Index ¶
Constants ¶
View Source
const ( PING = "PING" PONG = "PONG" CONNECT = "CONNECT" CLOSE = "CLOSE" TERMINALINIT = "TERMINAL_INIT" TERMINALDATA = "TERMINAL_DATA" TERMINALRESIZE = "TERMINAL_RESIZE" )
Variables ¶
View Source
var ErrLoginFailed = errors.New("ErrLoginFailed")
ErrLoginFailed indicate authentication error
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client for interact with Jumpserver
func (*Client) ConnectAsset ¶
ConnectAsset connects to asset, opens a ternamal
func (*Client) FetchLoginPage ¶
FetchLoginPage access and get csrftoken rsa public key
func (*Client) FindAssetByHostname ¶
func (*Client) ListSystemUsers ¶
func (c *Client) ListSystemUsers(assetID string) ([]SystemUser, error)
type LoginPage ¶
type LoginPage struct {
// contains filtered or unexported fields
}
LoginPage store infomation about login page
func (*LoginPage) FetchCaptcha ¶
func (*LoginPage) HasCaptcha ¶
HasCaptcha indicate this page contain captcha
type LoginResult ¶
type LoginResult struct {
// contains filtered or unexported fields
}
LoginResult stores result of submit result of login page
func (*LoginResult) HasOTP ¶
func (lr *LoginResult) HasOTP() bool
func (*LoginResult) SubmitOTP ¶
func (lr *LoginResult) SubmitOTP(otp string) (*LoginResult, error)
type SystemUser ¶
type WindowSize ¶
Click to show internal directories.
Click to hide internal directories.