package cache
import "github.com/docker/docker/image/cache"
Index ¶
- func CompareConfig(a, b *container.Config) bool
- type ImageCache
- func New(store image.Store) *ImageCache
- func (ic *ImageCache) GetCache(parentID string, cfg *containertypes.Config, platform ocispec.Platform) (string, error)
- func (ic *ImageCache) Populate(image *image.Image)
- type LocalImageCache
Functions ¶
func CompareConfig ¶
TODO: Remove once containerd image service directly uses the ImageCache and LocalImageCache structs.
Types ¶
type ImageCache ¶
type ImageCache struct {
// contains filtered or unexported fields
}
ImageCache is cache based on history objects. Requires initial set of images.
func New ¶
func New(store image.Store) *ImageCache
New returns an image cache, based on history objects
func (*ImageCache) GetCache ¶
func (ic *ImageCache) GetCache(parentID string, cfg *containertypes.Config, platform ocispec.Platform) (string, error)
GetCache returns the image id found in the cache
func (*ImageCache) Populate ¶
func (ic *ImageCache) Populate(image *image.Image)
Populate adds an image to the cache (to be queried later)
type LocalImageCache ¶
type LocalImageCache struct {
// contains filtered or unexported fields
}
LocalImageCache is cache based on parent chain.
func NewLocal ¶
func NewLocal(store image.Store) *LocalImageCache
NewLocal returns a local image cache, based on parent chain
func (*LocalImageCache) GetCache ¶
func (lic *LocalImageCache) GetCache(imgID string, config *containertypes.Config, platform ocispec.Platform) (string, error)
GetCache returns the image id found in the cache
Source Files ¶
- Version
- v25.0.2+incompatible
- Published
- Feb 1, 2024
- Platform
- js/wasm
- Imports
- 13 packages
- Last checked
- 2 minutes ago –
Tools for package owners.