docker

package
v0.0.0-...-51ed351 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: Apache-2.0 Imports: 6 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 dumps the logs of the container with the given ID.

func StopContainer

func StopContainer(id string) error

StopContainer stops and removes the docker container with the given ID.

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(image string, port string, args ...string) (*Container, error)

StartContainer starts a docker container with the given image name and returns the container ID.

Jump to

Keyboard shortcuts

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