docker

package
v0.0.0-...-35a4376 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CockroachAddress

func CockroachAddress(ctx context.Context, containers ...testcontainers.Container) (string, error)

func CockroachAddressInTest

func CockroachAddressInTest(ctx context.Context, tb testing.TB, containers ...testcontainers.Container) string

func CockroachContainer

func CockroachContainer(ctx context.Context, networkName string) (testcontainers.Container, error)

func ContainerAddress

func ContainerAddress(ctx context.Context, container testcontainers.Container) (string, error)

func ContainerAddressInTest

func ContainerAddressInTest(ctx context.Context, tb testing.TB, container testcontainers.Container) string

func InitDocker

func InitDocker(
	ctx context.Context,
	containerOptions ...ContainerOption,
) ([]testcontainers.Container, func() error, error)

func InitDockerInTest

func InitDockerInTest(
	ctx context.Context,
	tb testing.TB,
	containerOptions ...ContainerOption,
) []testcontainers.Container

func KafkaAddress

func KafkaAddress(ctx context.Context, containers ...testcontainers.Container) (string, error)

func KafkaAddressInTest

func KafkaAddressInTest(ctx context.Context, tb testing.TB, containers ...testcontainers.Container) string

func KafkaContainer

func KafkaContainer(ctx context.Context, networkName string) (testcontainers.Container, error)

func NatsAddress

func NatsAddress(ctx context.Context, containers ...testcontainers.Container) (string, error)

func NatsAddressInTest

func NatsAddressInTest(ctx context.Context, tb testing.TB, containers ...testcontainers.Container) string

func NatsAddressWithProtocol

func NatsAddressWithProtocol(address string) string

func NatsContainer

func NatsContainer(ctx context.Context, networkName string) (testcontainers.Container, error)

func PostgresAddress

func PostgresAddress(ctx context.Context, containers ...testcontainers.Container) (string, error)

func PostgresAddressInTest

func PostgresAddressInTest(ctx context.Context, tb testing.TB, containers ...testcontainers.Container) string

func PostgresContainer

func PostgresContainer(ctx context.Context, networkName string) (testcontainers.Container, error)

func PostgresDatabaseDSN

func PostgresDatabaseDSN(address, databaseName string) string

func RabbitMQAddress

func RabbitMQAddress(ctx context.Context, containers ...testcontainers.Container) (string, error)

func RabbitMQAddressInTest

func RabbitMQAddressInTest(ctx context.Context, tb testing.TB, containers ...testcontainers.Container) string

func RabbitMQAddressWithProtocol

func RabbitMQAddressWithProtocol(address string) string

func RabbitMQContainer

func RabbitMQContainer(ctx context.Context, networkName string) (testcontainers.Container, error)

func RedisAddress

func RedisAddress(ctx context.Context, containers ...testcontainers.Container) (string, error)

func RedisAddressInTest

func RedisAddressInTest(ctx context.Context, tb testing.TB, containers ...testcontainers.Container) string

func RedisContainer

func RedisContainer(ctx context.Context, networkName string) (testcontainers.Container, error)

Types

type ContainerOption

type ContainerOption func(context.Context, string) (testcontainers.Container, error)

Jump to

Keyboard shortcuts

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