Documentation ¶
Overview ¶
Package registry is a stub implementation of a container registry
Index ¶
- func AddStepsTo(sc *godog.ScenarioContext)
- func AllDigests(ctx context.Context) (map[string]string, error)
- func ImageReferenceInStubRegistry(ctx context.Context, format string, args ...interface{}) (name.Reference, error)
- func IsRunning(ctx context.Context) bool
- func Register(ctx context.Context, hostAndPort string) (context.Context, error)
- func StubRegistry(ctx context.Context) (string, error)
- func Url(ctx context.Context) (string, error)
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 ¶
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 StubRegistry ¶
StubRegistry returns the host:port of the stubbed registry from the Context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.