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.
Click to show internal directories.
Click to hide internal directories.