Documentation
¶
Index ¶
- Constants
- func ReadCommand(conn net.Conn) (byte, error)
- func ReadMessage(conn net.Conn, v interface{}) error
- func SendLogMessage(conn net.Conn, message *LogMessage) error
- func SendRequestToken(conn net.Conn) (string, string, error)
- func SendSpaceNote(conn net.Conn, note string) error
- func SendSpaceRestart(conn net.Conn) error
- func SendSpaceStop(conn net.Conn) error
- func WriteCommand(conn net.Conn, cmdType CmdType) error
- func WriteMessage(conn net.Conn, payload interface{}) error
- type AgentState
- type AgentStateReply
- type CmdType
- type CreateTokenResponse
- type HttpPort
- type LogLevel
- type LogMessage
- type Pong
- type Register
- type RegisterResponse
- type SpaceNote
- 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 SendLogMessage ¶ added in v0.11.5
func SendLogMessage(conn net.Conn, message *LogMessage) error
func SendRequestToken ¶ added in v0.18.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 CmdCreateToken CmdTunnelPort CmdTunnelPortConnection CmdSpaceStop CmdSpaceRestart )
type CreateTokenResponse ¶ added in v0.18.0
type LogMessage ¶ added in v0.11.5
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
}
message sent from the server to the agent in response to a register message
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.