# Packages
Package mock_dockerapi is a generated GoMock package.
# Functions
DockerStateToState converts the container status from docker to status recognized by the agent Ref: https://github.com/fsouza/go-dockerclient/blob/fd53184a1439b6d7b82ca54c1cd9adac9a5278f2/container.go#L133.
MetadataFromContainer translates dockerContainer into DockerContainerMetadata.
NewDockerGoClient creates a new DockerGoClient.
NewDockerStateError creates a DockerStateError.
NewInfiniteBuffer returns an InfiniteBuffer object.
# Constants
CannotDescribeContainerErrorName is the name of describe container error.
CannotInspectContainerErrorName is the name of container inspect error.
CreateContainerTimeout is the timeout for the CreateContainer API.
CreateVolumeTimeout is the timout for CreateVolume API.
DockerTimeoutErrorName is the name of docker timeout error.
InspectContainerTimeout is the timeout for the InspectContainer API.
InspectVolumeTimeout is the timout for InspectVolume API.
ListPluginsTimeout is the timout for ListPlugins API.
RemoveContainerTimeout is the timeout for the RemoveContainer API.
RemoveImageTimeout is the timeout for the RemoveImage API.
RemoveVolumeTimeout is the timout for RemoveVolume API.
StatsInactivityTimeout controls the amount of time we hold open a connection to the Docker daemon waiting for stats data.
StopContainerTimeout is the timeout for the StopContainer API.
VolumeDriverType is one of the plugin capabilities see https://docs.docker.com/engine/reference/commandline/plugin_ls/#filtering.
# Structs
CannotCreateContainerError indicates any error when trying to create a container.
CannotCreateVolumeError indicates any error when trying to create a volume.
CannotDescribeContainerError indicates any error when trying to describe a container.
CannotGetDockerClientError is a type for failing to get a specific Docker client.
CannotInspectContainerError indicates any error when trying to inspect a container.
CannotInspectVolumeError indicates any error when trying to inspect a volume.
CannotListContainersError indicates any error when trying to list containers.
CannotListPluginsError indicates any error when trying to list docker plugins.
CannotPullContainerAuthError indicates any error when trying to pull a container image.
CannotPullContainerError indicates any error when trying to pull a container image.
CannotPullECRContainerError indicates any error when trying to pull a container image from ECR.
CannotRemoveContainerError indicates any error when trying to remove a container.
CannotRemoveVolumeError indicates any error when trying to inspect a volume.
CannotStartContainerError indicates any error when trying to start a container.
CannotStopContainerError indicates any error when trying to stop a container.
ContainerNotFound is a type for a missing container.
DockerContainerChangeEvent is a type for container change events.
DockerContainerMetadata is a type for metadata about Docker containers.
DockerStateError is a wrapper around the error docker puts in the '.State.Error' field of its inspect output.
DockerTimeoutError is an error type for describing timeouts.
InfiniteBuffer defines an unlimited buffer, where it reads from input channel and write to output channel.
ListContainersResponse encapsulates the response from the docker client for the ListContainers call.
ListPluginsResponse is a wrapper for ListPlugins api.
OutOfMemoryError is a type for errors caused by running out of memory.
VolumeResponse wrapper for CreateVolume and InspectVolume.
# Interfaces
DockerClient interface to make testing it easier.