archive

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package archive provides a Docker and OCI compatible importer

Index

Constants

This section is empty.

Variables

This section is empty.

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

  • implements Docker v1.1, v1.2 and OCI v1.
  • prefers OCI v1 when provided
  • creates OCI index for Docker formats
  • normalizes Docker references and adds as OCI ref name e.g. alpine:latest -> docker.io/library/alpine:latest
  • existing OCI reference names are untouched
  • TODO: support option to compress layers on ingest

Types

This section is empty.

Jump to

Keyboard shortcuts

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