Move namespaces into linux spec

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2015-06-29 11:50:27 -07:00
parent 4c829ea2ad
commit c4fd381a38
3 changed files with 7 additions and 7 deletions

View File

@ -48,7 +48,7 @@ user named `daemon` defined within that file-system.
"arch": "amd64"
},
"process": {
"tty": true,
"terminal": true,
"user": "daemon",
"args": [
"sh"

View File

@ -18,7 +18,7 @@ type Mount struct {
}
type Process struct {
Terminal bool `json:"tty"`
Terminal bool `json:"terminal"`
User string `json:"user"`
Args []string `json:"args"`
Env []string `json:"env"`
@ -30,11 +30,6 @@ type Root struct {
Readonly bool `json:"readonly"`
}
type Namespace struct {
Type string `json:"type"`
Path string `json:"path,omitempty"`
}
type Platform struct {
OS string `json:"os"`
Arch string `json:"arch"`

View File

@ -30,6 +30,11 @@ type Linux struct {
Devices []string `json:"devices"`
}
type Namespace struct {
Type string `json:"type"`
Path string `json:"path"`
}
type UserMapping struct {
From int `json:"from"`
To int `json:"to"`