2014-02-19 08:56:11 +08:00
|
|
|
package libcontainer
|
|
|
|
|
|
|
|
type Container struct {
|
|
|
|
ID string `json:"id,omitempty"`
|
|
|
|
NsPid int `json:"namespace_pid,omitempty"`
|
|
|
|
Command *Command `json:"command,omitempty"`
|
|
|
|
RootFs string `json:"rootfs,omitempty"`
|
|
|
|
ReadonlyFs bool `json:"readonly_fs,omitempty"`
|
|
|
|
NetNsFd uintptr `json:"network_namespace_fd,omitempty"`
|
|
|
|
User string `json:"user,omitempty"`
|
|
|
|
WorkingDir string `json:"working_dir,omitempty"`
|
|
|
|
Namespaces Namespaces `json:"namespaces,omitempty"`
|
|
|
|
Capabilities Capabilities `json:"capabilities,omitempty"`
|
2014-02-19 09:52:06 +08:00
|
|
|
Master uintptr `json:"master"`
|
|
|
|
Console string `json:"console"`
|
2014-02-19 08:56:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type Command struct {
|
|
|
|
Args []string `json:"args,omitempty"`
|
|
|
|
Env []string `json:"environment,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Network struct {
|
|
|
|
TempVethName string `json:"temp_veth,omitempty"`
|
|
|
|
IP string `json:"ip,omitempty"`
|
|
|
|
Gateway string `json:"gateway,omitempty"`
|
|
|
|
Bridge string `json:"bridge,omitempty"`
|
|
|
|
Mtu int `json:"mtu,omitempty"`
|
|
|
|
}
|