Versions in this module Expand all Collapse all v0 v0.5.2 Nov 25, 2017 v0.5.1 Nov 20, 2017 Changes in this version + type Cache interface + GetLayer func(string) (io.ReadCloser, error) + HasLayer func(string) bool + Invalidate func(string) error + SetLayer func(string, io.Reader) (io.ReadCloser, error) + type FileCache struct + RootDir string + func NewFileCache(dir string) (*FileCache, error) + func (c *FileCache) GetLayer(layerId string) (io.ReadCloser, error) + func (c *FileCache) HasLayer(layerId string) bool + func (c *FileCache) Invalidate(layerId string) error + func (c *FileCache) SetLayer(layerId string, r io.Reader) (io.ReadCloser, error)