2015-04-04 00:06:48 -04:00
|
|
|
package network
|
2014-04-14 02:15:31 -04:00
|
|
|
|
2015-12-09 16:38:39 -05:00
|
|
|
import (
|
2016-09-06 14:18:12 -04:00
|
|
|
networktypes "github.com/docker/docker/api/types/network"
|
2016-06-13 22:52:49 -04:00
|
|
|
clustertypes "github.com/docker/docker/daemon/cluster/provider"
|
2015-12-18 12:58:48 -05:00
|
|
|
"github.com/docker/go-connections/nat"
|
2015-12-09 16:38:39 -05:00
|
|
|
)
|
2015-10-09 14:21:48 -04:00
|
|
|
|
2015-07-21 07:34:57 -04:00
|
|
|
// Settings stores configuration details about the daemon network config
|
2015-08-06 22:21:00 -04: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 18:39:29 -04:00
|
|
|
Bridge string
|
2015-09-02 19:43:28 -04:00
|
|
|
SandboxID string
|
2015-05-06 18:39:29 -04:00
|
|
|
HairpinMode bool
|
2015-01-08 18:03:19 -05:00
|
|
|
LinkLocalIPv6Address string
|
|
|
|
LinkLocalIPv6PrefixLen int
|
2016-08-23 19:50:15 -04:00
|
|
|
Networks map[string]*EndpointSettings
|
2016-06-13 22:52:49 -04:00
|
|
|
Service *clustertypes.ServiceConfig
|
2015-01-08 18:03:19 -05:00
|
|
|
Ports nat.PortMap
|
2015-05-06 18:39:29 -04:00
|
|
|
SandboxKey string
|
2015-12-09 16:38:39 -05:00
|
|
|
SecondaryIPAddresses []networktypes.Address
|
|
|
|
SecondaryIPv6Addresses []networktypes.Address
|
2015-10-21 12:08:19 -04:00
|
|
|
IsAnonymousEndpoint bool
|
2014-04-14 02:15:31 -04:00
|
|
|
}
|
2016-08-23 19:50:15 -04:00
|
|
|
|
|
|
|
// EndpointSettings is a package local wrapper for
|
|
|
|
// networktypes.EndpointSettings which stores Endpoint state that
|
|
|
|
// needs to be persisted to disk but not exposed in the api.
|
|
|
|
type EndpointSettings struct {
|
|
|
|
*networktypes.EndpointSettings
|
|
|
|
IPAMOperational bool
|
|
|
|
}
|