manifest

package
v0.0.0-...-744f0e7 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLayerDescriptor

func NewLayerDescriptor(l layer.Layer) ([]byte, ocispec.Descriptor, error)

func NewMinimalV22Config

func NewMinimalV22Config(digests []digest.Digest) ([]byte, ocispec.Descriptor, error)

NewV22Config returns a minimal v2-2 config manifest. `digests` contain the digests of the uncompressed layers.

func NewV22Manifest

func NewV22Manifest(config ocispec.Descriptor, layers []ocispec.Descriptor) ([]byte, ocispec.Descriptor, error)

NewV22Manifest returns a valid v2-2 manifest given a config and layers

Types

type ConfigDescriptor

type ConfigDescriptor interface {
	MakeConfig(digests []digest.Digest) ([]byte, ocispec.Descriptor, error)
}

A ConfigDescriptor can create an image config given a list of digests

type ConfigDescriptorFunc

type ConfigDescriptorFunc func(digests []digest.Digest) ([]byte, ocispec.Descriptor, error)

func (ConfigDescriptorFunc) MakeConfig

func (f ConfigDescriptorFunc) MakeConfig(digests []digest.Digest) ([]byte, ocispec.Descriptor, error)

type LayerDescriptor

type LayerDescriptor interface {
	MakeDescriptor(l layer.Layer) ([]byte, ocispec.Descriptor, error)
}

A LayerDescriptor can create an image config given a list of digests

type LayerDescriptorFunc

type LayerDescriptorFunc func(l layer.Layer) ([]byte, ocispec.Descriptor, error)

func (LayerDescriptorFunc) MakeDescriptor

func (f LayerDescriptorFunc) MakeDescriptor(l layer.Layer) ([]byte, ocispec.Descriptor, error)

type ManifestDescriptor

type ManifestDescriptor interface {
	MakeManifest(config ocispec.Descriptor, layers []ocispec.Descriptor) ([]byte, ocispec.Descriptor, error)
}

A ManifestDescriptor can generate manifests for a given target

type ManifestDescriptorFunc

type ManifestDescriptorFunc func(config ocispec.Descriptor, layers []ocispec.Descriptor) ([]byte, ocispec.Descriptor, error)

func (ManifestDescriptorFunc) MakeManifest

func (f ManifestDescriptorFunc) MakeManifest(config ocispec.Descriptor, layers []ocispec.Descriptor) ([]byte, ocispec.Descriptor, error)

Jump to

Keyboard shortcuts

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