# Functions
CommandFromDescription returns the command with the given description, if any.
ConnectToDaemon connects to a Docker daemon using the given properties.
DurationForHumans returns a human-readable approximation of a duration represented as an int64 nanosecond count.
GetBool returns false if the given string looks like you mean false, true otherwise.
ImageID removes anything that is not part of the ID but is being added by the docker library.
IsContainerRunning returns true if the given container is running.
NewDockerContainerStore creates a new Docker container store that will use the given Docker daemon client to retrieve container information.
NewEnv creates a new docker environment struct.
NewEventLog creates an event log with the default capacity.
NewNodeAvailability builds NodeAvailability from the given string.
ShortImageID shortens and beutifies an id.
SortContainers sorts the given containers slice using the given mode.
SortImages sorts the given image slice using the given mode.
SortNetworks sorts the given network slice using the given mode.
SortNodes sorts the given nodes slice using the given mode.
SortServices sorts the given service slice using the given mode.
SortStacks sorts the given stack slice using the given mode.
SortTasks sorts the given Task slice using the given mode.
TruncateID returns a shorthand version of a string identifier for convenience.
# Constants
ContainerSource for events emitted by Docker containers.
DaemonSource for events emitted by the Docker daemon.
DefaultCapacity of a new EventLog.
DefaultConnectionTimeout is the timeout for connecting with the Docker daemon.
DefaultDockerHost is used as a default docker host to connect toif no other value is given.
HISTORY Image history command.
ImageSource for events emitted by Docker images.
INSPECT Inspect command.
KILL kill command.
LabelNamespace is the label used to track stack resourcesCopied from https://github.com/docker/cli/blob/master/cli/compose/convert/compose.go.
LOGS logs command.
NetworkSource for events emitted by Docker networks.
NodeSource for events emitted by Docker nodes.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
PluginSource for events emitted by Docker plugins.
RESTART restart command.
RM remove command.
SecretSource for events emitted by Docker secrets.
ServiceSource for events emitted by Docker services.
ShortLen defines the default size of shortened ID.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
Allowed sort methods.
STATS stats command.
STOP stop command.
VolumeSource for events emitted by Docker volumes.
Whale ascii art.
Whale0 ascii art for animations.
Whale1 ascii art for animations.
Whale2 ascii art for animations.
Whale3 ascii art for animations.
Whale4 ascii art for animations.
Whale5 ascii art for animations.
Whale6 ascii art for animations.
Whale7 ascii art for animations.
# Variables
CommandDescriptions lists command descriptions in the same order as they are found in ContainerCommands.
ContainerCommands is the list of container commands.
ContainerFilters is a holder of predefined ContainerFilter(s) The intentions is that something like 'ContainerFilters.ByName("name")' can be used to declare a filter.
GlobalRegistry is a globally available CallbackRegistry.
# Structs
CommandDescription describes docker commands.
Container holds a detailed view of a container.
DockerDaemon knows how to talk to the Docker daemon.
Env holds Docker-related environment variables.
EventLog keeps track of docker events.
PruneReport represents the result of a prune operation.
Stack contains information about a Docker Swarm stack.
Stats holds runtime stats for a container.
StatsChannel manages the stats channel of a container.
# Interfaces
CallbackRegistry d.
ContainerAPI is a subset of the Docker API to manage containers.
ContainerDaemon describes what is expected from the container daemon.
ContainerRuntime is the subset of the Docker API to query container runtime information.
ContainerStore defines a container storage.
ImageAPI is a subset of the Docker API to manage images.
NetworkAPI is a subset of the Docker API to manage networks.
Resolver defines the interface for ID to name resolution.
SwarmAPI defines the API for Docker Swarm.
VolumesAPI defines the API for Docker volumes.
# Type aliases
Command represents a docker command.
ContainerFilter defines a function to filter container.
EventCallback defines a callback function for messages.
SortMode represents allowed modes to sort a container slice.
SourceType is a representation of the sources types that might emit Docker events.