2015-04-04 00:06:48 -04:00
|
|
|
package network
|
2014-04-14 02:15:31 -04:00
|
|
|
|
2015-06-30 12:41:01 -04:00
|
|
|
import "github.com/docker/docker/pkg/nat"
|
2014-04-14 02:15:31 -04:00
|
|
|
|
2015-07-21 07:34:57 -04:00
|
|
|
// Address represents an IP address
|
2015-05-06 18:39:29 -04:00
|
|
|
type Address struct {
|
|
|
|
Addr string
|
|
|
|
PrefixLen int
|
|
|
|
}
|
|
|
|
|
2015-07-21 07:34:57 -04:00
|
|
|
// Settings stores configuration details about the daemon network config
|
2015-04-04 00:06:48 -04:00
|
|
|
type Settings struct {
|
2015-05-06 18:39:29 -04:00
|
|
|
Bridge string
|
|
|
|
EndpointID string
|
|
|
|
Gateway string
|
|
|
|
GlobalIPv6Address string
|
|
|
|
GlobalIPv6PrefixLen int
|
|
|
|
HairpinMode bool
|
2015-01-08 18:03:19 -05:00
|
|
|
IPAddress string
|
|
|
|
IPPrefixLen int
|
2015-05-06 18:39:29 -04:00
|
|
|
IPv6Gateway string
|
2015-01-08 18:03:19 -05:00
|
|
|
LinkLocalIPv6Address string
|
|
|
|
LinkLocalIPv6PrefixLen int
|
2015-05-06 18:39:29 -04:00
|
|
|
MacAddress string
|
|
|
|
NetworkID string
|
2015-04-04 00:06:48 -04:00
|
|
|
PortMapping map[string]map[string]string // Deprecated
|
2015-01-08 18:03:19 -05:00
|
|
|
Ports nat.PortMap
|
2015-05-06 18:39:29 -04:00
|
|
|
SandboxKey string
|
|
|
|
SecondaryIPAddresses []Address
|
|
|
|
SecondaryIPv6Addresses []Address
|
2014-04-14 02:15:31 -04:00
|
|
|
}
|