package network

import "github.com/dotcloud/docker/daemon/network"

Index

Types

type Address

type Address struct {
	Addr      string
	PrefixLen int
}

Address represents an IP address

type EndpointSettings

type EndpointSettings struct {
	EndpointID          string
	Gateway             string
	IPAddress           string
	IPPrefixLen         int
	IPv6Gateway         string
	GlobalIPv6Address   string
	GlobalIPv6PrefixLen int
	MacAddress          string
}

EndpointSettings stores the network endpoint details

type IPAM

type IPAM struct {
	Driver string
	Config []IPAMConfig
}

IPAM represents IP Address Management

type IPAMConfig

type IPAMConfig struct {
	Subnet     string            `json:",omitempty"`
	IPRange    string            `json:",omitempty"`
	Gateway    string            `json:",omitempty"`
	AuxAddress map[string]string `json:"AuxiliaryAddresses,omitempty"`
}

IPAMConfig represents IPAM configurations

type Settings

type Settings struct {
	Bridge                 string
	SandboxID              string
	HairpinMode            bool
	LinkLocalIPv6Address   string
	LinkLocalIPv6PrefixLen int
	Networks               map[string]*EndpointSettings
	Ports                  nat.PortMap
	SandboxKey             string
	SecondaryIPAddresses   []Address
	SecondaryIPv6Addresses []Address
	IsAnonymousEndpoint    bool
}

Settings stores configuration details about the daemon network config TODO Windows. Many of these fields can be factored out.,

Source Files

settings.go

Version
v1.9.0-rc4
Published
Oct 31, 2015
Platform
js/wasm
Imports
1 packages
Last checked
2 minutes ago

Tools for package owners.