Skip to main content

Module ast

Module ast 

Source

Structs§

ArgInstruction
A Dockerfile ARG instruction.
BreakableString
A Docker string that may be broken across several lines, separated by line continuations (\\\n), and possibly intermixed with comments.
CmdInstruction
A Dockerfile CMD instruction.
CopyFlag
A key/value pair passed to a COPY instruction as a flag.
CopyInstruction
A Dockerfile COPY instruction.
Dockerfile
A parsed Dockerfile.
EntrypointInstruction
A Dockerfile ENTRYPOINT instruction.
EnvInstruction
A Dockerfile ENV instruction.
EnvVar
An environment variable key/value pair.
FromFlag
A key/value pair passed to a FROM instruction as a flag.
FromInstruction
A Dockerfile FROM instruction.
HealthcheckFlag
A key/value option passed to a HEALTHCHECK instruction, e.g. --interval=30s.
HealthcheckInstruction
A Dockerfile HEALTHCHECK instruction.
HeredocInstruction
An instruction that carries one or more heredocs, e.g.
Label
A single label key/value pair.
LabelInstruction
A Dockerfile LABEL instruction. A single instruction may set many labels.
MiscInstruction
A miscellaneous (otherwise unsupported) Dockerfile instruction.
OnbuildInstruction
A Dockerfile ONBUILD instruction, wrapping the instruction it triggers.
RunInstruction
A Dockerfile RUN instruction.
ShellInstruction
A Dockerfile SHELL instruction. Docker only permits the exec (JSON array) form, but the shell form is tolerated so malformed input still round-trips.
Span
A byte-index range into the original Dockerfile text.
SpannedComment
A comment with a character span.
SpannedString
A string with a character span.
StringArray
A string array (ex. ["executable", "param1", "param2"]).

Enums§

BreakableStringComponent
A component of a breakable string.
CopyArgs
The argument portion of a COPY instruction: either space-separated paths or the JSON/exec array form (COPY ["src", "dest"]).
Instruction
A single Dockerfile instruction.
ShellOrExecExpr
A string that is either in shell form or exec form (["a", "b"]).