core

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: BSD-2-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CleanupTask

type CleanupTask struct {

	// Interval in which the clean-up process will happen, in minutes.
	Interval int

	// Number of images to keep in each ECR repository.
	MaxImages int

	// AWS region in which the repositories live.
	AwsRegion string

	// ECR repositories to clean up.
	EcrRepositories []*string

	// Path to the kubeconfig file used to access the Kubernetes cluster.
	// This is used to find out which images are in use, so they don't get
	// deleted by accident.
	KubeConfig string

	// Images used by pods running in these namespaces will not get deleted.
	KubeNamespaces []*string

	DryRun bool

	RegistryID *string

	KeepFilters []*string
}

CleanupTask encapsulates the input parameters for the clean-up code.

func NewCleanupTask

func NewCleanupTask() *CleanupTask

NewCleanupTask creates a CleanupTask with default values.

Jump to

Keyboard shortcuts

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