delta

package
v1.4.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package delta contains storage-independent OCI delta candidate decisions.

Index

Constants

View Source
const (
	ArtifactType     = "application/vnd.io.github.containers.oci-delta.v1"
	SourceAnnotation = "io.github.containers.delta.source"
)

Variables

This section is empty.

Functions

func IsDeltaReferrer

func IsDeltaReferrer(ref client.OCIReferrer) bool

IsDeltaReferrer reports whether the descriptor identifies a delta artifact.

func Repository

func Repository(image string) string

Repository returns the repository portion of an OCI image reference.

Types

type Candidate

type Candidate struct {
	Reference       string
	SourceDigest    string
	TargetDigest    string
	DownloadSize    int64
	SourceAvailable bool
}

Candidate describes a validated artifact and availability in the target's store.

func FromHintManifest

func FromHintManifest(reference string, manifest *client.OCIManifest) (Candidate, error)

FromHintManifest validates an explicitly hinted manifest. Its descriptor size is not known before the manifest is fetched.

func FromReferrerManifest

func FromReferrerManifest(reference string, manifest *client.OCIManifest, manifestSize int64) (Candidate, error)

FromReferrerManifest validates a manifest discovered through an OCI referrer descriptor and sums its downloadable blob sizes.

func Select

func Select(candidates []Candidate) Candidate

Select chooses the smallest locally usable delta, with a stable reference tie-break.

Jump to

Keyboard shortcuts

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