update

package
v0.8.11-beta3 Latest Latest
Warning

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

Go to latest
Published: May 28, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package update provides functionality to update images with digests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDigestRequester

type IDigestRequester interface {
	Digest(name string, tag string) (string, error)
}

IDigestRequester provides an interface for DigestRequesters, which are responsible for querying the proper registry for a digest given an image's name and tag.

func NewDigestRequester

func NewDigestRequester() IDigestRequester

NewDigestRequester returns a digest requester based on the library "crane".

type IImageDigestUpdater

type IImageDigestUpdater interface {
	UpdateDigests(
		images <-chan parse.IImage,
		done <-chan struct{},
	) <-chan parse.IImage
}

IImageDigestUpdater provides an interface for ImageDigestUpdaters, which update images with their digests.

func NewImageDigestUpdater

func NewImageDigestUpdater(
	digestRequester IDigestRequester,
	ignoreMissingDigests bool,
	updateExistingDigests bool,
) (IImageDigestUpdater, error)

NewImageDigestUpdater returns an IImageDigestUpdater after validating its fields. digestRequester cannot be nil as it is responsible for querying registries for digests.

Jump to

Keyboard shortcuts

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