File: socket.go

package info (click to toggle)
golang-github-opencontainers-runtime-tools 0.9.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,108 kB
  • sloc: sh: 557; makefile: 104
file content (23 lines) | stat: -rw-r--r-- 592 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package socket

// Common is the normal data for messages passed on the console socket.
type Common struct {
	// Type of message being passed
	Type string `json:"type"`
}

// TerminalRequest is the normal data for messages passing a pseudoterminal master.
type TerminalRequest struct {
	Common

	// Container ID for the container whose pseudoterminal master is being set.
	Container string `json:"container"`
}

// Response is the normal data for response messages.
type Response struct {
	Common

	// Message is a phrase describing the response.
	Message string `json:"message,omitempty"`
}