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 {
- enable :: !Bool
- image :: !(Either SomeException String)
- registryLogin :: !Bool
- registryUsername :: !(Maybe String)
- registryPassword :: !(Maybe String)
- autoPull :: !Bool
- detach :: !Bool
- persist :: !Bool
- containerName :: !(Maybe String)
- network :: !(Maybe String)
- runArgs :: ![String]
- mount :: ![Mount]
- mountMode :: !(Maybe String)
- env :: ![String]
- stackExe :: !(Maybe DockerStackExe)
- setUser :: !(Maybe Bool)
- requireDockerVersion :: !VersionRange
- data DockerOptsMonoid = DockerOptsMonoid {
- defaultEnable :: !Any
- enable :: !(First Bool)
- repoOrImage :: !(First DockerMonoidRepoOrImage)
- registryLogin :: !(First Bool)
- registryUsername :: !(First String)
- registryPassword :: !(First String)
- autoPull :: !FirstTrue
- detach :: !FirstFalse
- persist :: !FirstFalse
- containerName :: !(First String)
- network :: !(First String)
- runArgs :: ![String]
- mount :: ![Mount]
- mountMode :: !(First String)
- env :: ![String]
- stackExe :: !(First DockerStackExe)
- setUser :: !(First Bool)
- requireDockerVersion :: !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
Monoid DockerOptsMonoid Source # | Left-biased combine Docker options |
Defined in Stack.Types.Docker | |
Semigroup DockerOptsMonoid Source # | Left-biased combine Docker options |
Defined in Stack.Types.Docker (<>) :: DockerOptsMonoid -> DockerOptsMonoid -> DockerOptsMonoid # sconcat :: NonEmpty DockerOptsMonoid -> DockerOptsMonoid # stimes :: Integral b => b -> DockerOptsMonoid -> DockerOptsMonoid # | |
Generic DockerOptsMonoid Source # | |
Defined in Stack.Types.Docker type Rep DockerOptsMonoid :: Type -> Type # from :: DockerOptsMonoid -> Rep DockerOptsMonoid x # to :: Rep DockerOptsMonoid x -> DockerOptsMonoid # | |
Show DockerOptsMonoid Source # | |
Defined in Stack.Types.Docker showsPrec :: Int -> DockerOptsMonoid -> ShowS # show :: DockerOptsMonoid -> String # showList :: [DockerOptsMonoid] -> ShowS # | |
FromJSON (WithJSONWarnings DockerOptsMonoid) Source # | Decode uninterpreted docker options from JSON/YAML. |
Defined in Stack.Types.Docker | |
type Rep DockerOptsMonoid Source # | |
Defined in Stack.Types.Docker type Rep DockerOptsMonoid = D1 ('MetaData "DockerOptsMonoid" "Stack.Types.Docker" "stack-3.1.1-I5OI2i8TUoz1thruFO0H72" 'False) (C1 ('MetaCons "DockerOptsMonoid" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "defaultEnable") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Any) :*: S1 ('MetaSel ('Just "enable") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (First Bool))) :*: (S1 ('MetaSel ('Just "repoOrImage") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (First DockerMonoidRepoOrImage)) :*: S1 ('MetaSel ('Just "registryLogin") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (First Bool)))) :*: ((S1 ('MetaSel ('Just "registryUsername") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (First String)) :*: S1 ('MetaSel ('Just "registryPassword") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (First String))) :*: (S1 ('MetaSel ('Just "autoPull") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FirstTrue) :*: (S1 ('MetaSel ('Just "detach") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FirstFalse) :*: S1 ('MetaSel ('Just "persist") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FirstFalse))))) :*: (((S1 ('MetaSel ('Just "containerName") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (First String)) :*: S1 ('MetaSel ('Just "network") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (First String))) :*: (S1 ('MetaSel ('Just "runArgs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [String]) :*: S1 ('MetaSel ('Just "mount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Mount]))) :*: ((S1 ('MetaSel ('Just "mountMode") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (First String)) :*: S1 ('MetaSel ('Just "env") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [String])) :*: (S1 ('MetaSel ('Just "stackExe") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (First DockerStackExe)) :*: (S1 ('MetaSel ('Just "setUser") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (First Bool)) :*: S1 ('MetaSel ('Just "requireDockerVersion") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 IntersectingVersionRange))))))) |
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
.