package cacheimporttypes
import "github.com/moby/buildkit/cache/remotecache/v1/types"
Index ¶
- Constants
- type CacheConfig
- type CacheInput
- type CacheLayer
- type CacheRecord
- type CacheResult
- type ChainedResult
- type LayerAnnotations
Constants ¶
const CacheConfigMediaTypeV0 = "application/vnd.buildkit.cacheconfig.v0"
Types ¶
type CacheConfig ¶
type CacheConfig struct {
Layers []CacheLayer `json:"layers,omitempty"`
Records []CacheRecord `json:"records,omitempty"`
}
type CacheInput ¶
type CacheLayer ¶
type CacheLayer struct {
Blob digest.Digest `json:"blob,omitempty"`
ParentIndex int `json:"parent,omitempty"`
Annotations *LayerAnnotations `json:"annotations,omitempty"`
}
type CacheRecord ¶
type CacheRecord struct {
Results []CacheResult `json:"layers,omitempty"`
ChainedResults []ChainedResult `json:"chains,omitempty"`
Digest digest.Digest `json:"digest,omitempty"`
Inputs [][]CacheInput `json:"inputs,omitempty"`
}
type CacheResult ¶
type ChainedResult ¶
type ChainedResult struct {
LayerIndexes []int `json:"layers"`
CreatedAt time.Time `json:"createdAt"`
}
type LayerAnnotations ¶
type LayerAnnotations struct {
MediaType string `json:"mediaType,omitempty"`
DiffID digest.Digest `json:"diffID,omitempty"`
Size int64 `json:"size,omitempty"`
CreatedAt time.Time `json:"createdAt"`
}
Source Files ¶
- Version
- v0.26.0-rc2
- Published
- Nov 11, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 1 minute ago –
Tools for package owners.