docker

package
v0.0.0-...-c29186b Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package docker provides support for starting and stopping docker containers for running tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpContainerLogs

func DumpContainerLogs(t *testing.T, id string)

DumpContainerLogs outputs logs from the running docker container.

func StopContainer

func StopContainer(t *testing.T, id string)

StopContainer stops and removes the specified container.

Types

type Container

type Container struct {
	ID   string
	Host string // IP:Port
}

Container tracks information about the docker container started for tests.

func StartContainer

func StartContainer(t *testing.T, image string, port string, args ...string) *Container

StartContainer starts the specified container for running tests.

Jump to

Keyboard shortcuts

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