ocireg

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 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 `asm:"data-path"`
	Log     *slog.Logger
	EC      *entityserver.Client
	// contains filtered or unexported fields
}

RegistryHandler processes all OCI registry requests

func (*Registry) Populated

func (r *Registry) Populated() error

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