types

package
v0.0.0-...-35e54ea Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter map[string]struct{}

Filter stores objects (names, tags) of docker images to exclude

type Filters

type Filters struct {
	FullnameFilter Filter
	NameFilter     Filter
	TagFilter      Filter
}

Filters stores map avaliable filters

type Options

type Options struct {

	// Do not change anything
	DryRun bool

	// Enable unsued containters cleaning
	ClearContainers bool

	// Enable unused images cleaning
	ClearNetworks bool

	// Enable unsued volumes cleaning
	ClearVolumes bool

	// Enable unused images cleaning
	ClearImages bool

	// The time period for which images should be saved
	Freshness time.Duration

	// Map of pattern to save images by
	Filters Filters

	// Triggers filters check or permanent deletion
	FiltersExists bool

	// Triggers freshness check or permanent images prune
	FreshnessExists bool
}

Options defines cleaner options

type Tag

type Tag struct {
	ImageID   string
	ImageTag  string
	ImageSize int64
}

Tag custom type to separate each tag from it's image

Jump to

Keyboard shortcuts

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