2015-04-04 07:06:48 +03:00
|
|
|
package network
|
2014-04-14 10:15:31 +04:00
|
|
|
|
2015-12-10 00:38:39 +03:00
|
|
|
import (
|
2016-01-05 03:05:26 +03:00
|
|
|
networktypes "github.com/docker/engine-api/types/network"
|
2015-12-18 20:58:48 +03:00
|
|
|
"github.com/docker/go-connections/nat"
|
2015-12-10 00:38:39 +03:00
|
|
|
)
|
2015-10-09 21:21:48 +03:00
|
|
|
|
2015-07-21 14:34:57 +03:00
|
|
|
// Settings stores configuration details about the daemon network config
|
2015-08-07 05:21:00 +03:00
|
|
|
// TODO Windows. Many of these fields can be factored out.,
|
2015-04-04 07:06:48 +03:00
|
|
|
type Settings struct {
|
2015-05-07 01:39:29 +03:00
|
|
|
Bridge string
|
2015-09-03 02:43:28 +03:00
|
|
|
SandboxID string
|
2015-05-07 01:39:29 +03:00
|
|
|
HairpinMode bool
|
2015-01-09 02:03:19 +03:00
|
|
|
LinkLocalIPv6Address string
|
|
|
|
LinkLocalIPv6PrefixLen int
|
2015-12-10 00:38:39 +03:00
|
|
|
Networks map[string]*networktypes.EndpointSettings
|
2015-01-09 02:03:19 +03:00
|
|
|
Ports nat.PortMap
|
2015-05-07 01:39:29 +03:00
|
|
|
SandboxKey string
|
2015-12-10 00:38:39 +03:00
|
|
|
SecondaryIPAddresses []networktypes.Address
|
|
|
|
SecondaryIPv6Addresses []networktypes.Address
|
2015-10-21 19:08:19 +03:00
|
|
|
IsAnonymousEndpoint bool
|
2014-04-14 10:15:31 +04:00
|
|
|
}
|