image

package
v0.0.0-...-6d8d8d4 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDefaultRegistryIfMissing

func AddDefaultRegistryIfMissing(ref string, defaultRegistry, defaultNamespace string) string

AddDefaultRegistryIfMissing will add default registry and namespace if missing.

func PullManifest

func PullManifest(ctx context.Context, c *containerd.Client, ref string, opts ...containerd.RemoteOpt) error

PullManifest downloads the provided content into containerd's content store

Types

type Converter

type Converter struct {
	// contains filtered or unexported fields
}

Converter converts schema1 manifests to schema2 on fetch

func NewConverter

func NewConverter(contentStore content.Store, fetcher remotes.Fetcher) *Converter

NewConverter returns a new converter

func (*Converter) Convert

func (c *Converter) Convert(ctx context.Context) (ocispec.Descriptor, error)

Convert a docker manifest to an OCI descriptor

func (*Converter) Handle

func (c *Converter) Handle(ctx context.Context, desc ocispec.Descriptor) ([]ocispec.Descriptor, error)

Handle fetching descriptors for a docker media type

Jump to

Keyboard shortcuts

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