Documentation
¶
Overview ¶
Package delta contains storage-independent OCI delta candidate decisions.
Index ¶
Constants ¶
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 ¶
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.