Documentation
¶
Index ¶
- func WithAuth(username, password string) func(*options)
- type Option
- type RegistryContainer
- func (c *RegistryContainer) CloneRepo(t *testing.T, existingRepo, newRepo string) string
- func (c *RegistryContainer) CloneRepoForTest(t *testing.T, repo string) string
- func (c *RegistryContainer) ImageExists(t *testing.T, ref string) error
- func (c *RegistryContainer) ImageRef(ref string) string
- func (c *RegistryContainer) ImageRefForTest(t *testing.T, label string) string
- func (c *RegistryContainer) RegistryHost() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RegistryContainer ¶
type RegistryContainer struct {
Container *registry.RegistryContainer
// contains filtered or unexported fields
}
func StartTestRegistry ¶
func StartTestRegistry(t *testing.T, opts ...Option) *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) CloneRepo ¶ added in v0.15.0
func (c *RegistryContainer) CloneRepo(t *testing.T, existingRepo, newRepo string) string
func (*RegistryContainer) CloneRepoForTest ¶ added in v0.15.0
func (c *RegistryContainer) CloneRepoForTest(t *testing.T, repo string) string
func (*RegistryContainer) ImageExists ¶ added in v0.15.0
func (c *RegistryContainer) ImageExists(t *testing.T, ref string) error
func (*RegistryContainer) ImageRef ¶
func (c *RegistryContainer) ImageRef(ref string) string
func (*RegistryContainer) ImageRefForTest ¶
func (c *RegistryContainer) ImageRefForTest(t *testing.T, label string) string
func (*RegistryContainer) RegistryHost ¶ added in v0.15.0
func (c *RegistryContainer) RegistryHost() string
Click to show internal directories.
Click to hide internal directories.