docker: github.com/docker/docker/image/cache Index | Files

package cache

import "github.com/docker/docker/image/cache"

Index

Package Files

cache.go compare.go

type ImageCache Uses

type ImageCache struct {
    // contains filtered or unexported fields
}

ImageCache is cache based on history objects. Requires initial set of images.

func New Uses

func New(store image.Store) *ImageCache

New returns an image cache, based on history objects

func (*ImageCache) GetCache Uses

func (ic *ImageCache) GetCache(parentID string, cfg *containertypes.Config) (string, error)

GetCache returns the image id found in the cache

func (*ImageCache) Populate Uses

func (ic *ImageCache) Populate(image *image.Image)

Populate adds an image to the cache (to be queried later)

type LocalImageCache Uses

type LocalImageCache struct {
    // contains filtered or unexported fields
}

LocalImageCache is cache based on parent chain.

func NewLocal Uses

func NewLocal(store image.Store) *LocalImageCache

NewLocal returns a local image cache, based on parent chain

func (*LocalImageCache) GetCache Uses

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.