worker

package
v0.0.0-...-eecdede Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Purger

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

Purger purges tags or manifests concurrently.

func NewPurger

func NewPurger(poolSize int, acrClient api.AcrCLIClientInterface, loginURL string, repoName string) *Purger

NewPurger creates a new Purger.

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