package
1.20.0-1
Repository: https://github.com/fenxiong/amazon-ecs-agent.git
Documentation: pkg.go.dev
# Packages
Package mock_dockerapi is a generated GoMock package.
# Functions
DockerStateToState converts the container status from docker to status recognized by the agent.
MetadataFromContainer translates dockerContainer into DockerContainerMetadata.
NewDockerGoClient creates a new DockerGoClient TODO Remove clientfactory parameter once migration to Docker SDK is complete.
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.
CannotStartContainerErrorName is the name of container start error.
DockerTimeoutErrorName is the name of docker timeout error.
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.
No description provided by the author
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.
No description provided by the author
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.
ListImagesResponse encapsulates the response from the docker client for the ListImages call.
ListPluginsResponse is a wrapper for ListPlugins api.
NoSuchContainerError indicates error when a given container is not found.
OutOfMemoryError is a type for errors caused by running out of memory.
VolumeResponse wrapper for CreateVolume for SDK Clients.
VolumeResponse wrapper for CreateVolume and InspectVolume TODO Remove type when migration is complete.
# Interfaces
DockerClient interface to make testing it easier.