manifest

package
v3.11.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2018 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

PreferManifestList specifically requests a manifest list first

Functions

func FirstManifest

FirstManifest returns the first manifest at the request location that matches the filter function.

func ManifestToImageConfig

func ManifestToImageConfig(ctx context.Context, srcManifest distribution.Manifest, blobs distribution.BlobService, location string) (*docker10.DockerImageConfig, []distribution.Descriptor, error)

ManifestToImageConfig takes an image manifest and converts it into a structured object.

func PutManifestInCompatibleSchema

func PutManifestInCompatibleSchema(
	ctx context.Context,
	srcManifest distribution.Manifest,
	tag string,
	toManifests distribution.ManifestService,

	blobs distribution.BlobService,
	ref reference.Named,
) (digest.Digest, error)

TDOO: remove when quay.io switches to v2 schema

Types

type FilterFunc

type FilterFunc func(*manifestlist.ManifestDescriptor, bool) bool

type FilterOptions

type FilterOptions struct {
	FilterByOS      string
	DefaultOSFilter bool
	OSFilter        *regexp.Regexp
}

FilterOptions assist in filtering out unneeded manifests from ManifestList objects.

func (*FilterOptions) Bind

func (o *FilterOptions) Bind(flags *pflag.FlagSet)

Bind adds the options to the flag set.

func (*FilterOptions) Complete

func (o *FilterOptions) Complete(flags *pflag.FlagSet) error

Complete checks whether the flags are ready for use.

func (*FilterOptions) Include

func (o *FilterOptions) Include(d *manifestlist.ManifestDescriptor, hasMultiple bool) bool

Include returns true if the provided manifest should be included, or the first image if the user didn't alter the default selection and there is only one image.

func (*FilterOptions) IncludeAll

func (o *FilterOptions) IncludeAll(d *manifestlist.ManifestDescriptor, hasMultiple bool) bool

IncludeAll returns true if the provided manifest matches the filter, or all if there was no filter.

Jump to

Keyboard shortcuts

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