or

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package or wraps an embedded zot OCI distribution registry.

Each Concord node runs a local zot instance so workloads can pull container images from localhost. Images are reconciled between nodes via the OCI distribution protocol - when two nodes meet, they exchange manifests and blobs they do not yet have.

The registry storage lives under the user config directory at ~/.config/concord/zot/ and listens on the port defined by Port.

Index

Constants

This section is empty.

Variables

View Source
var Port = 8444

Port is the TCP port the embedded zot registry listens on. It is a variable so tests and deployments can override it.

Functions

This section is empty.

Types

type Registry

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

Registry wraps a zot controller and manages its lifecycle.

func New

func New(nodeID uuid.UUID) (*Registry, error)

New creates a new Registry with storage and HTTP configuration wired to the default data directory and port. It does not start serving.

func (*Registry) Start

func (r *Registry) Start(ctx context.Context, memberService *peerdiscovery.MemberService, logger *zap.Logger) error

Start initialises the storage backend and begins serving the OCI distribution API in the background. When ctx is cancelled the server shuts down gracefully.

func (*Registry) Stop

func (r *Registry) Stop()

Stop shuts down the registry server and releases its resources. Safe to call multiple times.

Jump to

Keyboard shortcuts

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