middleware

package
v2.8.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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{}, registry distribution.Namespace) (distribution.Namespace, error)

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

func GetRegistryOptions

func GetRegistryOptions() []storage.RegistryOption

GetRegistryOptions returns list of RegistryOption.

func Register

func Register(name string, initFunc InitFunc) error

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

func RegisterOptions

func RegisterOptions(options ...storage.RegistryOption) error

RegisterOptions adds more options to RegistryOption list. Options get applied before any other configuration-based options.

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.

Jump to

Keyboard shortcuts

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