package middleware
import "github.com/docker/distribution/registry/middleware/registry"
Index ¶
- func Get(ctx context.Context, name string, options map[string]interface{}, registry distribution.Namespace) (distribution.Namespace, error)
- func Register(name string, initFunc InitFunc) error
- type InitFunc
Functions ¶
func Get ¶
func Get(ctx context.Context, name string, options map[string]interface{}, registry distribution.Namespace) (distribution.Namespace, error)
Get constructs a RegistryMiddleware with the given options using the named backend.
func Register ¶
Register is used to register an InitFunc for a RegistryMiddleware backend with the given name.
Types ¶
type InitFunc ¶
type InitFunc func(ctx context.Context, registry distribution.Namespace, options map[string]interface{}) (distribution.Namespace, error)
InitFunc is the type of a RegistryMiddleware factory function and is used to register the constructor for different RegistryMiddleware backends.
Source Files ¶
- Version
- v2.4.1+incompatible
- Published
- May 10, 2016
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 9 hours ago –
Tools for package owners.