| 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 {}
- newtype Digest = Digest {}
- 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 {}
- newtype Retries = Retries {}
- data CopyArgs = CopyArgs {}
- data AddArgs = AddArgs {}
- data Check args
- data Arguments args
- = ArgumentsText args
- | ArgumentsList args
- data CheckArgs args = CheckArgs {}
- 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
| Registry | |
Fields
| |
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 Source # | |
Defined in Language.Docker.Syntax.Lift Methods lift :: ImageAlias -> Q Exp # | |
Constructors
| BaseImage | |
Instances
| Eq BaseImage Source # | |
| Ord BaseImage Source # | |
| Show BaseImage Source # | |
| Lift BaseImage Source # | |
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 Source # | |
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 Source # | |
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 Source # | |
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 # | |
Defined in Language.Docker.Syntax | |
| Show args => Show (Check args) Source # | |
| Lift args => Lift (Check args) Source # | |
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) Source # | |
| Pretty (Arguments Text) Source # | |
| type Item (Arguments Text) Source # | |
Defined in Language.Docker.Syntax | |
Constructors
| CheckArgs | |
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) Source # | |
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
type Linenumber = Int Source #
data InstructionPos args Source #
Instruction with additional location information required for creating
good check messages
Constructors
| InstructionPos | |
Fields
| |