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 ¶
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 ¶
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.