registry_testhelpers

package
v0.14.12 Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RegistryContainer

type RegistryContainer struct {
	Container *registry.RegistryContainer
}

func StartTestRegistry

func StartTestRegistry(t *testing.T) *RegistryContainer

StartTestRegistry starts a test registry container on a random local port populated with image data from the testdata/docker directory. It returns a RegistryContainer that can be used to inspect the registry and generate absolute image references. It will automatically be cleaned when the test finishes. This is safe to run concurrently across multiple tests.

func (*RegistryContainer) ImageRef

func (c *RegistryContainer) ImageRef(ref string) string

func (*RegistryContainer) ImageRefForTest

func (c *RegistryContainer) ImageRefForTest(t *testing.T, label string) string

Jump to

Keyboard shortcuts

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