spec

package
v2.0.0-...-c472316 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AnnotationArtifactCreated is the annotation key for the date and time on which the artifact was built, conforming to RFC 3339.
	AnnotationArtifactCreated = "org.opencontainers.artifact.created"

	// AnnotationArtifactDescription is the annotation key for the human readable description for the artifact.
	AnnotationArtifactDescription = "org.opencontainers.artifact.description"

	// AnnotationReferrersFiltersApplied is the annotation key for the comma separated list of filters applied by the registry in the referrers listing.
	AnnotationReferrersFiltersApplied = "org.opencontainers.referrers.filtersApplied"

	// AnnotationResumeDownload is "true" when a resumable is being attempted.
	AnnotationResumeDownload = "com.salad.image.resume"

	// AnnotationResumeFilename contains the full ingest filename.
	AnnotationResumeFilename = "com.salad.image.resume.filename"

	// AnnotationResumeHash contains a hash.Hash of the existing ingest file
	// suitable for using in the new Verifier to resume download verification.
	AnnotationResumeHash = "com.salad.image.resume.hash"

	// AnnotationResumeOffset contains the offset to resume downloading, aka
	// the size of the existing ingest file.
	AnnotationResumeOffset = "com.salad.image.resume.offset"
)
View Source
const MediaTypeArtifactManifest = "application/vnd.oci.artifact.manifest.v1+json"

MediaTypeArtifactManifest specifies the media type for a content descriptor.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	// MediaType is the media type of the object this schema refers to.
	MediaType string `json:"mediaType"`

	// ArtifactType is the IANA media type of the artifact this schema refers to.
	ArtifactType string `json:"artifactType"`

	// Blobs is a collection of blobs referenced by this manifest.
	Blobs []ocispec.Descriptor `json:"blobs,omitempty"`

	// Subject (reference) is an optional link from the artifact to another manifest forming an association between the artifact and the other manifest.
	Subject *ocispec.Descriptor `json:"subject,omitempty"`

	// Annotations contains arbitrary metadata for the artifact manifest.
	Annotations map[string]string `json:"annotations,omitempty"`
}

Artifact describes an artifact manifest. This structure provides `application/vnd.oci.artifact.manifest.v1+json` mediatype when marshalled to JSON.

This manifest type was introduced in image-spec v1.1.0-rc1 and was removed in image-spec v1.1.0-rc3. It is not part of the current image-spec and is kept here for Go compatibility.

Reference: https://github.com/opencontainers/image-spec/pull/999

Jump to

Keyboard shortcuts

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