mobyexporter

package
v27.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 23 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 creates a new moby imagestore exporter

Types

type Differ

type Differ interface {
	EnsureLayer(ctx context.Context, key string) ([]layer.DiffID, error)
}

Differ can make a moby layer from a snapshot

type ImageTagger

type ImageTagger interface {
	TagImage(ctx context.Context, imageID image.ID, newTag distref.Named) error
}

type Opt

type Opt struct {
	ImageStore            image.Store
	Differ                Differ
	ImageTagger           ImageTagger
	ContentStore          content.Store
	LeaseManager          leases.Manager
	ImageExportedCallback func(ctx context.Context, id string, desc ocispec.Descriptor)
}

Opt defines a struct for creating new exporter

Jump to

Keyboard shortcuts

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