2015-04-04 00:06:48 -04:00
|
|
|
package network
|
2014-04-14 06:15:31 +00:00
|
|
|
|
2015-12-09 13:38:39 -08:00
|
|
|
import (
|
2016-01-04 19:05:26 -05:00
|
|
|
networktypes "github.com/docker/engine-api/types/network"
|
2015-12-18 12:58:48 -05:00
|
|
|
"github.com/docker/go-connections/nat"
|
2015-12-09 13:38:39 -08:00
|
|
|
)
|
2015-10-09 11:21:48 -07:00
|
|
|
|
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
|
2015-09-02 16:43:28 -07:00
|
|
|
SandboxID string
|
2015-05-06 22:39:29 +00:00
|
|
|
HairpinMode bool
|
2015-01-09 00:03:19 +01:00
|
|
|
LinkLocalIPv6Address string
|
|
|
|
LinkLocalIPv6PrefixLen int
|
2015-12-09 13:38:39 -08:00
|
|
|
Networks map[string]*networktypes.EndpointSettings
|
2015-01-09 00:03:19 +01:00
|
|
|
Ports nat.PortMap
|
2015-05-06 22:39:29 +00:00
|
|
|
SandboxKey string
|
2015-12-09 13:38:39 -08:00
|
|
|
SecondaryIPAddresses []networktypes.Address
|
|
|
|
SecondaryIPv6Addresses []networktypes.Address
|
2015-10-21 09:08:19 -07:00
|
|
|
IsAnonymousEndpoint bool
|
2014-04-14 06:15:31 +00:00
|
|
|
}
|