registry

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package registry is the production controlplane.Registry adapter. It resolves an image reference to its content digest and confirms the image is pullable, using go-containerregistry. The control plane only ever reads metadata here — the image bytes ride the registry to the cluster's nodes, never through Burrow (ADR-0004). The digest it returns is what makes a deploy (and its rollback) deterministic (ADR-0007).

It lives under controlplane/ (not controlplane/internal) so cmd/burrowd and the managed module can wire it; it is licensed Apache-2.0.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Resolver)

Option configures a Resolver.

func WithInsecure

func WithInsecure() Option

WithInsecure allows resolving against registries served over plain HTTP — for a cluster-internal registry or local development. Production registries are HTTPS by default.

type Resolver

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

Resolver resolves image references against container registries.

func New

func New(opts ...Option) *Resolver

New returns a Resolver using the ambient registry credentials (the Docker config keychain), so it authenticates to private registries the host is already logged in to.

func (*Resolver) Resolve

func (r *Resolver) Resolve(ctx context.Context, reference string) (controlplane.ImageInfo, error)

Resolve returns the registry's view of reference: its content digest. A malformed reference is ErrInvalid; an image the registry does not have is ErrNotFound.

Jump to

Keyboard shortcuts

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