package remotecache

import "github.com/moby/buildkit/cache/remotecache"

Index

Constants

const (
	// ExportResponseManifestDesc is a key for the map returned from Exporter.Finalize.
	// The map value is a JSON string of an OCI desciptor of a manifest.
	ExporterResponseManifestDesc = "cache.manifest"
)

Types

type Exporter

type Exporter interface {
	solver.CacheExporterTarget
	// Finalize finalizes and return metadata that are returned to the client
	// e.g. ExporterResponseManifestDesc
	Finalize(ctx context.Context) (map[string]string, error)
}

func NewExporter

func NewExporter(ingester content.Ingester) Exporter

type Importer

type Importer interface {
	Resolve(ctx context.Context, desc ocispec.Descriptor, id string, w worker.Worker) (solver.CacheManager, error)
}

func NewImporter

func NewImporter(provider content.Provider) Importer

type ResolveCacheExporterFunc

type ResolveCacheExporterFunc func(ctx context.Context, attrs map[string]string) (Exporter, error)

type ResolveCacheImporterFunc

type ResolveCacheImporterFunc func(ctx context.Context, attrs map[string]string) (Importer, ocispec.Descriptor, error)

ResolveCacheImporterFunc returns importer and descriptor.

Source Files

export.go import.go

Directories

PathSynopsis
cache/remotecache/inline
cache/remotecache/local
cache/remotecache/registry
cache/remotecache/v1
Version
v0.6.4
Published
Feb 21, 2020
Platform
js/wasm
Imports
21 packages
Last checked
6 minutes ago

Tools for package owners.