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 ¶
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.