registry

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	StorageDirectory string
	Host             string
	Port             uint16
	ReadOnly         bool
	TLS              TLS
}

func (Config) ToRegistryConfiguration

func (c Config) ToRegistryConfiguration() (*configuration.Configuration, error)

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry(cfg Config) (*Registry, error)

func (Registry) Address

func (r Registry) Address() string

func (Registry) ListenAndServe

func (r Registry) ListenAndServe() error

func (Registry) Shutdown added in v1.0.0

func (r Registry) Shutdown(ctx context.Context) error

type TLS added in v0.6.0

type TLS struct {
	Certificate string
	Key         string
}

Jump to

Keyboard shortcuts

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