Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultExecRoot defines the default network execute root directory. DefaultExecRoot = "/var/run/pouch" // DefaultNetworkMtu is the default value for network MTU DefaultNetworkMtu = 1500 )
Functions ¶
This section is empty.
Types ¶
type BridgeConfig ¶
type BridgeConfig struct { Name string `json:"bridge-name,omitempty"` IP string `json:"bip,omitempty"` FixedCIDR string `json:"fixed-cidr,omitempty"` GatewayIPv4 string `json:"default-gateway,omitempty"` PreferredIP string `json:"preferred-ip,omitempty"` Mtu int `json:"mtu,omitempty"` ICC bool `json:"icc,omitempty"` IPTables bool `json:"iptables"` IPForward bool `json:"ipforward"` IPMasq bool `json:"ipmasq,omitempty"` UserlandProxy bool `json:"userland-proxy"` }
BridgeConfig defines the bridge network configuration.
type Config ¶
type Config struct { Type string `json:"-"` MetaPath string `json:"meta-path,omitempty"` // meta store ExecRoot string `json:"exec-root-dir,omitempty"` // exec root DNS []string `json:"dns,omitempty"` DNSOptions []string `json:"dns-options,omitempty"` DNSSearch []string `json:"dns-search,omitempty"` // bridge config BridgeConfig BridgeConfig `json:"bridge-config,omitempty"` ActiveSandboxes map[string]interface{} `json:"-"` }
Config defines the network configuration.
Click to show internal directories.
Click to hide internal directories.