settings.go 809 B

123456789101112131415161718192021222324
  1. package network
  2. import (
  3. clustertypes "github.com/docker/docker/daemon/cluster/provider"
  4. networktypes "github.com/docker/engine-api/types/network"
  5. "github.com/docker/go-connections/nat"
  6. )
  7. // Settings stores configuration details about the daemon network config
  8. // TODO Windows. Many of these fields can be factored out.,
  9. type Settings struct {
  10. Bridge string
  11. SandboxID string
  12. HairpinMode bool
  13. LinkLocalIPv6Address string
  14. LinkLocalIPv6PrefixLen int
  15. Networks map[string]*networktypes.EndpointSettings
  16. Service *clustertypes.ServiceConfig
  17. Ports nat.PortMap
  18. SandboxKey string
  19. SecondaryIPAddresses []networktypes.Address
  20. SecondaryIPv6Addresses []networktypes.Address
  21. IsAnonymousEndpoint bool
  22. }