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.
Click to show internal directories.
Click to hide internal directories.