Initial commit of libcontainer
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
parent
f8923d8060
commit
81d2c67492
20 changed files with 1531 additions and 0 deletions
27
libcontainer/container.go
Normal file
27
libcontainer/container.go
Normal file
|
@ -0,0 +1,27 @@
|
|||
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"`
|
||||
}
|
||||
|
||||
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"`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue