cleaner

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cleaner

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

Cleaner is the struct that deletes records outside the retention period.

func NewCleaner

func NewCleaner(store *store.Store, retentionPeriod, interval time.Duration, logger logr.Logger) *Cleaner

NewCleaner returns a new leaner.

func (*Cleaner) Run

func (r *Cleaner) Run(ctx context.Context) error

Run runs the poller for the Cleaner.

Jump to

Keyboard shortcuts

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