|
@@ -112,18 +112,15 @@ type ResourceStats struct {
|
|
|
SystemUsage uint64 `json:"system_usage"`
|
|
|
}
|
|
|
|
|
|
-// ProcessConfig describes a process that will be run inside a container.
|
|
|
-type ProcessConfig struct {
|
|
|
+// CommonProcessConfig is the common platform agnostic part of the ProcessConfig
|
|
|
+// structure that describes a process that will be run inside a container.
|
|
|
+type CommonProcessConfig struct {
|
|
|
exec.Cmd `json:"-"`
|
|
|
|
|
|
- Privileged bool `json:"privileged"`
|
|
|
- User string `json:"user"`
|
|
|
- Tty bool `json:"tty"`
|
|
|
- Entrypoint string `json:"entrypoint"`
|
|
|
- Arguments []string `json:"arguments"`
|
|
|
- Terminal Terminal `json:"-"` // standard or tty terminal (Unix)
|
|
|
- Console string `json:"-"` // dev/console path (Unix)
|
|
|
- ConsoleSize [2]int `json:"-"` // h,w of initial console size (Windows)
|
|
|
+ Tty bool `json:"tty"`
|
|
|
+ Entrypoint string `json:"entrypoint"`
|
|
|
+ Arguments []string `json:"arguments"`
|
|
|
+ Terminal Terminal `json:"-"` // standard or tty terminal
|
|
|
}
|
|
|
|
|
|
// CommonCommand is the common platform agnostic part of the Command structure
|