buildevent

package
v1.5.16 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: Apache-2.0 Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package buildevent holds the build progress event type on its own, so callers that only read events do not link the BuildKit client.

Index

Constants

View Source
const (
	CacheStateUnknown = "unknown"
	CacheStateHit     = "hit"
	CacheStateMiss    = "miss"
	CacheStatePartial = "partial"
)

Cache states a driver may report on a ProgressEvent.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProgressEvent

type ProgressEvent struct {
	// Step is the build step's name, e.g. "[2/4] RUN go build".
	Step string
	// Cached is true when this step was skipped because BuildKit's cache
	// (see WithCacheDir) already had the result.
	Cached bool
	// Completed is true once Step finished, successfully or not.
	Completed bool
	// Error is non-empty when Step failed.
	Error string
	// Log is a raw output line from the step (stdout/stderr from the
	// build), empty for step-lifecycle events.
	Log string
	// Stream is "stdout" or "stderr" when Log is non-empty, and empty
	// for a step-lifecycle event, which never came from either stream.
	Stream string
	// CacheWarning is set when the remote build cache was skipped or failed and
	// the build carried on without it. Log carries the same text.
	CacheWarning string
	// Stage is an optional stable stage id (source, detect, install, build,
	// export, push) set by a driver that knows it; empty falls back to
	// classifying Step by name.
	Stage string
	// StageLabel is an optional human label for Stage.
	StageLabel string
	// CacheState is an optional per-step cache verdict (CacheState* values);
	// empty means derive it from Cached, "unknown" means the driver cannot tell.
	CacheState string
}

ProgressEvent is one structured build progress update, decoupled from BuildKit's wire types.

Jump to

Keyboard shortcuts

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