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 SendState(conn net.Conn, spaceId string, hasCodeServer bool, sshPort int, ...) error
- func WriteCommand(conn net.Conn, cmdType CmdType) error
- func WriteMessage(conn net.Conn, payload interface{}) error
- type AgentState
- type CmdType
- type HttpPort
- type LogLevel
- type LogMessage
- type Pong
- type Register
- type RegisterResponse
- 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 WriteMessage ¶
Types ¶
type AgentState ¶
type LogMessage ¶ added in v0.11.5
type RegisterResponse ¶
type RegisterResponse struct { Version string Success bool SSHKey string GitHubUsername 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.