middleware

package
v2.0.0-rc.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2015 License: Apache-2.0 Imports: 2 Imported by: 369

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(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

func Register(name string, initFunc InitFunc) error

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

Types

type InitFunc

type InitFunc func(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.

Jump to

Keyboard shortcuts

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