registry

package
v1.25.2 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: Apache-2.0 Imports: 19 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 {
	Storage  Storage
	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(log logr.Logger) error

func (Registry) Shutdown added in v1.0.0

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

type Storage added in v1.19.0

type Storage struct {
	Type               storageType
	Path               string
	AlwaysReadOnly     bool
	RepositoriesPrefix string
}

func ArchiveStorage added in v1.19.0

func ArchiveStorage(repositoryPrefix string, bundles ...string) (Storage, error)

func FilesystemStorage added in v1.19.0

func FilesystemStorage(rootDir string) Storage

type TLS added in v0.6.0

type TLS struct {
	Certificate string
	Key         string
}

Directories

Path Synopsis
storage
driver/archive
This package contains an implementation of the registry.StorageDriver from the distribution project that uses an archive as the storage backend.
This package contains an implementation of the registry.StorageDriver from the distribution project that uses an archive as the storage backend.

Jump to

Keyboard shortcuts

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