exporter

package
v28.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 28, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Moby = "moby"

Variables

This section is empty.

Functions

func NewWrapper

func NewWrapper(exp exporter.Exporter, opt Opt) (exporter.Exporter, error)

NewWrapper returns an exporter wrapper that applies moby specific attributes and hooks the export process.

Types

type BuildkitCallbacks

type BuildkitCallbacks struct {
	// Exported is a Called when an image is exported by buildkit.
	Exported func(ctx context.Context, id string, desc ocispec.Descriptor)
}

type ImageTagger

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

type Opt

type Opt struct {
	// Callbacks contains callbacks used by the image exporter.
	Callbacks BuildkitCallbacks

	// ImageTagger is used to tag the image after it is exported.
	ImageTagger ImageTagger
}

Opt are options for the exporter wrapper.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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