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
Click to show internal directories.
Click to hide internal directories.