File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 1+ package socket
2+
3+ // Message is the normal data for messages passed on the console socket.
4+ type Message struct {
5+ // Type of message being passed
6+ Type string `json:"type"`
7+ }
8+
9+ // TerminalRequest is the normal data for messages passing a pseudoterminal master.
10+ type TerminalRequest struct {
11+ Message
12+
13+ // Container ID for the container whose pseudoterminal master is being set.
14+ Container string `json:"container"`
15+ }
16+
17+ // Response is the normal data for response messages.
18+ type Response struct {
19+ Message
20+
21+ // Message is a phrase describing the response.
22+ Message string `json:"message,omitempty"`
23+ }
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ The socket type MUST be [`SOCK_SEQPACKET`][socket-types] or [`SOCK_STREAM`][sock
8585The server MUST send a single response for each runtime request.
8686The [ normal data] [ socket-queue ] ([ ` msghdr.msg_iov* ` ] [ socket.h ] ) of all messages MUST be [ UTF-8] [ ] [ JSON] ( glossary.md#json ) .
8787
88- There are [ JSON Schemas] ( schema/README.md ) and [ Go bindings] ( specs-go /socket/socket.go) for the messages specified in this section.
88+ There are [ JSON Schemas] (schema/README.md FIXME ) and [ Go bindings] ( ../api /socket/socket.go) for the messages specified in this section.
8989
9090##### Requests
9191
You can’t perform that action at this time.
0 commit comments