package oci

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

Index

Types

type V1Exporter

type V1Exporter struct {
}

V1Exporter implements OCI Image Spec v1. It is up to caller to put "org.opencontainers.image.ref.name" annotation to desc.

TODO(AkihiroSuda): add V1Exporter{TranslateMediaTypes: true} that transforms media types,

e.g. application/vnd.docker.image.rootfs.diff.tar.gzip
     -> application/vnd.oci.image.layer.v1.tar+gzip

func (*V1Exporter) Export

func (oe *V1Exporter) Export(ctx context.Context, store content.Provider, desc ocispec.Descriptor, writer io.Writer) error

Export implements Exporter.

Source Files

exporter.go

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

Tools for package owners.