docker

package
v0.0.0-...-c4114b5 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 8 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(id string) []byte

DumpContainerLogs outputs logs from the running docker container.

func StopContainer

func StopContainer(id string) error

StopContainer stops and removes the specified container.

Types

type Container

type Container struct {
	Name     string
	HostPort string
}

Container tracks information about the docker container started for tests.

func StartContainer

func StartContainer(image string, name string, port string, dockerArgs []string, appArgs []string) (Container, error)

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