registry

package
v0.0.0-...-3bfe646 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cleanup

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

Cleanup implements garbage collection for docker registry

func New

func New(config Config) (*Cleanup, error)

New creates a new registry cleaner

func (*Cleanup) Prune

func (r *Cleanup) Prune(ctx context.Context) (err error)

Prune removes unused docker images. The registry state is reset by deleting the state from the filesystem and re-running the docker image export for the cluster application.

type Config

type Config struct {
	// Config specifies the common pruner configuration
	prune.Config
	// App specifies the cluster application
	App *loc.Locator
	// Packages specifies the cluster package service
	Packages pack.PackageService
	// Apps specifies the cluster application service
	Apps apps.Applications
	// ImageService specifies the docker image service
	ImageService docker.ImageService
}

Config describes configuration for the registry cleaner

Jump to

Keyboard shortcuts

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