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