confutil

package
v0.13.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 14 Imported by: 5

Documentation

Index

Constants

View Source
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

func ConfigDir(dockerCli command.Cli) string

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

func DefaultConfigFile(dockerCli command.Cli) (string, bool)

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

func LoadConfigFiles(bkconfig string) (map[string][]byte, error)

LoadConfigFiles creates a temp directory with BuildKit config and registry certificates ready to be copied to a container.

func TryNodeIdentifier added in v0.13.0

func TryNodeIdentifier(configDir string) (out string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL