# Packages

No description provided by the author

# Functions

BuildContainerConfig creates a cluster.ContainerConfig from a Config, HostConfig, and NetworkingConfig.
ConsolidateResourceFields is a temporary fix to handle forward/backward compatibility between Docker <1.6 and >=1.7.
FullStateString returns human-readable description of the state.
HealthString returns a single string to describe health status.
IsConnectionError returns true when err is connection problem.
NewAPIEventHandler creates a new APIEventsHandler for a cluster.
NewClusterEventHandlers initializes and returns a ClusterEventHandlers object.
NewEngine is exported.
NewEventsMonitor returns an EventsMonitor.
NewHTTPClientTimeout is used to create the HTTP Client and URL.
NewWatchdog creates a new watchdog.
ParseRepositoryTag gets a repos name and returns the right reposName + tag|digest The tag can be confusing because of a port in a repository name.
StateString returns a single string to describe state.

# Constants

SwarmLabelNamespace defines the key prefix in all custom labels.

# Structs

APIEventHandler broadcasts events to multiple client listeners.
ClusterEventHandlers is a map of EventHandler.
Container is exported.
ContainerConfig is exported TODO store affinities and constraints in their own fields.
Engine represents a docker engine.
EngineOpts represents the options for an engine.
Event is exported.
EventsMonitor monitors events.
Image is exported.
ImageFilterOptions is the set of filtering options supported by Images.Filter().
JSONError represents a JSON Error.
JSONMessage represents a JSON-encoded message regarding the status of a stream.
JSONMessageWrapper is used in callback functions for API calls that send back JSONMessages; this allows us to pass info around within Swarm classic.
JSONProgress represents a JSON-encoded progress instance.
Network is exported.
OldContainerConfig contains additional fields for backward compatibility This should be removed after we stop supporting API versions <= 1.8 TODO(nishanttotla): Remove this field.
Volume is exported.
Watchdog listens to cluster events and handles container rescheduling.

# Interfaces

Cluster is exported.
EventHandler is exported.

# Type aliases

Containers represents a list of containers.
DriverOpts are key=values options.
EngineSorter implements the Sort interface to sort Cluster.Engine.
Images is a collection of Image objects that can be filtered.
Networks represents an array of networks.
Volumes represents an array of volumes.