Help us shape the future of Go! Take the 2026 Go Developer Survey

artifactspec

package
v1.3.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

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