github.com/vvnotw/moby@v1.13.1/daemon/network/settings.go (about)

     1  package network
     2  
     3  import (
     4  	networktypes "github.com/docker/docker/api/types/network"
     5  	clustertypes "github.com/docker/docker/daemon/cluster/provider"
     6  	"github.com/docker/go-connections/nat"
     7  )
     8  
     9  // Settings stores configuration details about the daemon network config
    10  // TODO Windows. Many of these fields can be factored out.,
    11  type Settings struct {
    12  	Bridge                 string
    13  	SandboxID              string
    14  	HairpinMode            bool
    15  	LinkLocalIPv6Address   string
    16  	LinkLocalIPv6PrefixLen int
    17  	Networks               map[string]*EndpointSettings
    18  	Service                *clustertypes.ServiceConfig
    19  	Ports                  nat.PortMap
    20  	SandboxKey             string
    21  	SecondaryIPAddresses   []networktypes.Address
    22  	SecondaryIPv6Addresses []networktypes.Address
    23  	IsAnonymousEndpoint    bool
    24  	HasSwarmEndpoint       bool
    25  }
    26  
    27  // EndpointSettings is a package local wrapper for
    28  // networktypes.EndpointSettings which stores Endpoint state that
    29  // needs to be persisted to disk but not exposed in the api.
    30  type EndpointSettings struct {
    31  	*networktypes.EndpointSettings
    32  	IPAMOperational bool
    33  }