cache

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2018 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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

func (c *FileCache) GetBlob(bi types.BlobInfo) (io.ReadCloser, int64, error)

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.

func (*FileCache) GetLayer

func (c *FileCache) GetLayer(layer types.BlobInfo) (io.ReadCloser, error)

func (*FileCache) HasLayer

func (c *FileCache) HasLayer(layer types.BlobInfo) bool

func (*FileCache) Invalidate

func (c *FileCache) Invalidate(layer types.BlobInfo) error

func (*FileCache) SetLayer

func (c *FileCache) SetLayer(layer types.BlobInfo, r io.Reader) (io.ReadCloser, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL