package cacheimport

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

Index

Functions

func IntersectAll

func IntersectAll[T comparable](
	funcs []func() map[T]struct{},
) map[T]struct{}

func NewCacheKeyStorage

func Parse

func Parse(configJSON []byte, provider DescriptorProvider, t solver.CacheExporterTarget) error

func ParseConfig

Types

type CacheChains

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

func NewCacheChains

func NewCacheChains() *CacheChains

func (*CacheChains) Add

func (*CacheChains) Marshal

Marshal converts the cache chains structure into a cache config and a collection of providers for reading the results from.

Marshal aims to validate, normalize and sort the output to ensure a consistent digest (since cache configs are typically uploaded and stored in content-addressable OCI registries).

type DescriptorProvider

type DescriptorProvider map[digest.Digest]DescriptorProviderPair

type DescriptorProviderPair

type DescriptorProviderPair struct {
	Descriptor   ocispecs.Descriptor
	Provider     content.Provider
	InfoProvider content.InfoProvider
}

func (DescriptorProviderPair) Info

func (DescriptorProviderPair) ReaderAt

func (DescriptorProviderPair) SnapshotLabels

func (p DescriptorProviderPair) SnapshotLabels(descs []ocispecs.Descriptor, index int) map[string]string

func (DescriptorProviderPair) UnlazySession

func (p DescriptorProviderPair) UnlazySession(desc ocispecs.Descriptor) session.Group

Source Files

cachestorage.go chains.go parse.go utils.go

Directories

PathSynopsis
cache/remotecache/v1/types
Version
v0.28.1
Published
Mar 25, 2026
Platform
js/wasm
Imports
23 packages
Last checked
30 minutes ago

Tools for package owners.