pub enum DockerfileTokenType {
Show 47 variants
Identifier,
String,
Number,
Whitespace,
Newline,
From,
Run,
Cmd,
Label,
Maintainer,
Expose,
Env,
Add,
Copy,
Entrypoint,
Volume,
User,
Workdir,
Arg,
Onbuild,
Stopsignal,
Healthcheck,
Shell,
As,
None,
Interval,
Timeout,
StartPeriod,
Retries,
Equal,
Equals,
Colon,
Comma,
Semicolon,
Dollar,
LeftBracket,
RightBracket,
LeftBrace,
RightBrace,
LeftParen,
RightParen,
Comment,
Path,
Root,
Statement,
Error,
Eof,
}Expand description
Token types for the Dockerfile lexer.
Variants§
Identifier
An identifier (e.g., variable name, image name).
String
A string literal.
Number
A numeric literal.
Whitespace
Whitespace (spaces, tabs).
Newline
A newline character.
From
FROM instruction.
Run
RUN instruction.
Cmd
CMD instruction.
Label
LABEL instruction.
Maintainer
MAINTAINER instruction (deprecated).
Expose
EXPOSE instruction.
Env
ENV instruction.
Add
ADD instruction.
Copy
COPY instruction.
Entrypoint
ENTRYPOINT instruction.
Volume
VOLUME instruction.
User
USER instruction.
Workdir
WORKDIR instruction.
Arg
ARG instruction.
Onbuild
ONBUILD instruction.
Stopsignal
STOPSIGNAL instruction.
Healthcheck
HEALTHCHECK instruction.
Shell
SHELL instruction.
As
AS keyword (used in FROM).
None
No-op or placeholder.
Interval
interval keyword (in HEALTHCHECK).
Timeout
timeout keyword (in HEALTHCHECK).
StartPeriod
start-period keyword (in HEALTHCHECK).
Retries
retries keyword (in HEALTHCHECK).
Equal
Single equals sign =.
Equals
Double equals sign ==.
Colon
Colon :.
Comma
Comma ,.
Semicolon
Semicolon ;.
Dollar
Dollar sign $.
LeftBracket
Left bracket [.
RightBracket
Right bracket ].
LeftBrace
Left brace {.
RightBrace
Right brace }.
LeftParen
Left parenthesis (.
RightParen
Right parenthesis ).
Comment
A comment starting with #.
Path
A file path.
Root
The root of the Dockerfile.
Statement
A statement or instruction.
Error
An error token.
Eof
End of stream.
Implementations§
Trait Implementations§
Source§impl Clone for DockerfileTokenType
impl Clone for DockerfileTokenType
Source§fn clone(&self) -> DockerfileTokenType
fn clone(&self) -> DockerfileTokenType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more