Documentation ¶
Index ¶
- Variables
- func ManifestToImageConfig(ctx context.Context, srcManifest distribution.Manifest, ...) (*dockerv1client.DockerImageConfig, []distribution.Descriptor, error)
- func ProcessManifestList(ctx context.Context, srcDigest digest.Digest, ...) ([]distribution.Manifest, distribution.Manifest, digest.Digest, error)
- type ManifestLocation
Constants ¶
This section is empty.
Variables ¶
View Source
var PreferManifestList = distribution.WithManifestMediaTypes([]string{ manifestlist.MediaTypeManifestList, schema2.MediaTypeManifest, imagespecv1.MediaTypeImageManifest, })
PreferManifestList specifically requests a manifest list first
Functions ¶
func ManifestToImageConfig ¶
func ManifestToImageConfig(ctx context.Context, srcManifest distribution.Manifest, blobs distribution.BlobService, location ManifestLocation) (*dockerv1client.DockerImageConfig, []distribution.Descriptor, error)
ManifestToImageConfig takes an image manifest and converts it into a structured object.
func ProcessManifestList ¶
func ProcessManifestList(ctx context.Context, srcDigest digest.Digest, srcManifest distribution.Manifest, manifests distribution.ManifestService, ref imagereference.DockerImageReference, keepManifestList bool) ([]distribution.Manifest, distribution.Manifest, digest.Digest, error)
Types ¶
type ManifestLocation ¶
type ManifestLocation struct { Manifest digest.Digest ManifestList digest.Digest }
func FirstManifest ¶
func FirstManifest(ctx context.Context, from imagereference.DockerImageReference, repo distribution.Repository) (distribution.Manifest, ManifestLocation, error)
FirstManifest returns the first manifest at the request location that matches the filter function.
func (ManifestLocation) IsList ¶
func (m ManifestLocation) IsList() bool
func (ManifestLocation) String ¶
func (m ManifestLocation) String() string
Click to show internal directories.
Click to hide internal directories.