docker

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package docker contains resources needed to setup docker containers for M3 tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachToExistingContainers

func AttachToExistingContainers(
	coordinatorContainerName string,
	dbNodesContainersNames []string,
) (resources.M3Resources, error)

AttachToExistingContainers attaches docker API to an existing coordinator and one or more dbnode containers.

func SetupSingleM3DBNode

func SetupSingleM3DBNode(opts ...SetupOptions) (resources.M3Resources, error)

SetupSingleM3DBNode creates docker resources representing a setup with a single DB node.

Types

type SetupOptions

type SetupOptions func(*setupOptions)

SetupOptions is a setup option.

func WithCoordinatorImage

func WithCoordinatorImage(name, tag string) SetupOptions

WithCoordinatorImage sets an option to use an image name and tag for the coordinator.

func WithDBNodeImage

func WithDBNodeImage(name, tag string) SetupOptions

WithDBNodeImage sets an option to use an image name and tag for the DB node.

func WithExistingCluster

func WithExistingCluster(dbNodeContainerName, coordinatorContainerName string) SetupOptions

WithExistingCluster sets the names of already running containers dbnode and coordinator containers that should be used for tests.

Jump to

Keyboard shortcuts

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