# Functions
AuthConfig parses the creds in format [username[:password] into an auth config.
CommonBuildOptions parses the build options from the bud cli.
CommonBuildOptionsFromFlagSet parses the build options from the bud cli.
ContainerIgnoreFile consumes path to `dockerignore` or `containerignore` and returns list of files to exclude along with the path to processed ignore file.
DefaultPlatform returns the standard platform for the current system.
Device parses device mapping string to a src, dest & permissions string Valid values for device look like:
'/dev/sdc" '/dev/sdc:/dev/xvdc" '/dev/sdc:/dev/xvdc:rwm" '/dev/sdc:rm".
GetAdditionalBuildContext consumes raw string and returns parsed AdditionalBuildContext.
GetAutoOptions returns a AutoUserNsOptions with the settings to setup automatically a user namespace.
GetBuildOutput is responsible for parsing custom build output argument i.e `build --output` flag.
GetConfidentialWorkloadOptions parses a confidential workload settings argument, which controls both whether or not we produce an image that expects to be run using krun, and how we handle things like encrypting the disk image that the container image will contain.
GetTempDir returns the path of the preferred temporary directory on the host.
IDMappingOptions parses the build options related to user namespaces and ID mapping.
IDMappingOptionsFromFlagSet parses the build options related to user namespaces and ID mapping.
IsolationOption parses the --isolation flag.
NamespaceOptions parses the build options for all namespaces except for user namespace.
NamespaceOptionsFromFlagSet parses the build options for all namespaces except for user namespace.
Platform separates the platform string into os, arch and variant, accepting any of $arch, $os/$arch, or $os/$arch/$variant.
PlatformFromOptions parses the operating system (os) and architecture (arch) from the provided command line options.
PlatformsFromOptions parses the operating system (os) and architecture (arch) from the provided command line options.
PullPolicyFromFlagSet returns a PullPolicy that reflects the combination of the specified "pull" and undocumented "pull-always" and "pull-never" flags.
PullPolicyFromOptions returns a PullPolicy that reflects the combination of the specified "pull" and undocumented "pull-always" and "pull-never" flags.
RepoNamesToNamedReferences parse the raw string to Named reference.
SBOMScanOptions parses the build options from the cli.
SBOMScanOptionsFromFlagSet parses scan settings from the cli.
Secrets parses the --secret flag.
Split string into slice by colon.
SSH parses the --ssh flag.
SystemContextFromFlagSet returns a SystemContext populated with values per the input parameters provided by the caller for the use in authentication.
SystemContextFromOptions returns a SystemContext populated with values per the input parameters provided by the caller for the use in authentication.
TeeType parses a string value and returns a TeeType.
ValidateVolumeCtrDir validates a volume mount's destination directory.
ValidateVolumeHostDir validates a volume mount's source directory.
ValidateVolumeOpts validates a volume's options.
Volume parses the input of --volume.
Volumes validates the host and container paths passed in to the --volume flag.
# Constants
mount=type=cache must create a persistent directory on host so it's available for all consecutive builds.
SeccompDefaultPath defines the default seccomp path.
SeccompOverridePath if this exists it overrides the default seccomp path.
TypeBind is the type for mounting host dir.
TypeCache is the type for mounting a common persistent cache from host.
TypeTmpfs is the type for mounting tmpfs.