Versions in this module Expand all Collapse all v0 v0.12.4 Jan 17, 2024 Changes in this version + const CacheConfigMediaTypeV0 + func NewCacheKeyStorage(cc *CacheChains, w worker.Worker) (solver.CacheKeyStorage, solver.CacheResultStorage, error) + func Parse(configJSON []byte, provider DescriptorProvider, t solver.CacheExporterTarget) error + func ParseConfig(config CacheConfig, provider DescriptorProvider, t solver.CacheExporterTarget) error + type CacheChains struct + func NewCacheChains() *CacheChains + func (c *CacheChains) Add(dgst digest.Digest) solver.CacheExporterRecord + func (c *CacheChains) Marshal(ctx context.Context) (*CacheConfig, DescriptorProvider, error) + func (c *CacheChains) Visit(v interface{}) + func (c *CacheChains) Visited(v interface{}) bool + type CacheConfig struct + Layers []CacheLayer + Records []CacheRecord + type CacheInput struct + LinkIndex int + Selector string + type CacheLayer struct + Annotations *LayerAnnotations + Blob digest.Digest + ParentIndex int + type CacheRecord struct + ChainedResults []ChainedResult + Digest digest.Digest + Inputs [][]CacheInput + Results []CacheResult + type CacheResult struct + CreatedAt time.Time + LayerIndex int + type ChainedResult struct + CreatedAt time.Time + LayerIndexes []int + type DescriptorProvider map[digest.Digest]DescriptorProviderPair + type DescriptorProviderPair struct + Descriptor ocispecs.Descriptor + Provider content.Provider + type LayerAnnotations struct + CreatedAt time.Time + DiffID digest.Digest + MediaType string + Size int64