Versions in this module Expand all Collapse all v0 v0.5.0 Apr 4, 2026 Changes in this version + func BuildCacheFlags(cfg config.BuildCacheConfig, repoID, branch string, ...) (cacheFrom, cacheTo []build.CacheRef) + func BuilderName(repoID string) string + func CanonicalizeRef(s string) string + func IsSFCacheTag(tag, scopePrefix string) bool + func LocalCacheAvailable(repoID string, cfg config.LocalCacheConfig) bool + func LocalCacheDir(repoID string, cfg config.LocalCacheConfig) string + func ParseBuildxPublished(metadataFile string, registries []build.RegistryTarget) ([]artifact.PublishedImage, error) + func RenderBuildError(sec *output.Section, stderr string) + func RenderBuilderInfo(w io.Writer, color bool, info BuilderInfo) + func RenderCacheInfo(w io.Writer, color bool, info CacheInfo) + type Backend struct + CertPath string + Endpoint string + Healthy bool + Kind string + func ResolveBackend(caps BackendCapabilities) (*Backend, error) + func ResolveBackendWithConfig(caps BackendCapabilities, configBackend string) (*Backend, error) + func (b *Backend) IsBuildkit() bool + type BackendCapabilities struct + Build bool + Filesystem bool + Push bool + Run bool + type BuildErrorEntry struct + Col int + File string + Line int + Message string + Raw string + Tool string + func ParseBuildErrors(stderr string) ([]BuildErrorEntry, []string) + type BuilderInfo struct + Action string + BootstrapDuration time.Duration + BootstrapOK bool + BuildKit string + Driver string + Endpoint string + GCRules []GCRule + Name string + ParseFailed bool + Platforms string + RawOutput string + Status string + func EnsureBuilder(cfg config.BuilderConfig) BuilderInfo + func EnsureBuilderWithBackend(cfg config.BuilderConfig, backend *Backend) BuilderInfo + func ResolveBuilderInfo(info BuilderInfo) BuilderInfo + type BuildkitPruneResult struct + Builder string + Command string + Duration time.Duration + Error error + KeepBytes int64 + MaxAge string + Output string + Reclaimed string + SkipReason string + Skipped bool + UsageAfter string + UsageBefore string + type CacheInfo struct + Branch string + Exports []string + Fallback string + Imports []string + Mode string + func ResolveCacheInfo(pc *pipeline.PipelineContext) CacheInfo + type CacheResolution struct + Builder string + External string + Fallback string + Local string + Mode string + Result string + type CacheTag struct + BranchRef string + Prefix string + RepoHash string + func BuildCacheTag(prefix, repoID, branch string) CacheTag + func ParseCacheTag(tag string) *CacheTag + func (t CacheTag) MatchesScope(scopePrefix string) bool + func (t CacheTag) ScopePrefix() string + func (t CacheTag) String() string + type CleanupCommand struct + Class string + Command string + func BuildCleanupCommands(cleanup config.HostCleanupConfig) []CleanupCommand + type CleanupCommandResult struct + Class string + Command string + Error error + Output string + type CleanupResult struct + Executed bool + Results []CleanupCommandResult type CrucibleOpts + Backend *Backend + type ExternalRetentionResult struct + Errors []string + Kept int + Path string + Prefix string + Pruned int + Registry string + Total int + type GCRule struct + All bool + KeepDuration string + MaxUsed string + MinFree string + Reserved string + Scope string + type LocalRetentionResult struct + Dir string + EntriesBefore int + Pruned int + PrunedBytes int64 + Reason string v0.4.1 Mar 27, 2026 v0.4.0 Mar 22, 2026 Changes in this version + func CleanupCrucibleImages(ctx context.Context, tags ...string) error + func CosignAttest(ctx context.Context, digestRef, predicatePath, keyPath string) error + func CosignAvailable() bool + func CosignSign(ctx context.Context, digestRef, keyPath string, multiArch bool) error + func CrucibleTag(purpose, runID string) string + func ImageBinaryHash(ctx context.Context, image string) (string, error) + func ImageDigest(ctx context.Context, image string) (string, error) + func ImageEnvFingerprint(ctx context.Context, image string) (string, error) + func ImageLabel(ctx context.Context, image, label string) (string, error) + func ImageVersion(ctx context.Context, image string) (string, error) + func IsMultiPlatform(step build.BuildStep) bool + func ParseBuildxOutput(output string) []build.LayerEvent + func ParseMetadataDigest(metadataFile string) (string, error) + func ResolveCosignKey() string + func ResolveDigest(ctx context.Context, ref string) (string, error) + func ResolveLocalDigest(ctx context.Context, ref string) (string, error) + func Run(req Request) error + type ArgDecl struct + Default string + Line string + Name string + type Buildx struct + Stderr io.Writer + Stdout io.Writer + Verbose bool + func NewBuildx(verbose bool) *Buildx + func (bx *Buildx) Build(ctx context.Context, step build.BuildStep) (*build.StepResult, error) + func (bx *Buildx) BuildWithLayers(ctx context.Context, step build.BuildStep) (*build.StepResult, []build.LayerEvent, error) + func (bx *Buildx) EnsureBuilder(ctx context.Context) error + func (bx *Buildx) Login(ctx context.Context, registries []build.RegistryTarget) error + func (bx *Buildx) PushTags(ctx context.Context, tags []string) (int, error) + func (bx *Buildx) Save(ctx context.Context, imageRef string, outputPath string) error + type CrucibleCheck struct + Detail string + Name string + Status string + func (c CrucibleCheck) IsHardFailure() bool + type CrucibleOpts struct + EnvVars []string + ExtraFlags []string + FinalTag string + Image string + RepoDir string + RunID string + Verbose bool + type CrucibleResult struct + ExitCode int + FinalImageRef string + Passed bool + func RunCrucible(ctx context.Context, opts CrucibleOpts) (*CrucibleResult, error) + type CrucibleVerification struct + ArtifactChecks []CrucibleCheck + ExecutionChecks []CrucibleCheck + TrustLevel string + func VerifyCrucible(ctx context.Context, pass1Image, pass2Image string) (*CrucibleVerification, error) + func (cv *CrucibleVerification) HasHardFailure() bool + type InventoryResult struct + Args []ArgDecl + BaseImages []PackageInfo + Lineage []PackageInfo + Packages []PackageInfo + func ExtractInventory(dockerfilePath string) (*InventoryResult, error) + type PackageInfo struct + Confidence string + Final bool + Manager string + Name string + Pinned bool + Source string + SourceRef string + Stage string + URL string + Version string + type PushError struct + Cause error + ExitCode int + Stderr string + Tag string + func (e *PushError) Error() string + func (e *PushError) Unwrap() error + type Request struct + BuildID string + BuildMode string + Config *config.Config + ConfigFile string + Context context.Context + DryRun bool + Local bool + Platforms []string + RootDir string + SkipLint bool + Stderr io.Writer + Stdout io.Writer + Tags []string + Target string + Verbose bool + type VerificationArtifact struct + Tag string + func (va VerificationArtifact) AppendFlags() []string