e3d5adc9e2
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
24 lines
791 B
Go
24 lines
791 B
Go
package libcontainer
|
|
|
|
type Container struct {
|
|
Hostname string `json:"hostname,omitempty"`
|
|
ReadonlyFs bool `json:"readonly_fs,omitempty"`
|
|
User string `json:"user,omitempty"`
|
|
WorkingDir string `json:"working_dir,omitempty"`
|
|
Command *Command `json:"command,omitempty"`
|
|
Namespaces Namespaces `json:"namespaces,omitempty"`
|
|
Capabilities Capabilities `json:"capabilities,omitempty"`
|
|
Network *Network `json:"network,omitempty"`
|
|
}
|
|
|
|
type Command struct {
|
|
Args []string `json:"args,omitempty"`
|
|
Env []string `json:"environment,omitempty"`
|
|
}
|
|
|
|
type Network struct {
|
|
IP string `json:"ip,omitempty"`
|
|
Gateway string `json:"gateway,omitempty"`
|
|
Bridge string `json:"bridge,omitempty"`
|
|
Mtu int `json:"mtu,omitempty"`
|
|
}
|