package exporter

import "github.com/dotcloud/docker/builder/builder-next/exporter"

Index

Constants

const Moby = "moby"

Functions

func NewWrapper

func NewWrapper(exp exporter.Exporter, callbacks BuildkitCallbacks) (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)

	// Named is a callback that is called when an image is created in the
	// containerd image store by buildkit.
	Named func(ctx context.Context, ref reference.NamedTagged, desc ocispec.Descriptor)
}

Source Files

exporter.go wrapper.go

Directories

PathSynopsis
builder/builder-next/exporter/mobyexporter
builder/builder-next/exporter/overrides
Version
v28.0.0-rc.3+incompatible
Published
Feb 18, 2025
Platform
linux/amd64
Imports
8 packages
Last checked
22 minutes ago

Tools for package owners.