Versions in this module Expand all Collapse all v1 v1.2.0 Aug 23, 2026 v1.1.0 Aug 23, 2026 v1.0.1 Aug 25, 2026 v1.0.0 Aug 23, 2026 Changes in this version + const ClaimsSchemaVersion + const LegacySchemaVersion + const PreemptionSchemaVersion + const SchemaVersion + func IsImageMaintenanceInstance(name string) bool + type Claim struct + ControllerID string + ExpiresAt time.Time + ImageFingerprint string + InstanceName string + JobName string + PoolID string + PoolName string + ReservedAt time.Time + State ClaimState + UpdatedAt time.Time + type ClaimState string + const ClaimInjected + const ClaimReserved + type Journal struct + Claims map[string]Claim + Generation uint64 + Leases map[string]Lease + SchemaVersion int + UpdatedAt time.Time + WarmPreemptionsTotal uint64 + func (j Journal) Validate() error + type Lease struct + AdmittedAt time.Time + ControllerID string + ExpiresAt time.Time + ImageFingerprint string + InstanceName string + MemoryMiB int + PoolID string + PoolName string + PreemptedBy string + State LeaseState + UpdatedAt time.Time + VCPU int + type LeaseState string + const StateAdmitted + const StateCreated + const StateDeleting + const StateWarmClaimed + const StateWarmReady + type MaintenanceReconcileResult struct + Applied bool + Candidates []string + ObservedAt time.Time + Removed []string + Retained []string + func ReconcileExpiredMaintenance(ctx context.Context, store Store, visible map[string]struct{}, now time.Time, ...) (MaintenanceReconcileResult, error) + type Store struct + LockPath string + Now func() time.Time + Path string + func (s Store) Read(ctx context.Context) (Journal, error) + func (s Store) ReadOnly(ctx context.Context) (Journal, error) + func (s Store) Update(ctx context.Context, mutate func(*Journal) error) (Journal, error)