package middleware

import "github.com/docker/distribution/registry/middleware/repository"

Index

Functions

func Get

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

func Register(name string, initFunc InitFunc) error

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

Types

type InitFunc

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

middleware.go

Version
v2.0.0-rc.3+incompatible
Published
Apr 10, 2015
Platform
js/wasm
Imports
2 packages
Last checked
15 hours ago

Tools for package owners.