containers

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2017 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BackendBaseDir       = "/tmp"
	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.
	Network  Network           `json:"network"`  // network setup
	Port     map[int]int       `json:"port"`     //port forwards
	Hostname string            `json:"hostname"` //hostname
}

func (*ContainerCreateArguments) Valid

func (c *ContainerCreateArguments) Valid() error

type ContainerDispatchArguments

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

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