worker

package
v0.0.0-...-3198091 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package worker provides concurrent workers for container registry operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotator

type Annotator struct {
	Executer
	// contains filtered or unexported fields
}

Annotator annotates tags or manifests concurrently.

func NewAnnotator

func NewAnnotator(poolSize int, orasClient api.ORASClientInterface, loginURL string, repoName string, artifactType string, annotations []string) (*Annotator, error)

NewAnnotator creates a new Annotator.

func (*Annotator) Annotate

func (a *Annotator) Annotate(ctx context.Context, manifests []string) (int, error)

Annotate annotates a list of manifests concurrently and returns a count of annotated images and the first error occurred.

type Executer

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

Executer provides the base functionality for concurrent task execution.

type Purger

type Purger struct {
	Executer
	// contains filtered or unexported fields
}

Purger purges tags or manifests concurrently.

func NewPurger

func NewPurger(repoParallelism int, acrClient api.AcrCLIClientInterface, loginURL string, repoName string, includeLocked bool) *Purger

NewPurger creates a new Purger. Purgers are currently repository specific

func (*Purger) PurgeManifests

func (p *Purger) PurgeManifests(ctx context.Context, manifests []acr.ManifestAttributesBase) (int, error)

PurgeManifests purges a list of manifests concurrently, and returns a count of deleted manifests and the first error occurred.

func (*Purger) PurgeTags

func (p *Purger) PurgeTags(ctx context.Context, tags []acr.TagAttributesBase) (int, error)

PurgeTags purges a list of tags concurrently, and returns a count of deleted tags and the first error occurred.

Jump to

Keyboard shortcuts

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