Documentation
¶
Index ¶
- type FileCache
- func (c *FileCache) GetBlob(bi types.BlobInfo) (io.ReadCloser, int64, error)
- func (c *FileCache) GetLayer(layer types.BlobInfo) (io.ReadCloser, error)
- func (c *FileCache) HasLayer(layer types.BlobInfo) bool
- func (c *FileCache) Invalidate(layer types.BlobInfo) error
- func (c *FileCache) SetLayer(layer types.BlobInfo, r io.Reader) (io.ReadCloser, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileCache ¶
type FileCache struct { RootDir string *image.ProxySource }
func NewFileCache ¶
func NewFileCache(dir string, ref types.ImageReference) (*FileCache, error)
func (*FileCache) GetBlob ¶ added in v0.7.0
GetBlob returns a stream for the specified blob, and the blob’s size (or -1 if unknown). The Digest field in BlobInfo is guaranteed to be provided; Size may be -1.
Click to show internal directories.
Click to hide internal directories.