2015-04-04 00:06:48 -04:00
|
|
|
package network
|
2014-04-14 06:15:31 +00:00
|
|
|
|
2015-06-30 17:41:01 +01:00
|
|
|
import "github.com/docker/docker/pkg/nat"
|
2014-04-14 06:15:31 +00:00
|
|
|
|
2015-07-21 19:34:57 +08:00
|
|
|
// Address represents an IP address
|
2015-05-06 22:39:29 +00:00
|
|
|
type Address struct {
|
|
|
|
Addr string
|
|
|
|
PrefixLen int
|
|
|
|
}
|
|
|
|
|
2015-07-21 19:34:57 +08:00
|
|
|
// Settings stores configuration details about the daemon network config
|
2015-08-06 19:21:00 -07:00
|
|
|
// TODO Windows. Many of these fields can be factored out.,
|
2015-04-04 00:06:48 -04:00
|
|
|
type Settings struct {
|
2015-05-06 22:39:29 +00:00
|
|
|
Bridge string
|
|
|
|
EndpointID string
|
2015-09-02 16:43:28 -07:00
|
|
|
SandboxID string
|
2015-05-06 22:39:29 +00:00
|
|
|
Gateway string
|
|
|
|
GlobalIPv6Address string
|
|
|
|
GlobalIPv6PrefixLen int
|
|
|
|
HairpinMode bool
|
2015-01-09 00:03:19 +01:00
|
|
|
IPAddress string
|
|
|
|
IPPrefixLen int
|
2015-05-06 22:39:29 +00:00
|
|
|
IPv6Gateway string
|
2015-01-09 00:03:19 +01:00
|
|
|
LinkLocalIPv6Address string
|
|
|
|
LinkLocalIPv6PrefixLen int
|
2015-05-06 22:39:29 +00:00
|
|
|
MacAddress string
|
2015-09-25 03:19:17 -07:00
|
|
|
Networks []string
|
2015-01-09 00:03:19 +01:00
|
|
|
Ports nat.PortMap
|
2015-05-06 22:39:29 +00:00
|
|
|
SandboxKey string
|
|
|
|
SecondaryIPAddresses []Address
|
|
|
|
SecondaryIPv6Addresses []Address
|
2014-04-14 06:15:31 +00:00
|
|
|
}
|