Documentation ¶
Index ¶
- func NewLayerDescriptor(l layer.Layer) ([]byte, ocispec.Descriptor, error)
- func NewMinimalV22Config(digests []digest.Digest) ([]byte, ocispec.Descriptor, error)
- func NewV22Manifest(config ocispec.Descriptor, layers []ocispec.Descriptor) ([]byte, ocispec.Descriptor, error)
- type ConfigDescriptor
- type ConfigDescriptorFunc
- type LayerDescriptor
- type LayerDescriptorFunc
- type ManifestDescriptor
- type ManifestDescriptorFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLayerDescriptor ¶
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.