testutils

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveContainer

func RemoveContainer(dcli *client.Client, ctrs ...string) (err error)

RemoveContainer removes with force a container by it's container ID.

func StartClair added in v0.13.4

func StartClair(dcli *client.Client) (string, string, error)

StartClair starts a new clair container and accompanying database.

func StartRegistry

func StartRegistry(dcli *client.Client, config, username, password string) (string, string, error)

StartRegistry starts a new registry container.

Types

type RegistryHelper added in v0.15.5

type RegistryHelper struct {
	// contains filtered or unexported fields
}

RegistryHelper implements methods to manipulate docker registry from test cases

func NewRegistryHelper added in v0.15.5

func NewRegistryHelper(dcli *client.Client, username, password, addr string) (*RegistryHelper, error)

NewRegistryHelper returns RegistryHelper

func (*RegistryHelper) RefillRegistry added in v0.15.5

func (r *RegistryHelper) RefillRegistry(image string) error

RefillRegistry adds images to a registry.

Jump to

Keyboard shortcuts

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