Help us shape the future of Go! Take the 2026 Go Developer Survey

containerimage

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2018 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

New returns a new containerimage exporter instance that supports exporting to an image store and pushing the image to registry. This exporter supports following values in returned kv map: - containerimage.digest - The digest of the root manifest for the image.

Types

type ImageWriter

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

func NewImageWriter

func NewImageWriter(opt WriterOpt) (*ImageWriter, error)

func (*ImageWriter) Commit

func (ic *ImageWriter) Commit(ctx context.Context, inp exporter.Source, oci bool) (*ocispec.Descriptor, error)

func (*ImageWriter) ContentStore

func (ic *ImageWriter) ContentStore() content.Store

type Opt

type Opt struct {
	SessionManager *session.Manager
	ImageWriter    *ImageWriter
	Images         images.Store
	ResolverOpt    resolver.ResolveOptionsFunc
}

type WriterOpt

type WriterOpt struct {
	Snapshotter  snapshot.Snapshotter
	ContentStore content.Store
	Differ       diff.Comparer
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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