Documentation
¶
Index ¶
Constants ¶
View Source
const ( SchemaVersion = 1 DefaultMaxArtifacts = 32 DefaultMaxArtifactBytes = 2 * 1024 * 1024 )
View Source
const DurableWALHighWatermarkPercent = 80
Variables ¶
This section is empty.
Functions ¶
func AtDurableWALHighWatermark ¶
func AtDurableWALHighWatermark(stats SpoolStats, maximumBytes int64) bool
AtDurableWALHighWatermark closes new admission before the hard byte ceiling makes the next teardown unable to persist evidence. Equality is degraded.
func IsBundleName ¶
IsBundleName reports whether name belongs to the versioned diagnostic spool grammar. Exporters and observers use the same boundary as retention cleanup.
Types ¶
type ArtifactRecord ¶
type Instance ¶
type Instance struct {
Name string `json:"name"`
Trust string `json:"trust,omitempty"`
ControllerID string `json:"controller_id"`
PoolID string `json:"pool_id"`
PoolName string `json:"pool_name"`
ScaleSet string `json:"scale_set"`
Repository string `json:"repository"`
ImageFingerprint string `json:"image_fingerprint"`
RunnerVersion string `json:"runner_version"`
ProviderVersion string `json:"provider_version"`
ProviderCommit string `json:"provider_commit"`
State string `json:"state"`
}
type Manifest ¶
type Manifest struct {
SchemaVersion int `json:"schema_version"`
CapturedAt string `json:"captured_at"`
Instance Instance `json:"instance"`
Artifacts []ArtifactRecord `json:"artifacts"`
CollectionErrors []string `json:"collection_errors"`
}
type SpoolStats ¶
Click to show internal directories.
Click to hide internal directories.