cleanup

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 24 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	DB        *ent.Client
	Storage   storage.Adapter
	Config    config.CleanupConfig
	Lifecycle *storagelifecycle.Service
	Locker    *dblock.Locker
	Now       func() time.Time
	Logger    *zerolog.Logger
	Metrics   metrics.Recorder
}

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(service *Service, logger zerolog.Logger, storageReady <-chan struct{}) *Runner

func (*Runner) Run

func (r *Runner) Run(ctx context.Context)

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(options Options) *Service

func (*Service) RunCacheEntries

func (s *Service) RunCacheEntries(ctx context.Context) (int, error)

func (*Service) RunManifestCandidates added in v1.2.2

func (s *Service) RunManifestCandidates(ctx context.Context) (int, error)

func (*Service) RunOrphanedStorage

func (s *Service) RunOrphanedStorage(ctx context.Context) (int, error)

func (*Service) RunParts

func (s *Service) RunParts(ctx context.Context) (int, error)

func (*Service) RunPendingStorageLocations

func (s *Service) RunPendingStorageLocations(ctx context.Context) (int, error)

func (*Service) RunReaderLeases

func (s *Service) RunReaderLeases(ctx context.Context) (int, error)

func (*Service) RunStorageDeletions

func (s *Service) RunStorageDeletions(ctx context.Context) (int, error)

func (*Service) RunStorageLocations

func (s *Service) RunStorageLocations(ctx context.Context) (int, error)

func (*Service) RunUploads

func (s *Service) RunUploads(ctx context.Context) (int, error)

Jump to

Keyboard shortcuts

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