Documentation
¶
Index ¶
- Variables
- func Build(ctx context.Context, client *containerd.Client, ...) error
- func DiskUsage(ctx context.Context, options types.BuilderDiskUsageOptions) (types.BuildCacheDiskUsage, error)
- func GetEffectiveSourcePolicyFile(optionValue string) string
- func Prune(ctx context.Context, options types.BuilderPruneOptions) ([]buildkitutil.UsageInfo, error)
- type PlatformParser
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrOCILayoutPrefixNotFound = errors.New("OCI layout prefix not found") ErrOCILayoutEmptyDigest = errors.New("OCI layout cannot have empty digest") )
Functions ¶
func Build ¶
func Build(ctx context.Context, client *containerd.Client, options types.BuilderBuildOptions) error
func DiskUsage ¶ added in v2.4.0
func DiskUsage(ctx context.Context, options types.BuilderDiskUsageOptions) (types.BuildCacheDiskUsage, error)
DiskUsage reports how much disk space the BuildKit build cache uses.
A record is active while a build holds it, and a record can be reclaimed when it is neither in use nor shared with another BuildKit worker, which is what `nerdctl builder prune` would free.
func GetEffectiveSourcePolicyFile ¶ added in v2.3.0
GetEffectiveSourcePolicyFile returns the effective source policy file path. If optionValue is set, it takes precedence. Otherwise, the EXPERIMENTAL_BUILDKIT_SOURCE_POLICY environment variable is used for Docker Buildx compatibility.
func Prune ¶
func Prune(ctx context.Context, options types.BuilderPruneOptions) ([]buildkitutil.UsageInfo, error)
Prune will prune all build cache.
Types ¶
Click to show internal directories.
Click to hide internal directories.