github.com/opencontainers/runtime-tools@v0.9.0/api/socket/socket.go (about) 1 package socket 2 3 // Common is the normal data for messages passed on the console socket. 4 type Common 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 Common 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 Common 20 21 // Message is a phrase describing the response. 22 Message string `json:"message,omitempty"` 23 }