registry

package
v0.0.0-...-a132853 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 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, format string, args ...interface{}) (name.Reference, error)

ImageReferenceInStubRegistry returns a reference for an image constructed by concatenating the host:port/`name` where the name is formatted by the given format and arguments

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