network

package
v0.0.0-...-932d068 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 {
	DisableBridge bool   `json:"disable-bridge,omitempty"`
	Name          string `json:"bridge-name,omitempty"`
	IPv4          string `json:"bip,omitempty"`
	FixedCIDRv4   string `json:"fixed-cidr,omitempty"`
	GatewayIPv4   string `json:"default-gateway,omitempty"`
	EnableIPv6    bool   `json:"enable-ipv6,omitempty"`
	FixedCIDRv6   string `json:"fixed-cidr-v6,omitempty"`
	GatewayIPv6   string `json:"default-gateway-v6,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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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