import "github.com/docker/docker/image/cache"
type ImageCache struct {
// contains filtered or unexported fields
}
ImageCache is cache based on history objects. Requires initial set of images.
func New(store image.Store) *ImageCache
New returns an image cache, based on history objects
func (ic *ImageCache) GetCache(parentID string, cfg *containertypes.Config) (string, error)
GetCache returns the image id found in the cache
func (ic *ImageCache) Populate(image *image.Image)
Populate adds an image to the cache (to be queried later)
type LocalImageCache struct {
// contains filtered or unexported fields
}
LocalImageCache is cache based on parent chain.
func NewLocal(store image.Store) *LocalImageCache
NewLocal returns a local image cache, based on parent chain
func (lic *LocalImageCache) GetCache(imgID string, config *containertypes.Config) (string, error)
GetCache returns the image id found in the cache
Package cache imports 9 packages (graph) and is imported by 92 packages. Updated 2018-02-14. Refresh now. Tools for package owners.