cacheprovider

package
v0.0.0-...-8f8f87b Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(ctx context.Context, name string, options map[string]interface{}) (cache.BlobDescriptorCacheProvider, error)

Get constructs a CacheProvider with the given options using the named backend.

func Register

func Register(name string, initFunc InitFunc) error

Register is used to register an InitFunc for a CacheProvider backend with the given name.

Types

type InitFunc

type InitFunc func(ctx context.Context, options map[string]interface{}) (cache.BlobDescriptorCacheProvider, error)

InitFunc is the type of a CacheProvider factory function and is used to register the constructor for different CacheProvider backends.

Jump to

Keyboard shortcuts

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