oci

package
v0.0.0-...-ab06b26 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2017 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VariantOCI    = "oci"
	VariantDocker = "docker"
)

Variables

This section is empty.

Functions

func New

func New(opt Opt) (exporter.Exporter, error)

Types

type DockerExporter

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

DockerExporter implements exporting to Docker Combined Image JSON + Filesystem Changeset Format v1.1 https://github.com/moby/moby/blob/master/image/spec/v1.1.md#combined-image-json--filesystem-changeset-format The outputed tarball is also compatible wih OCI Image Format Specification

func (*DockerExporter) Export

func (de *DockerExporter) Export(ctx context.Context, store content.Store, desc ocispec.Descriptor, writer io.Writer) error

Export exports tarball into writer.

type ExporterVariant

type ExporterVariant string

type Opt

type Opt struct {
	SessionManager *session.Manager
	ImageWriter    *containerimage.ImageWriter
	Variant        ExporterVariant
}

Jump to

Keyboard shortcuts

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