Documentation ¶
Index ¶
Constants ¶
View Source
const ( OVSTag = "ovs" OVSBackPlane = "backplane" OVSVXBackend = "vxbackend" )
View Source
const ( BackendBaseDir = "/var/cache/containers" ContainerBaseRootDir = "/mnt" )
View Source
const ( DefaultBridgeName = "core0" ContainersHardLimit = 1000 )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container interface { ID() uint16 Arguments() ContainerCreateArguments }
type ContainerArguments ¶
type ContainerArguments struct {
Container uint16 `json:"container"`
}
type ContainerCreateArguments ¶
type ContainerCreateArguments struct { Root string `json:"root"` //Root plist Mount map[string]string `json:"mount"` //data disk mounts. HostNetwork bool `json:"host_network"` //share host networking stack Nics []Nic `json:"nics"` //network setup (only respected if HostNetwork is false) Port map[int]int `json:"port"` //port forwards (only if default networking is enabled) Privileged bool `json:"privileged"` //Apply cgroups and capabilities limitations on the container Hostname string `json:"hostname"` //hostname Storage string `json:"storage"` //ardb storage needed for g8ufs mounts. Tags []string `json:"tags"` //for searching containers }
func (*ContainerCreateArguments) Validate ¶
func (c *ContainerCreateArguments) Validate() error
type ContainerFindArguments ¶
type ContainerFindArguments struct {
Tags []string `json:"tags"`
}
type ContainerInfo ¶
type ContainerInfo struct { process.ProcessStats Container Container `json:"container"` }
type ContainerManager ¶
type ContainerManager interface { Dispatch(id uint16, cmd *core.Command) (*core.JobResult, error) GetWithTags(tags ...string) []Container GetOneWithTags(tags ...string) Container Of(id uint16) Container }
func ContainerSubsystem ¶
type Message ¶
type Message struct { Type string `json:"type"` Command string `json:"command"` Payload json.RawMessage `json:"payload"` }
type NetworkConfig ¶
type Nic ¶
type Nic struct { Type string `json:"type"` ID string `json:"id"` HWAddress string `json:"hwaddr"` Name string `json:"name,omitempty"` Config NetworkConfig `json:"config"` }
type SortableDisks ¶
type SortableDisks []disk.PartitionStat
func (SortableDisks) Len ¶
func (d SortableDisks) Len() int
func (SortableDisks) Less ¶
func (d SortableDisks) Less(i, j int) bool
Less reports whether the element with index i should sort before the element with index j.
func (SortableDisks) Swap ¶
func (d SortableDisks) Swap(i, j int)
Swap swaps the elements with indexes i and j.
Click to show internal directories.
Click to hide internal directories.