| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Language.Docker.Syntax
- data Image = Image {
- registryName :: !(Maybe Registry)
- imageName :: !Text
- newtype Registry = Registry {
- unRegistry :: Text
- newtype Tag = Tag {}
- data Protocol
- data Port
- newtype Ports = Ports {}
- type Directory = Text
- newtype ImageAlias = ImageAlias {
- unImageAlias :: Text
- data BaseImage
- = UntaggedImage !Image !(Maybe ImageAlias)
- | TaggedImage !Image !Tag !(Maybe ImageAlias)
- | DigestedImage !Image !Text !(Maybe ImageAlias)
- 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
| |
Constructors
| UntaggedImage !Image !(Maybe ImageAlias) | |
| TaggedImage !Image !Tag !(Maybe ImageAlias) | |
| DigestedImage !Image !Text !(Maybe ImageAlias) |
type Dockerfile = [InstructionPos Text] Source #
Type of the Dockerfile AST
Constructors
| Duration | |
Fields | |
Constructors
| CopyArgs | |
Fields
| |
Constructors
| AddArgs | |
Fields
| |
Constructors
| ArgumentsText args | |
| ArgumentsList args |
Constructors
| CheckArgs | |
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 # | |
| Eq args => Eq (Instruction args) Source # | |
| Ord args => Ord (Instruction args) Source # | |
| Show args => Show (Instruction args) Source # | |
type Linenumber = Int Source #
data InstructionPos args Source #
Instruction with additional location information required for creating
good check messages
Constructors
| InstructionPos | |
Fields
| |
Instances
| Functor InstructionPos Source # | |
| Eq args => Eq (InstructionPos args) Source # | |
| Ord args => Ord (InstructionPos args) Source # | |
| Show args => Show (InstructionPos args) Source # | |