| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Language.Docker.Syntax
Synopsis
- data Image = Image {
- registryName :: !(Maybe Registry)
- imageName :: !Text
- newtype Registry = Registry {
- unRegistry :: Text
- newtype Tag = Tag {
- unTag :: Text
- newtype Digest = Digest {
- unDigest :: Text
- data Protocol
- data Port
- newtype Ports = Ports {}
- type Directory = Text
- type Platform = Text
- newtype ImageAlias = ImageAlias {
- unImageAlias :: Text
- data BaseImage = BaseImage {}
- type Dockerfile = [InstructionPos Text]
- newtype SourcePath = SourcePath {
- unSourcePath :: Text
- newtype TargetPath = TargetPath {
- unTargetPath :: Text
- data Chown
- data CopySource
- = CopySource !Text
- | NoSource
- newtype Duration = Duration {
- durationTime :: DiffTime
- newtype Retries = Retries {
- times :: Int
- data CopyArgs = CopyArgs {
- sourcePaths :: NonEmpty SourcePath
- targetPath :: !TargetPath
- chownFlag :: !Chown
- sourceFlag :: !CopySource
- data AddArgs = AddArgs {
- sourcePaths :: NonEmpty SourcePath
- targetPath :: !TargetPath
- chownFlag :: !Chown
- data Check args
- data Arguments args
- = ArgumentsText args
- | ArgumentsList args
- data CheckArgs args = CheckArgs {
- checkCommand :: !(Arguments args)
- interval :: !(Maybe Duration)
- timeout :: !(Maybe Duration)
- startPeriod :: !(Maybe Duration)
- retries :: !(Maybe Retries)
- type Pairs = [(Text, Text)]
- data Instruction args
- = From !BaseImage
- | Add !AddArgs
- | User !Text
- | Label !Pairs
- | Stopsignal !Text
- | Copy !CopyArgs
- | Run !(Arguments args)
- | Cmd !(Arguments args)
- | Shell !(Arguments args)
- | Workdir !Directory
- | Expose !Ports
- | Volume !Text
- | Entrypoint !(Arguments args)
- | Maintainer !Text
- | Env !Pairs
- | Arg !Text !(Maybe Text)
- | Healthcheck !(Check args)
- | Comment !Text
- | OnBuild !(Instruction args)
- type Filename = Text
- type Linenumber = Int
- data InstructionPos args = InstructionPos {
- instruction :: !(Instruction args)
- sourcename :: !Filename
- lineNumber :: !Linenumber
Documentation
Constructors
| Image | |
Fields
| |
Constructors
| Registry | |
Fields
| |
Instances
| Eq Registry Source # | |
| Ord Registry Source # | |
Defined in Language.Docker.Syntax | |
| Show Registry Source # | |
| IsString Registry Source # | |
Defined in Language.Docker.Syntax Methods fromString :: String -> Registry | |
| Lift Registry | |
Defined in Language.Docker.Syntax.Lift | |
newtype ImageAlias Source #
Constructors
| ImageAlias | |
Fields
| |
Instances
| Eq ImageAlias Source # | |
Defined in Language.Docker.Syntax | |
| Ord ImageAlias Source # | |
Defined in Language.Docker.Syntax Methods compare :: ImageAlias -> ImageAlias -> Ordering (<) :: ImageAlias -> ImageAlias -> Bool (<=) :: ImageAlias -> ImageAlias -> Bool (>) :: ImageAlias -> ImageAlias -> Bool (>=) :: ImageAlias -> ImageAlias -> Bool max :: ImageAlias -> ImageAlias -> ImageAlias min :: ImageAlias -> ImageAlias -> ImageAlias | |
| Show ImageAlias Source # | |
Defined in Language.Docker.Syntax Methods showsPrec :: Int -> ImageAlias -> ShowS show :: ImageAlias -> String showList :: [ImageAlias] -> ShowS | |
| IsString ImageAlias Source # | |
Defined in Language.Docker.Syntax Methods fromString :: String -> ImageAlias | |
| Lift ImageAlias | |
Defined in Language.Docker.Syntax.Lift Methods lift :: ImageAlias -> Q Exp | |
Constructors
| BaseImage | |
type Dockerfile = [InstructionPos Text] Source #
Type of the Dockerfile AST
newtype SourcePath Source #
Constructors
| SourcePath | |
Fields
| |
Instances
| Eq SourcePath Source # | |
Defined in Language.Docker.Syntax | |
| Ord SourcePath Source # | |
Defined in Language.Docker.Syntax Methods compare :: SourcePath -> SourcePath -> Ordering (<) :: SourcePath -> SourcePath -> Bool (<=) :: SourcePath -> SourcePath -> Bool (>) :: SourcePath -> SourcePath -> Bool (>=) :: SourcePath -> SourcePath -> Bool max :: SourcePath -> SourcePath -> SourcePath min :: SourcePath -> SourcePath -> SourcePath | |
| Show SourcePath Source # | |
Defined in Language.Docker.Syntax Methods showsPrec :: Int -> SourcePath -> ShowS show :: SourcePath -> String showList :: [SourcePath] -> ShowS | |
| IsString SourcePath Source # | |
Defined in Language.Docker.Syntax Methods fromString :: String -> SourcePath | |
| Lift SourcePath | |
Defined in Language.Docker.Syntax.Lift Methods lift :: SourcePath -> Q Exp | |
newtype TargetPath Source #
Constructors
| TargetPath | |
Fields
| |
Instances
| Eq TargetPath Source # | |
Defined in Language.Docker.Syntax | |
| Ord TargetPath Source # | |
Defined in Language.Docker.Syntax Methods compare :: TargetPath -> TargetPath -> Ordering (<) :: TargetPath -> TargetPath -> Bool (<=) :: TargetPath -> TargetPath -> Bool (>) :: TargetPath -> TargetPath -> Bool (>=) :: TargetPath -> TargetPath -> Bool max :: TargetPath -> TargetPath -> TargetPath min :: TargetPath -> TargetPath -> TargetPath | |
| Show TargetPath Source # | |
Defined in Language.Docker.Syntax Methods showsPrec :: Int -> TargetPath -> ShowS show :: TargetPath -> String showList :: [TargetPath] -> ShowS | |
| IsString TargetPath Source # | |
Defined in Language.Docker.Syntax Methods fromString :: String -> TargetPath | |
| Lift TargetPath | |
Defined in Language.Docker.Syntax.Lift Methods lift :: TargetPath -> Q Exp | |
data CopySource Source #
Constructors
| CopySource !Text | |
| NoSource |
Instances
| Eq CopySource Source # | |
Defined in Language.Docker.Syntax | |
| Ord CopySource Source # | |
Defined in Language.Docker.Syntax Methods compare :: CopySource -> CopySource -> Ordering (<) :: CopySource -> CopySource -> Bool (<=) :: CopySource -> CopySource -> Bool (>) :: CopySource -> CopySource -> Bool (>=) :: CopySource -> CopySource -> Bool max :: CopySource -> CopySource -> CopySource min :: CopySource -> CopySource -> CopySource | |
| Show CopySource Source # | |
Defined in Language.Docker.Syntax Methods showsPrec :: Int -> CopySource -> ShowS show :: CopySource -> String showList :: [CopySource] -> ShowS | |
| IsString CopySource Source # | |
Defined in Language.Docker.Syntax Methods fromString :: String -> CopySource | |
| Lift CopySource | |
Defined in Language.Docker.Syntax.Lift Methods lift :: CopySource -> Q Exp | |
Constructors
| Duration | |
Fields
| |
Constructors
| CopyArgs | |
Fields
| |
Constructors
| AddArgs | |
Fields
| |
Instances
| Functor Check Source # | |
| Eq args => Eq (Check args) Source # | |
| Ord args => Ord (Check args) Source # | |
| Show args => Show (Check args) Source # | |
| Lift args => Lift (Check args) | |
Defined in Language.Docker.Syntax.Lift | |
Constructors
| ArgumentsText args | |
| ArgumentsList args |
Instances
| Functor Arguments Source # | |
| IsList (Arguments Text) Source # | |
| Eq args => Eq (Arguments args) Source # | |
| Ord args => Ord (Arguments args) Source # | |
Defined in Language.Docker.Syntax Methods compare :: Arguments args -> Arguments args -> Ordering (<) :: Arguments args -> Arguments args -> Bool (<=) :: Arguments args -> Arguments args -> Bool (>) :: Arguments args -> Arguments args -> Bool (>=) :: Arguments args -> Arguments args -> Bool | |
| Show args => Show (Arguments args) Source # | |
| IsString (Arguments Text) Source # | |
Defined in Language.Docker.Syntax Methods fromString :: String -> Arguments Text | |
| Lift args => Lift (Arguments args) | |
Defined in Language.Docker.Syntax.Lift | |
| Pretty (Arguments Text) | |
Defined in Language.Docker.PrettyPrint | |
| type Item (Arguments Text) Source # | |
Defined in Language.Docker.Syntax type Item (Arguments Text) = Text | |
Constructors
| CheckArgs | |
Fields
| |
Instances
| Functor CheckArgs Source # | |
| Eq args => Eq (CheckArgs args) Source # | |
| Ord args => Ord (CheckArgs args) Source # | |
Defined in Language.Docker.Syntax Methods compare :: CheckArgs args -> CheckArgs args -> Ordering (<) :: CheckArgs args -> CheckArgs args -> Bool (<=) :: CheckArgs args -> CheckArgs args -> Bool (>) :: CheckArgs args -> CheckArgs args -> Bool (>=) :: CheckArgs args -> CheckArgs args -> Bool | |
| Show args => Show (CheckArgs args) Source # | |
| Lift args => Lift (CheckArgs args) | |
Defined in Language.Docker.Syntax.Lift | |
data Instruction args Source #
All commands available in Dockerfiles
Constructors
| From !BaseImage | |
| Add !AddArgs | |
| User !Text | |
| Label !Pairs | |
| Stopsignal !Text | |
| Copy !CopyArgs | |
| Run !(Arguments args) | |
| Cmd !(Arguments args) | |
| Shell !(Arguments args) | |
| Workdir !Directory | |
| Expose !Ports | |
| Volume !Text | |
| Entrypoint !(Arguments args) | |
| Maintainer !Text | |
| Env !Pairs | |
| Arg !Text !(Maybe Text) | |
| Healthcheck !(Check args) | |
| Comment !Text | |
| OnBuild !(Instruction args) |
Instances
| Functor Instruction Source # | |
Defined in Language.Docker.Syntax Methods fmap :: (a -> b) -> Instruction a -> Instruction b (<$) :: a -> Instruction b -> Instruction a | |
| Eq args => Eq (Instruction args) Source # | |
Defined in Language.Docker.Syntax Methods (==) :: Instruction args -> Instruction args -> Bool (/=) :: Instruction args -> Instruction args -> Bool | |
| Ord args => Ord (Instruction args) Source # | |
Defined in Language.Docker.Syntax Methods compare :: Instruction args -> Instruction args -> Ordering (<) :: Instruction args -> Instruction args -> Bool (<=) :: Instruction args -> Instruction args -> Bool (>) :: Instruction args -> Instruction args -> Bool (>=) :: Instruction args -> Instruction args -> Bool max :: Instruction args -> Instruction args -> Instruction args min :: Instruction args -> Instruction args -> Instruction args | |
| Show args => Show (Instruction args) Source # | |
Defined in Language.Docker.Syntax Methods showsPrec :: Int -> Instruction args -> ShowS show :: Instruction args -> String showList :: [Instruction args] -> ShowS | |
| Lift args => Lift (Instruction args) | |
Defined in Language.Docker.Syntax.Lift Methods lift :: Instruction args -> Q Exp | |
type Linenumber = Int Source #
data InstructionPos args Source #
Instruction with additional location information required for creating
good check messages
Constructors
| InstructionPos | |
Fields
| |