http

package
v0.0.0-...-3bfe646 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRegistry

func NewRegistry(config Config) (http.Handler, error)

NewRegistry returns a new HTTP handler that serves Docker registry API.

Types

type Config

type Config struct {
	// Context is the registry context.
	Context context.Context
	// Users is the cluster users service.
	Users users.Identity
	// Authenticator is the request authentication service.
	Authenticator users.Authenticator
}

Config is the registry server configuration.

func (Config) Check

func (c Config) Check() error

Check validates the registry handler configuration.

Jump to

Keyboard shortcuts

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