registry

package
v0.0.0-...-c379186 Latest Latest
Warning

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

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

Documentation

Overview

Package registry is a stub implementation of a container registry

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddStepsTo

func AddStepsTo(sc *godog.ScenarioContext)

AddStepsTo adds Gherkin steps to the godog ScenarioContext

func AllDigests

func AllDigests(ctx context.Context) (map[string]string, error)

AllDigests returns a map of image digests keyed by `repository:tag` for all images stored in the registry

func ImageReferenceInStubRegistry

func ImageReferenceInStubRegistry(ctx context.Context, imageName string) (name.Reference, error)

ImageReferenceInStubRegistry returns a reference for an image constructed by concatenating the host:port/`imageName`

func IsRunning

func IsRunning(ctx context.Context) bool

func Register

func Register(ctx context.Context, hostAndPort string) (context.Context, error)

func StubRegistry

func StubRegistry(ctx context.Context) (string, error)

StubRegistry returns the host:port of the stubbed registry from the Context

func Url

func Url(ctx context.Context) (string, error)

Url returns the host:port needed to interact with the registry

Types

This section is empty.

Jump to

Keyboard shortcuts

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