forked from canonical/lxd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
container_exec.go
26 lines (22 loc) · 1.06 KB
/
container_exec.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package api
// ContainerExecControl represents a message on the container exec "control" socket
type ContainerExecControl struct {
Command string `json:"command" yaml:"command"`
Args map[string]string `json:"args" yaml:"args"`
Signal int `json:"signal" yaml:"signal"`
}
// ContainerExecPost represents a LXD container exec request
type ContainerExecPost struct {
Command []string `json:"command" yaml:"command"`
WaitForWS bool `json:"wait-for-websocket" yaml:"wait-for-websocket"`
Interactive bool `json:"interactive" yaml:"interactive"`
Environment map[string]string `json:"environment" yaml:"environment"`
Width int `json:"width" yaml:"width"`
Height int `json:"height" yaml:"height"`
// API extension: container_exec_recording
RecordOutput bool `json:"record-output" yaml:"record-output"`
// API extension: container_user_group_cwd
User uint32 `json:"user" yaml:"user"`
Group uint32 `json:"group" yaml:"group"`
Cwd string `json:"cwd" yaml:"cwd"`
}