containers

package
v0.0.0-...-abf169d Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComposeUp

func ComposeUp(t *testing.T) compose.ComposeStack

ComposeUp starts a docker-compose stack and returns the stack object.

Types

type Agent

type Agent struct {
	URL string
}

func NewAgent

func NewAgent(t *testing.T, clusterSize int) []Agent

NewAgent runs an Agent container The caller is responsible for stopping the container when done.

type Redis

type Redis struct {
	URL    string
	Client *goredis.Client
	Stop   func()
}

func NewRedis

func NewRedis(t *testing.T) Redis

NewRedis runs a Redis container and returns the URL and a client to interact with it. The caller is responsible for stopping the container when done.

type S3

type S3 struct {
	URL string
	// From another container
	InternalURL     string
	AccessKeyId     string
	AccessKeySecret string
	Stop            func()
}

func NewS3

func NewS3(t *testing.T, networks ...string) S3

NewS3 runs a minion container and returns the URL The caller is responsible for stopping the container when done.

Jump to

Keyboard shortcuts

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