containers

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2017 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BackendBaseDir       = "/var/cache/containers"
	ContainerBaseRootDir = "/mnt"
)
View Source
const (
	DefaultBridgeName = "core-0"
)

Variables

View Source
var (
	BridgeIP          = []byte{172, 18, 0, 1}
	DefaultBridgeIP   = fmt.Sprintf("%d.%d.%d.%d", BridgeIP[0], BridgeIP[1], BridgeIP[2], BridgeIP[3])
	DefaultBridgeCIDR = fmt.Sprintf("%s/16", DefaultBridgeIP)
)

Functions

func ContainerSubsystem

func ContainerSubsystem(sinks map[string]base.SinkClient) error

Types

type ContainerBridgeSettings

type ContainerBridgeSettings [2]string

func (ContainerBridgeSettings) Name

func (ContainerBridgeSettings) Setup

func (s ContainerBridgeSettings) Setup() string

func (ContainerBridgeSettings) String

func (s ContainerBridgeSettings) String() string

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
	Network     Network           `json:"network"`      //network setup (only respected if HostNetwork is false)
	Port        map[int]int       `json:"port"`         //port forwards
	Hostname    string            `json:"hostname"`     //hostname
	Storage     string            `json:"storage"`      //ardb storage needed for g8ufs mounts.
}

func (*ContainerCreateArguments) Valid

func (c *ContainerCreateArguments) Valid() error

type ContainerDispatchArguments

type ContainerDispatchArguments struct {
	Container uint16       `json:"container"`
	Command   core.Command `json:"command"`
}

type ContainerInfo added in v1.0.0

type ContainerInfo struct {
	process.ProcessStats
	Root string `json:"root"`
}

type ContainerTerminateArguments

type ContainerTerminateArguments struct {
	Container uint64 `json:"container"`
}

type Network

type Network struct {
	ZeroTier string                    `json:"zerotier,omitempty"`
	Bridge   []ContainerBridgeSettings `json:"bridge,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL