2014-02-19 08:56:11 +08:00
|
|
|
package libcontainer
|
|
|
|
|
|
|
|
type Container struct {
|
2014-02-20 11:14:31 +08:00
|
|
|
Hostname string `json:"hostname,omitempty"`
|
2014-02-19 08:56:11 +08:00
|
|
|
ReadonlyFs bool `json:"readonly_fs,omitempty"`
|
|
|
|
User string `json:"user,omitempty"`
|
|
|
|
WorkingDir string `json:"working_dir,omitempty"`
|
2014-02-20 12:35:04 +08:00
|
|
|
Env []string `json:"environment,omitempty"`
|
2014-02-19 08:56:11 +08:00
|
|
|
Namespaces Namespaces `json:"namespaces,omitempty"`
|
|
|
|
Capabilities Capabilities `json:"capabilities,omitempty"`
|
2014-02-20 06:33:25 +08:00
|
|
|
Network *Network `json:"network,omitempty"`
|
2014-02-19 08:56:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type Network struct {
|
2014-02-20 07:33:44 +08:00
|
|
|
IP string `json:"ip,omitempty"`
|
|
|
|
Gateway string `json:"gateway,omitempty"`
|
|
|
|
Bridge string `json:"bridge,omitempty"`
|
|
|
|
Mtu int `json:"mtu,omitempty"`
|
2014-02-19 08:56:11 +08:00
|
|
|
}
|