schema2

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

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.

Jump to

Keyboard shortcuts

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