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
Click to show internal directories.
Click to hide internal directories.