registryproxycache

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRegistryHandler

func NewRegistryHandler(ctx context.Context, config *dconfiguration.Configuration) (http.Handler, error)

Types

type RegistryHandlers

type RegistryHandlers map[string]http.Handler

func NewRegistryHandlers

func NewRegistryHandlers(ctx context.Context, config *configuration.Configuration) (RegistryHandlers, error)

func (RegistryHandlers) RegistryHandler

func (registries RegistryHandlers) RegistryHandler() http.Handler

{registry_host}/v2/{hub}/ {registry_host}/v2/

func (RegistryHandlers) RegistryMirrorMiddleware

func (registries RegistryHandlers) RegistryMirrorMiddleware() func(next http.Handler) http.Handler

{registry_host}/hub-prefix-mirrors/{hub}/v2/{hub}/ {registry_host}/mirrors/{hub}/v2/

type RegistryProxyCache

type RegistryProxyCache struct {
	Server *http.Server
	// contains filtered or unexported fields
}

func NewRegistryProxyCache

func NewRegistryProxyCache(ctx context.Context, config *configuration.Configuration) (*RegistryProxyCache, error)

func (*RegistryProxyCache) ListenAndServe

func (r *RegistryProxyCache) ListenAndServe() error

ListenAndServe runs the registry's HTTP Server.

Jump to

Keyboard shortcuts

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