# Functions
AddEnv returns a [StateOption] whichs adds an environment variable to the state.
AddEnvf is the same as [AddEnv] but allows for a format string.
AddSecret is a RunOption that adds a secret to the exec.
AddSecretWithDest is a RunOption that adds a secret to the exec with an optional destination.
Copy produces a FileAction which copies a file or directory from the source to the destination.
Diff returns a state that represents the diff of the lower and upper states.
Dir returns a [StateOption] sets the working directory for the state which will be used to resolve relative paths as well as the working directory for [State.Run].
Dirf is the same as [Dir] but allows for a format string.
Git returns a state that represents a git repository.
Hostname returns a [StateOption] which sets the hostname used for containers created by [State.Run].
Image returns a state that represents a docker image in a registry.
Local returns a state that represents a directory local to the client.
Merge merges multiple states into a single state.
Mkdir creates a FileAction which creates a directory at the given path.
Mkfile creates a FileAction which creates a file at the given path with the provided contents.
Network returns a [StateOption] which sets the network mode used for containers created by [State.Run].
NewDefinitionOp returns a new operation from a marshalled definition.
ReadonlyRootFS sets the execs's root filesystem to be read-only.
Reset returns a [StateOption] which creates a new [State] with just the output of the current [State] and the provided [State] is set as the parent.
ResolveDigest uses the meta resolver to update the ref of image with full digest before marshaling.
Rm creates a FileAction which removes a file or directory at the given path.
Scratch returns a state that represents an empty filesystem.
SecretAsEnv defines if the secret should be added as an environment variable.
SecretAsEnvName defines if the secret should be added as an environment variable with the specified name.
SecretFileOpt sets the secret's target file uid, gid and permissions.
Security returns a [StateOption] which sets the security mode used for containers created by [State.Run].
Symlink creates a symlink at `newpath` that points to `oldpath`.
User returns a [StateOption] which sets the user for the state which will be used by [State.Run].
WithCaps exposes supported LLB caps to the marshaler.
WithExportCache forces results for this vertex to be exported with the cache.
WithMetaResolver adds a metadata resolver to an image.
WithoutDefaultExportCache resets the cache export for the vertex to use the default defined by the build configuration.
WithoutExportCache sets results for this vertex to be not exported with the cache.
WithParents is an option for Mkdir which creates parent directories if they do not exist.
WithProxy is a RunOption that sets the proxy environment variables in the resulting exec.
# Constants
DiffMetadata will compare file metadata (size, modified time, mode, owner, group, device and link name) to determine if the files in the Local source need to be retransmitted.
DiffNone will do no file comparisons, all files in the Local source will be retransmitted.
# Structs
Definition is the LLB definition structure with per-vertex metadata entries Corresponds to the Definition structure defined in solver/pb.Definition.
DefinitionOp implements llb.Vertex using a marshalled definition.
FileAction is used to specify a file operation on a [State].
OpMetadata has a more friendly interface for pb.OpMetadata.
SourceMap maps a source file/location to an LLB state/definition.
State represents all operations that must be done to produce a given output.
SymlinkInfo is the modifiable options used to create symlinks.
# Interfaces
CopyInput is either llb.State or *FileActionWithState It is used by [Copy] to to specify the source of the copy operation.
# Type aliases
ImageMetaResolver can resolve image config metadata from a reference.