cache

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

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