cache

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrorLayerNotFound is the error returned by Lookup when the layer
	// requested was not found in the registry.
	ErrorLayerNotFound = errors.Errorf("layer not found in cache")
)

Functions

This section is empty.

Types

type Manager

type Manager interface {
	PullCache(cacheID string) (*image.DigestPair, error)
	PushCache(cacheID string, digestPair *image.DigestPair) error
	WaitForPush() error
}

Manager is the interface through which we interact with the cacheID -> image layer mapping.

func New

func New(
	imageStore *storage.ImageStore, kvStore keyvalue.Store,
	registryClient registry.Client) Manager

New returns a new cache manager that interacts with the registry passed in as well as the local filesystem through the image store. By default the registry field is left blank.

func NewNoopCacheManager

func NewNoopCacheManager() Manager

NewNoopCacheManager returns a Manager that does nothing.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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