Versions in this module Expand all Collapse all v0 v0.9.0 Nov 26, 2026 Changes in this version + const DefaultTimeout + var ErrCleanupInProgress = errors.New("a cleanup for this category is already in progress") + var ErrShuttingDown = errors.New("the engine is shutting down, so no cleanup was started") + type Runner struct + func NewRunner(operations manage.CleanupOperations, idGenerator core.IDGenerator, ...) *Runner + func (r *Runner) CompletedWithin(ctx context.Context, cleanupType manage.CleanupType, window time.Duration) (bool, error) + func (r *Runner) LatestRun(ctx context.Context, cleanupType manage.CleanupType) (*manage.CleanupOperation, bool, error) + func (r *Runner) Run(ctx context.Context, task Task) (*manage.CleanupOperation, error) + func (r *Runner) Shutdown(ctx context.Context) + func (r *Runner) Start(ctx context.Context, task Task) (*manage.CleanupOperation, error) + type RunnerOption func(*Runner) + func WithTimeout(timeout time.Duration) RunnerOption + type Scheduler struct + func NewScheduler(runner *Runner, tasks []Task, interval time.Duration, clock commoncore.Clock, ...) *Scheduler + func (s *Scheduler) Start() func() + type Task struct + LogDescription string + LogName string + Remove func(ctx context.Context, thresholdDate time.Time) (int64, error) + RetentionPeriod time.Duration + Type manage.CleanupType + func AuditRecordsTask(store manage.Audit, retentionPeriod time.Duration) Task + func ChangesetsTask(store manage.Changesets, retentionPeriod time.Duration) Task + func EventsTask(store manage.Events, retentionPeriod time.Duration) Task + func ReconciliationResultsTask(store manage.ReconciliationResults, retentionPeriod time.Duration) Task + func StateHousekeepingTask(housekeeping manage.Housekeeping) Task + func ValidationsTask(store manage.Validation, retentionPeriod time.Duration) Task