ocireg

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen(log *slog.Logger, ec *entityserver.Client, path, addr string) error

Types

type Registry

type Registry struct {
	RootDir string
	Log     *slog.Logger
	EC      *entityserver.Client
	// contains filtered or unexported fields
}

RegistryHandler processes all OCI registry requests

func NewRegistry added in v0.3.0

func NewRegistry(rootDir string, log *slog.Logger, ec *entityserver.Client) *Registry

NewRegistry creates a new Registry.

func (*Registry) Shutdown

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

func (*Registry) Start

func (r *Registry) Start(ctx context.Context, addr string) error

type RegistryHandler

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

func NewRegistryHandler

func NewRegistryHandler(storageRoot string, log *slog.Logger, ec *entityserver.Client) *RegistryHandler

NewRegistryHandler creates a new registry handler with the specified storage location

func (*RegistryHandler) ServeHTTP

func (h *RegistryHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements the http.Handler interface

Jump to

Keyboard shortcuts

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