Documentation
¶
Overview ¶
Package schema2 contains structs for Docker schema v2 manifests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ManifestListSchemaVersion = docker.Versioned{ SchemaVersion: 2, MediaType: mediatype.Docker2ManifestList, }
ManifestListSchemaVersion is a pre-configured versioned field for manifest lists
View Source
var ManifestSchemaVersion = docker.Versioned{ SchemaVersion: 2, MediaType: mediatype.Docker2Manifest, }
ManifestSchemaVersion is a pre-configured versioned field for manifests
Functions ¶
This section is empty.
Types ¶
type Manifest ¶
type Manifest struct {
docker.Versioned
// Config references the image configuration as a blob.
Config descriptor.Descriptor `json:"config"`
// Layers lists descriptors for the layers referenced by the
// configuration.
Layers []descriptor.Descriptor `json:"layers"`
// Annotations contains arbitrary metadata for the image index.
// Note, this is not a defined docker schema2 field.
Annotations map[string]string `json:"annotations,omitempty"`
}
Manifest defines a schema2 manifest.
type ManifestList ¶
type ManifestList struct {
docker.Versioned
// Manifests lists descriptors in the manifest list
Manifests []descriptor.Descriptor `json:"manifests"`
// Annotations contains arbitrary metadata for the image index.
// Note, this is not a defined docker schema2 field.
Annotations map[string]string `json:"annotations,omitempty"`
}
ManifestList references manifests for various platforms.
Click to show internal directories.
Click to hide internal directories.