forked from canonical/lxd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
instance_exec.go
26 lines (24 loc) · 1.1 KB
/
instance_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
// InstanceExecControl represents a message on the instance exec "control" socket.
//
// API extension: instances
type InstanceExecControl struct {
Command string `json:"command" yaml:"command"`
Args map[string]string `json:"args" yaml:"args"`
Signal int `json:"signal" yaml:"signal"`
}
// InstanceExecPost represents a LXD instance exec request.
//
// API extension: instances
type InstanceExecPost 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"`
RecordOutput bool `json:"record-output" yaml:"record-output"`
User uint32 `json:"user" yaml:"user"`
Group uint32 `json:"group" yaml:"group"`
Cwd string `json:"cwd" yaml:"cwd"`
}