cacheimport

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: Apache-2.0 Imports: 23 Imported by: 138

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntersectAll added in v0.25.0

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

func Parse

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

func ParseConfig added in v0.4.0

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 added in v0.13.0

func (DescriptorProviderPair) ReaderAt added in v0.13.0

func (DescriptorProviderPair) SnapshotLabels added in v0.13.0

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

func (DescriptorProviderPair) UnlazySession added in v0.13.0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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