package
0.19.0
Repository: https://github.com/moby/buildkit.git
Documentation: pkg.go.dev

# Functions

CurrentStage returns the last stage from a list of stages.
No description provided by the author
No description provided by the author
HasStage looks for the presence of a given stage name from a list of stages.
IsCurrentStage returns true if the provided stage name is the name of the current stage, and false otherwise.
NewBFlags returns the new BFlags struct.
NewBFlagsWithArgs returns the new BFlags struct with Args set to args.
NewLabelCommand creates a new 'LABEL' command.
Parse a Dockerfile into a collection of buildable stages.
ParseCommand converts an AST to a typed Command.
No description provided by the author
ParseInstruction converts an AST to a typed instruction (either a command or a build stage beginning when encountering a `FROM` statement).

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

AddCommand adds files from the provided sources to the target destination.
ArgCommand adds the specified variable to the list of variables that can be passed to the builder using the --build-arg flag for expansion and substitution.
BFlags contains all flags information for the builder.
CmdCommand sets the default command to run in the container on start.
CopyCommand copies files from the provided sources to the target destination.
EntrypointCommand sets the default entrypoint of the container to use the provided command.
EnvCommand allows setting an variable in the container's environment.
ExposeCommand marks a container port that can be exposed at runtime.
Flag contains all information for a flag.
HealthCheckCommand sets the default healthcheck command to run in the container.
KeyValuePair represents an arbitrary named value.
KeyValuePairOptional is identical to KeyValuePair, but allows for optional values.
LabelCommand sets an image label in the output LABEL some json data describing the image.
MaintainerCommand (deprecated) allows specifying a maintainer details for the image.
No description provided by the author
OnbuildCommand allows specifying a command to be run on builds the use the resulting build image as a base image.
RunCommand runs a command.
ShellCommand sets a custom shell to use.
ShellDependantCmdLine represents a cmdline optionally prepended with the shell.
ShellInlineFile represents an inline file created for a shell command.
SourceContent represents an anonymous file object.
SourcesAndDest represent a collection of sources and a destination.
Stage represents a bundled collection of commands.
StopSignalCommand sets the signal that will be used to kill the container.
UnknownInstructionError represents an error occurring when a command is unresolvable.
UserCommand sets the user for the rest of the stage, and when starting the container at run-time.
VolumeCommand exposes the specified volume for use in the build environment.
WorkdirCommand sets the current working directory for all future commands in the stage WORKDIR /tmp.

# Interfaces

Command interface is implemented by every possible command in a Dockerfile.
PlatformSpecific adds platform checks to a command.
SupportsSingleWordExpansion interface allows a command to support variable.
SupportsSingleWordExpansionRaw interface allows a command to support variable expansion, while ensuring that minimal transformations are applied during expansion, so that quotes and other special characters are preserved.

# Type aliases

FlagType is the type of the build flag.
KeyValuePairs is a slice of KeyValuePair.
No description provided by the author
No description provided by the author
No description provided by the author
SingleWordExpander is a provider for variable expansion where a single word corresponds to a single output.