Documentation ¶
Index ¶
- Constants
- func ConfigDir(dockerCli command.Cli) string
- func DefaultConfigFile(dockerCli command.Cli) (string, bool)
- func IsExperimental() bool
- func LoadConfigFiles(bkconfig string) (map[string][]byte, error)
- func MetadataWarningsEnabled() bool
- func TryNodeIdentifier(configDir string) (out string)
- type MetadataProvenanceMode
Constants ¶
const ( // DefaultBuildKitStateDir and DefaultBuildKitConfigDir are the location // where buildkitd inside the container stores its state. Some drivers // create a Linux container, so this should match the location for Linux, // as defined in: https://github.com/moby/buildkit/blob/v0.9.0/util/appdefaults/appdefaults_unix.go#L11-L15 DefaultBuildKitStateDir = "/var/lib/buildkit" DefaultBuildKitConfigDir = "/etc/buildkit" )
Variables ¶
This section is empty.
Functions ¶
func ConfigDir ¶
ConfigDir will look for correct configuration store path; if `$BUILDX_CONFIG` is set - use it, otherwise use parent directory of Docker config file (i.e. `${DOCKER_CONFIG}/buildx`)
func DefaultConfigFile ¶ added in v0.9.0
DefaultConfigFile returns the default BuildKit configuration file path
func IsExperimental ¶ added in v0.13.0
func IsExperimental() bool
IsExperimental checks if the experimental flag has been configured.
func LoadConfigFiles ¶
LoadConfigFiles creates a temp directory with BuildKit config and registry certificates ready to be copied to a container.
func MetadataWarningsEnabled ¶ added in v0.16.0
func MetadataWarningsEnabled() bool
MetadataWarningsEnabled returns whether metadata warnings are enabled from BUILDX_METADATA_WARNINGS environment variable (default false)
func TryNodeIdentifier ¶ added in v0.13.0
Types ¶
type MetadataProvenanceMode ¶ added in v0.14.0
type MetadataProvenanceMode string
MetadataProvenanceMode is the type for setting provenance in the metadata file
const ( // MetadataProvenanceModeMin sets minimal provenance (default) MetadataProvenanceModeMin MetadataProvenanceMode = "min" // MetadataProvenanceModeMax sets full provenance MetadataProvenanceModeMax MetadataProvenanceMode = "max" // MetadataProvenanceModeDisabled doesn't set provenance MetadataProvenanceModeDisabled MetadataProvenanceMode = "disabled" )
func MetadataProvenance ¶ added in v0.14.0
func MetadataProvenance() MetadataProvenanceMode
MetadataProvenance returns the metadata provenance mode from BUILDX_METADATA_PROVENANCE environment variable
func ParseMetadataProvenance ¶ added in v0.16.0
func ParseMetadataProvenance(inp string) MetadataProvenanceMode
ParseMetadataProvenance parses the metadata provenance mode from a string