Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Docker types.
Synopsis
- data DockerException
- = DockerMustBeEnabledException
- | OnlyOnHostException
- | InspectFailedException String
- | NotPulledException String
- | InvalidImagesOutputException String
- | InvalidPSOutputException String
- | InvalidInspectOutputException String
- | PullFailedException String
- | DockerTooOldException Version Version
- | DockerVersionProhibitedException [Version] Version
- | BadDockerVersionException VersionRange Version
- | InvalidVersionOutputException
- | HostStackTooOldException Version (Maybe Version)
- | ContainerStackTooOldException Version Version
- | CannotDetermineProjectRootException
- | DockerNotInstalledException
- | UnsupportedStackExeHostPlatformException
- | DockerStackExeParseException String
- data DockerMonoidRepoOrImage
- data DockerOpts = DockerOpts {
- dockerEnable :: !Bool
- dockerImage :: !(Either SomeException String)
- dockerRegistryLogin :: !Bool
- dockerRegistryUsername :: !(Maybe String)
- dockerRegistryPassword :: !(Maybe String)
- dockerAutoPull :: !Bool
- dockerDetach :: !Bool
- dockerPersist :: !Bool
- dockerContainerName :: !(Maybe String)
- dockerNetwork :: !(Maybe String)
- dockerRunArgs :: ![String]
- dockerMount :: ![Mount]
- dockerMountMode :: !(Maybe String)
- dockerEnv :: ![String]
- dockerStackExe :: !(Maybe DockerStackExe)
- dockerSetUser :: !(Maybe Bool)
- dockerRequireDockerVersion :: !VersionRange
- data DockerOptsMonoid = DockerOptsMonoid {
- dockerMonoidDefaultEnable :: !Any
- dockerMonoidEnable :: !(First Bool)
- dockerMonoidRepoOrImage :: !(First DockerMonoidRepoOrImage)
- dockerMonoidRegistryLogin :: !(First Bool)
- dockerMonoidRegistryUsername :: !(First String)
- dockerMonoidRegistryPassword :: !(First String)
- dockerMonoidAutoPull :: !FirstTrue
- dockerMonoidDetach :: !FirstFalse
- dockerMonoidPersist :: !FirstFalse
- dockerMonoidContainerName :: !(First String)
- dockerMonoidNetwork :: !(First String)
- dockerMonoidRunArgs :: ![String]
- dockerMonoidMount :: ![Mount]
- dockerMonoidMountMode :: !(First String)
- dockerMonoidEnv :: ![String]
- dockerMonoidStackExe :: !(First DockerStackExe)
- dockerMonoidSetUser :: !(First Bool)
- dockerMonoidRequireDockerVersion :: !IntersectingVersionRange
- data DockerStackExe
- data Mount = Mount String String
- newtype VersionRangeJSON = VersionRangeJSON {}
- dockerAutoPullArgName :: Text
- dockerCmdName :: String
- dockerContainerNameArgName :: Text
- dockerContainerPlatform :: Platform
- dockerDetachArgName :: Text
- dockerEnableArgName :: Text
- dockerEntrypointArgName :: String
- dockerEnvArgName :: Text
- dockerHelpOptName :: String
- dockerImageArgName :: Text
- dockerMountArgName :: Text
- dockerMountModeArgName :: Text
- dockerNetworkArgName :: Text
- dockerPersistArgName :: Text
- dockerPullCmdName :: String
- dockerRegistryLoginArgName :: Text
- dockerRegistryPasswordArgName :: Text
- dockerRegistryUsernameArgName :: Text
- dockerRepoArgName :: Text
- dockerRequireDockerVersionArgName :: Text
- dockerRunArgsArgName :: Text
- dockerSetUserArgName :: Text
- dockerStackExeArgName :: Text
- dockerStackExeDownloadVal :: String
- dockerStackExeHostVal :: String
- dockerStackExeImageVal :: String
- parseDockerStackExe :: MonadThrow m => String -> m DockerStackExe
- reExecArgName :: String
Documentation
data DockerException Source #
Type representing exceptions thrown by functions exported by the Stack.Docker module.
DockerMustBeEnabledException | Docker must be enabled to use the command. |
OnlyOnHostException | Command must be run on host OS (not in a container). |
InspectFailedException String |
|
NotPulledException String | Image does not exist. |
InvalidImagesOutputException String | Invalid output from |
InvalidPSOutputException String | Invalid output from |
InvalidInspectOutputException String | Invalid output from |
PullFailedException String | Could not pull a Docker image. |
DockerTooOldException Version Version | Installed version of |
DockerVersionProhibitedException [Version] Version | Installed version of |
BadDockerVersionException VersionRange Version | Installed version of |
InvalidVersionOutputException | Invalid output from |
HostStackTooOldException Version (Maybe Version) | Version of |
ContainerStackTooOldException Version Version | Version of |
CannotDetermineProjectRootException | Can't determine the project root (where to put docker sandbox). |
DockerNotInstalledException |
|
UnsupportedStackExeHostPlatformException | Using host stack-exe on unsupported platform. |
DockerStackExeParseException String |
|
Instances
Exception DockerException Source # | |
Defined in Stack.Types.Docker | |
Show DockerException Source # | |
Defined in Stack.Types.Docker showsPrec :: Int -> DockerException -> ShowS # show :: DockerException -> String # showList :: [DockerException] -> ShowS # |
data DockerMonoidRepoOrImage Source #
Options for Docker repository or image.
Instances
Show DockerMonoidRepoOrImage Source # | |
Defined in Stack.Types.Docker showsPrec :: Int -> DockerMonoidRepoOrImage -> ShowS # show :: DockerMonoidRepoOrImage -> String # showList :: [DockerMonoidRepoOrImage] -> ShowS # |
data DockerOpts Source #
Docker configuration.
DockerOpts | |
|
Instances
Show DockerOpts Source # | |
Defined in Stack.Types.Docker showsPrec :: Int -> DockerOpts -> ShowS # show :: DockerOpts -> String # showList :: [DockerOpts] -> ShowS # |
data DockerOptsMonoid Source #
An uninterpreted representation of docker options. Configurations may be "cascaded" using mappend (left-biased).
DockerOptsMonoid | |
|
Instances
data DockerStackExe Source #
Where to get the stack
executable to run in Docker containers
DockerStackExeDownload | Download from official bindist |
DockerStackExeHost | Host's |
DockerStackExeImage | Docker image's |
DockerStackExePath (Path Abs File) | Executable at given path |
Instances
FromJSON DockerStackExe Source # | |
Defined in Stack.Types.Docker parseJSON :: Value -> Parser DockerStackExe # parseJSONList :: Value -> Parser [DockerStackExe] # | |
Show DockerStackExe Source # | |
Defined in Stack.Types.Docker showsPrec :: Int -> DockerStackExe -> ShowS # show :: DockerStackExe -> String # showList :: [DockerStackExe] -> ShowS # |
Docker volume mount.
newtype VersionRangeJSON Source #
Newtype for non-orphan FromJSON instance.
Instances
FromJSON VersionRangeJSON Source # | Parse VersionRange. |
Defined in Stack.Types.Docker parseJSON :: Value -> Parser VersionRangeJSON # parseJSONList :: Value -> Parser [VersionRangeJSON] # |
dockerAutoPullArgName :: Text Source #
Docker auto-pull argument name.
dockerCmdName :: String Source #
Command-line argument for "docker"
dockerContainerNameArgName :: Text Source #
Docker container name argument name.
dockerContainerPlatform :: Platform Source #
Platform that Docker containers run
dockerDetachArgName :: Text Source #
Docker detach argument name.
dockerEnableArgName :: Text Source #
Docker enable argument name.
dockerEntrypointArgName :: String Source #
Argument name used to pass docker entrypoint data (only used internally)
dockerEnvArgName :: Text Source #
Docker environment variable argument name.
dockerImageArgName :: Text Source #
Docker image argument name.
dockerMountArgName :: Text Source #
Docker mount argument name.
dockerMountModeArgName :: Text Source #
Docker mount mode argument name.
dockerNetworkArgName :: Text Source #
Docker container name argument name.
dockerPersistArgName :: Text Source #
Docker persist argument name.
dockerPullCmdName :: String Source #
Command-line argument for docker pull
.
dockerRegistryLoginArgName :: Text Source #
Docker registry login argument name.
dockerRegistryPasswordArgName :: Text Source #
Docker registry password argument name.
dockerRegistryUsernameArgName :: Text Source #
Docker registry username argument name.
dockerRepoArgName :: Text Source #
Docker repo arg argument name.
dockerRequireDockerVersionArgName :: Text Source #
Docker require-version
argument name
dockerRunArgsArgName :: Text Source #
Docker run args argument name.
dockerSetUserArgName :: Text Source #
Docker set-user
argument name
dockerStackExeArgName :: Text Source #
Docker Stack executable argument name.
dockerStackExeDownloadVal :: String Source #
Value for --docker-stack-exe=download
dockerStackExeHostVal :: String Source #
Value for --docker-stack-exe=host
dockerStackExeImageVal :: String Source #
Value for --docker-stack-exe=image
parseDockerStackExe :: MonadThrow m => String -> m DockerStackExe Source #
Parse DockerStackExe
.
reExecArgName :: String Source #
Command-line option for --internal-re-exec-version
.