curator

package
v0.71.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteFiles added in v0.66.0

func DeleteFiles(dirPath string, targetFreeSpace uint64, pageSize int, freeSpace func() (uint64, error), logger log.Logger) (int, error)

DeleteFiles deletes a files until the free capacity reaches the target free capacity

Types

type Curator

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

Curator holds needed propperties for a curator

func NewCurator

func NewCurator(conf config.CuratorConfig, logger log.Logger) *Curator

NewCurator creates new curator object

func (*Curator) Run

func (c *Curator) Run()

Run the ticker

func (*Curator) Stop

func (c *Curator) Stop()

Stop the ticker

type MemStat added in v0.66.0

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

MemStat holds information about the current memory.

func (MemStat) String added in v0.66.0

func (ms MemStat) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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