registry

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Overview

Package registry is registry/1: an image registry's tags, and pruning all but the newest per image. It speaks the Docker registry API (any OCI registry, Nexus docker repositories included) or Nexus's own REST API, which lists and deletes a whole repository's components at once.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(p *sdk.Plugin)

Types

type Tag

type Tag struct {
	Image   string    `json:"image"`
	Tag     string    `json:"tag"`
	Digest  string    `json:"digest"`
	Created time.Time `json:"created"`
	Size    int64     `json:"size"`
	// contains filtered or unexported fields
}

func Doomed

func Doomed(tags []Tag, keep int, match *regexp.Regexp) []Tag

Doomed are the tags to delete: per image, all but the keep newest that match; a digest a kept tag also points at is never deleted.

Jump to

Keyboard shortcuts

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