Documentation ¶
Index ¶
- Constants
- func Cleanup(ctx context.Context)
- func DockerCompose(ctx context.Context, args ...string)
- func NewClient() *client.Client
- func RemoveDeadTestContainers(ctx context.Context, cln *client.Client, labelname string) error
- func RemoveDuplicateTestNetworks(ctx context.Context, cln *client.Client, labelname string) error
Constants ¶
const MessyMobyLabel = "messymoby"
MessyMobyLabel is the name of a “magic” label for tagging testing-related container or network elements.
Variables ¶
This section is empty.
Functions ¶
func DockerCompose ¶
DockerCompose executes docker-compose with the specified CLI arguments, waiting for it to gracefully finish with exit code 0.
func NewClient ¶
NewClient returns a new Docker client connected to the default socket API location on the local host.
func RemoveDeadTestContainers ¶
RemoveDeadTestContainers removes dead or stopped containers. Optionally, removal can be limited to networks with a specific label name only.
func RemoveDuplicateTestNetworks ¶
RemoveDuplicateTestNetworks removes duplicate networks, that is multiple networks with the same name, yet different IDs. Optionally, removal can be limited to networks with a specific label name only.
Types ¶
This section is empty.