| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Docker.API.Client.Internal.Types
Synopsis
- newtype OS = OS String
- data DockerClientError
- type ClientErrorMonad a = ExceptT DockerClientError IO a
- data ContainerSpec = ContainerSpec {}
- defaultContainerSpec :: Text -> ContainerSpec
- data ContainerLogType
- data DockerStreamType
Documentation
data DockerClientError Source #
This type describes common errors the docker client might encounter
Constructors
| ContainerCreationFailedError String | The request to create a new container failed |
| UnrecognizedJSONResponseError String | The docker engine API responded with something we didn't expect |
| GetContainerArchiveError String | The docker engine API responded with an error status code when getting a container archive |
| NonZeroExitCode String | The container exited with a nonzero exit code |
| GetContainerLogsError String | The docker engine API responded with an error when we attempted to get a container's logs |
| ImagePullError String | The docker engine API responded with an error when we attempted to pull an image |
Instances
type ClientErrorMonad a = ExceptT DockerClientError IO a Source #
Wrapper for composing operations which return an Either DockerClientError a
data ContainerSpec Source #
Describes a docker container to be created with runContainer. Use defaultContainerSpec to get a default value.
Constructors
| ContainerSpec | |
Fields
| |
Instances
Arguments
| :: Text | The container's Docker Image. May optionally include a tag or digest field (e.g. "python:3.6").
If neither a tag or digest is specified the image will default to the |
| -> ContainerSpec |
Constructs a simple default ContainerSpec for a docker image which uses the image's default values for all other aguments.
data DockerStreamType Source #
Possible types of streams returned by the Docker Engine API attach and logs endpoints. Used only internally for parsing the stream metadata returned by docker.
Constructors
| DockerStreamStdIn | |
| DockerStreamStdOut | |
| DockerStreamStdErr |