gc

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultInterval = 30 * time.Minute
	DefaultMaxAge   = 24 * time.Hour
)

Functions

func Start

func Start(ctx context.Context, options ...Option) error

Starts a new garbage collector with the specified interval check, and removes containers older than specified age.

Types

type Option

type Option func(o *config) error

func Filter

func Filter(key, value string) Option

func Interval

func Interval(t time.Duration) Option

func MaxAge

func MaxAge(t time.Duration) Option

Jump to

Keyboard shortcuts

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