Documentation
¶
Index ¶
- Constants
- func ReadCommand(conn net.Conn) (byte, error)
- func ReadMessage(conn net.Conn, v interface{}) error
- func ReadMessageWithTimeout(conn net.Conn, v interface{}, timeout time.Duration) error
- func SendLogMessage(conn net.Conn, message *LogMessage) error
- func SendSpaceGetVar(conn net.Conn, name string) (string, error)
- func SendSpaceNote(conn net.Conn, note string) error
- func SendSpaceRestart(conn net.Conn) error
- func SendSpaceStop(conn net.Conn) error
- func SendSpaceVar(conn net.Conn, name, value string) error
- func WriteCommand(conn net.Conn, cmdType CmdType) error
- func WriteMessage(conn net.Conn, payload interface{}) error
- type AgentState
- type AgentStateReply
- type CmdType
- type CopyFileMessage
- type CopyFileResponse
- type ExecuteScriptMessage
- type ExecuteScriptResponse
- type ExecuteScriptStreamMessage
- type HttpPort
- type LogLevel
- type LogMessage
- type Pong
- type PortForwardInfo
- type PortForwardRequest
- type PortForwardResponse
- type PortListResponse
- type PortStopRequest
- type PortStopResponse
- type Register
- type RegisterResponse
- type RunCommandMessage
- type RunCommandResponse
- type SpaceGetVar
- type SpaceGetVarResponse
- type SpaceNote
- type SpaceVar
- type TcpPort
- type Terminal
- type TerminalWindowSize
- type UpdateAuthorizedKeys
- type UpdateShell
Constants ¶
View Source
const ( MSG_TERMINAL_DATA = iota MSG_TERMINAL_RESIZE )
Variables ¶
This section is empty.
Functions ¶
func ReadMessage ¶
func ReadMessageWithTimeout ¶ added in v0.23.0
func SendLogMessage ¶ added in v0.11.5
func SendLogMessage(conn net.Conn, message *LogMessage) error
func SendSpaceGetVar ¶ added in v0.21.0
func SendSpaceRestart ¶ added in v0.18.0
func SendSpaceStop ¶ added in v0.18.0
func WriteMessage ¶
Types ¶
type AgentState ¶
type AgentStateReply ¶ added in v0.18.0
type AgentStateReply struct {
Endpoints []string
}
type CmdType ¶ added in v0.11.5
type CmdType byte
const ( CmdNone CmdType = iota CmdPing CmdUpdateState CmdUpdateAuthorizedKeys CmdTerminal CmdCodeServer CmdProxyTCPPort CmdProxyVNC CmdProxyHTTP CmdVSCodeTunnelTerminal CmdLogMessage CmdUpdateShell CmdUpdateSpaceNote CmdUpdateSpaceVar CmdGetSpaceVar CmdTunnelPort CmdTunnelPortConnection CmdSpaceStop CmdSpaceRestart CmdRunCommand CmdCopyFile CmdPortForward CmdPortList CmdPortStop CmdExecuteScript CmdExecuteScriptStream )
type CopyFileMessage ¶ added in v0.19.0
type CopyFileResponse ¶ added in v0.19.0
type ExecuteScriptMessage ¶ added in v0.23.0
type ExecuteScriptResponse ¶ added in v0.23.0
type ExecuteScriptStreamMessage ¶ added in v0.23.0
type LogMessage ¶ added in v0.11.5
type PortForwardInfo ¶ added in v0.22.2
type PortForwardRequest ¶ added in v0.22.2
type PortForwardRequest struct {
LocalPort uint16 `json:"local_port" msgpack:"local_port"`
Space string `json:"space" msgpack:"space"`
RemotePort uint16 `json:"remote_port" msgpack:"remote_port"`
}
Port forward between spaces
type PortForwardResponse ¶ added in v0.22.2
type PortListResponse ¶ added in v0.22.2
type PortListResponse struct {
Forwards []PortForwardInfo `json:"forwards" msgpack:"forwards"`
}
type PortStopRequest ¶ added in v0.22.2
type PortStopRequest struct {
LocalPort uint16 `json:"local_port" msgpack:"local_port"`
}
type PortStopResponse ¶ added in v0.22.2
type RegisterResponse ¶
type RegisterResponse struct {
Version string
Success bool
SSHKeys []string
GitHubUsernames []string
Shell string
SSHHostSigner string
WithTerminal bool
WithVSCodeTunnel bool
WithCodeServer bool
WithSSH bool
WithRunCommand bool
Freeze bool
AgentToken string // Deterministic authentication token for the agent
ServerURL string // Public URL of the server for API calls
}
message sent from the server to the agent in response to a register message
type RunCommandMessage ¶ added in v0.19.0
type RunCommandResponse ¶ added in v0.19.0
type SpaceGetVar ¶ added in v0.21.0
type SpaceGetVar struct {
Name string
}
type SpaceGetVarResponse ¶ added in v0.21.0
type SpaceGetVarResponse struct {
Value string
}
type TerminalWindowSize ¶
type UpdateAuthorizedKeys ¶
message sent to update the authorized keys within an agent
type UpdateShell ¶ added in v0.11.5
type UpdateShell struct {
Shell string
}
message sent to update the authorized keys within an agent
Click to show internal directories.
Click to hide internal directories.