network

package
v20.10.22+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterNetworks

func FilterNetworks(nws []types.NetworkResource, filter filters.Args) ([]types.NetworkResource, error)

FilterNetworks filters network list according to user specified filter and returns user chosen networks

Types

type AttachmentStore

type AttachmentStore struct {
	sync.Mutex
	// contains filtered or unexported fields
}

AttachmentStore stores the load balancer IP address for a network id.

func (*AttachmentStore) ClearAttachments

func (store *AttachmentStore) ClearAttachments()

ClearAttachments clears all the mappings of network to load balancer IP Address.

func (*AttachmentStore) GetIPForNetwork

func (store *AttachmentStore) GetIPForNetwork(networkID string) (net.IP, bool)

GetIPForNetwork return the load balancer IP address for the given network.

func (*AttachmentStore) ResetAttachments

func (store *AttachmentStore) ResetAttachments(attachments map[string]string) error

ResetAttachments clears any existing load balancer IP to network mapping and sets the mapping to the given attachments.

type EndpointSettings

type EndpointSettings struct {
	*networktypes.EndpointSettings
	IPAMOperational bool
}

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 Settings

type Settings struct {
	Bridge                 string
	SandboxID              string
	HairpinMode            bool
	LinkLocalIPv6Address   string
	LinkLocalIPv6PrefixLen int
	Networks               map[string]*EndpointSettings
	Service                *clustertypes.ServiceConfig
	Ports                  nat.PortMap
	SandboxKey             string
	SecondaryIPAddresses   []networktypes.Address
	SecondaryIPv6Addresses []networktypes.Address
	IsAnonymousEndpoint    bool
	HasSwarmEndpoint       bool
}

Settings stores configuration details about the daemon network config TODO Windows. Many of these fields can be factored out.,

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL