cleanup

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: Apache-2.0 Imports: 13 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
}

func New

func New(fs afero.Afero, apiReader client.Reader, path metadata.PathResolver, mounter mount.Interface) *Cleaner

func (*Cleaner) InstantRun

func (c *Cleaner) InstantRun(ctx context.Context) error

InstantRun will always execute the cleanup logic ignoring the time passed from previous run

func (*Cleaner) Run

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

Run will only execute the cleanup logic if enough time has passed from the previous run, to not overload the IO of the node

Jump to

Keyboard shortcuts

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