storagereconcile

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrPending = errors.New("storage size reconciliation is waiting for concurrent lifecycle work")

Functions

func Run

func Run(ctx context.Context, options Options, ready chan<- struct{})

Types

type Options

type Options struct {
	DB        *ent.Client
	Storage   storage.Adapter
	Lifecycle *storagelifecycle.Service
	Logger    *zerolog.Logger
}

type Result

type Result struct {
	Candidates int
	Updated    int
	Purged     int
	Deferred   int
}

func Reconcile

func Reconcile(ctx context.Context, options Options) (Result, error)

Jump to

Keyboard shortcuts

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