oci

package
v0.2.4-0...-e476a30 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type V1Exporter

type V1Exporter struct {
	AllPlatforms bool
}

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 DefaultV1Exporter

func DefaultV1Exporter() *V1Exporter

DefaultV1Exporter return a default V1Exporter pointer

func ResolveV1ExportOpt

func ResolveV1ExportOpt(opts ...V1ExporterOpt) (*V1Exporter, error)

ResolveV1ExportOpt return a new V1Exporter with V1ExporterOpt

func (*V1Exporter) Export

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

Export implements Exporter.

type V1ExporterOpt

type V1ExporterOpt func(c *V1Exporter) error

V1ExporterOpt allows the caller to set additional options to a new V1Exporter

func WithAllPlatforms

func WithAllPlatforms(allPlatforms bool) V1ExporterOpt

WithAllPlatforms set V1Exporter`s AllPlatforms option

Jump to

Keyboard shortcuts

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