network

package
v0.0.0-...-a79519d Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultExecRoot = "/var/run/pouch"

DefaultExecRoot defines the default network execute root directory.

Functions

This section is empty.

Types

type BridgeConfig

type BridgeConfig struct {
	Name        string `json:"bridge-name"`
	IP          string `json:"bip"`
	FixedCIDR   string `json:"fixed-cidr"`
	GatewayIPv4 string `json:"default-gateway"`
	PreferredIP string `json:"preferred-ip"`

	Mtu           int  `json:"mtu"`
	ICC           bool `json:"icc"`
	IPTables      bool `json:"iptables"`
	IPForward     bool `json:"ipforward"`
	IPMasq        bool `json:"ipmasq"`
	UserlandProxy bool `json:"userland-proxy"`
}

BridgeConfig defines the bridge network configuration.

type Config

type Config struct {
	Type string `json:"-"`

	MetaPath   string   `json:"meta-path"`     // meta store
	ExecRoot   string   `json:"exec-root-dir"` // exec root
	DNS        []string `json:"dns"`
	DNSOptions []string `json:"dns-options"`
	DNSSearch  []string `json:"dns-search"`

	// bridge config
	BridgeConfig BridgeConfig `json:"bridge-config"`

	ActiveSandboxes map[string]interface{} `json:"-"`
}

Config defines the network configuration.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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