Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenNewTerminal ¶
func OpenNewTerminal(ac *client.AlpaconClient, sessionResponse SessionResponse) error
Handles graceful termination of the websh terminal. Exits on error without further error handling.
Types ¶
type JoinRequest ¶
type JoinRequest struct {
Password string `json:"password"`
}
type SessionRequest ¶
type SessionResponse ¶
type SessionResponse struct {
ID string `json:"id"`
Rows int `json:"rows"`
Cols int `json:"cols"`
Server string `json:"server"`
User iam.UserSummary `json:"user"`
UserName string `json:"user_name"`
GroupName string `json:"group_name"`
UserAgent string `json:"user_agent"`
RemoteIP string `json:"remote_ip"`
WebsocketURL string `json:"websocket_url"`
}
func CreateWebshSession ¶
func CreateWebshSession(ac *client.AlpaconClient, serverName, username, groupname string, share, readOnly bool) (SessionResponse, error)
Create new websh session
func JoinWebshSession ¶
func JoinWebshSession(ac *client.AlpaconClient, sharedURL, password string) (SessionResponse, error)
type ShareRequest ¶
type ShareRequest struct {
}
type ShareResponse ¶
type ShareResponse struct {
}
type WebsocketClient ¶
Click to show internal directories.
Click to hide internal directories.