Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstructRegistryAuth ¶
ConstructRegistryAuth serializes the auth configuration as JSON base64 payload.
Types ¶
type TestHelper ¶
TestHelper implements methods to manipulate docker registry from test cases
func NewTestHelper ¶
func NewTestHelper(conf *viper.Viper) *TestHelper
func (*TestHelper) AddImageToRegistry ¶
func (helper *TestHelper) AddImageToRegistry(publicImage, mockImage string) error
AddImageToRegistry adds images to a registry.
func (*TestHelper) RemoveContainer ¶
func (helper *TestHelper) RemoveContainer(ctrs ...string) (err error)
RemoveContainer removes with force a container by it's container ID.
func (*TestHelper) StartPostgres ¶
func (helper *TestHelper) StartPostgres() (string, error)
StartPostgres starts a new postgres container.
func (*TestHelper) StartRegistry ¶
func (helper *TestHelper) StartRegistry() (string, string, error)
StartRegistry starts a new registry container.
Click to show internal directories.
Click to hide internal directories.