package archive

import "github.com/containerd/containerd/images/archive"

Package archive provides a Docker and OCI compatible importer

Index

Functions

func AddRefPrefix

func AddRefPrefix(image string) func(string) string

AddRefPrefix prepends the given image prefix to tag-only references, while leaving returning full references unmodified.

func DigestTranslator

func DigestTranslator(prefix string) func(digest.Digest) string

DigestTranslator creates a digest reference by adding the digest to an image name

func FilterRefPrefix

func FilterRefPrefix(image string) func(string) string

FilterRefPrefix restricts references to having the given image prefix. Tag-only references will have the prefix prepended.

func ImportIndex

func ImportIndex(ctx context.Context, store content.Store, reader io.Reader) (ocispec.Descriptor, error)

ImportIndex imports an index from a tar archive image bundle

Source Files

importer.go reference.go

Version
v1.2.3
Published
Feb 6, 2019
Platform
js/wasm
Imports
17 packages
Last checked
20 minutes ago

Tools for package owners.