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.
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.
Click to show internal directories.
Click to hide internal directories.