testhelpers

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalStackContainer

type LocalStackContainer struct {
	Config aws.Config

	*localstack.LocalStackContainer
}

LocalStackContainer contains a docker instance of local stack and the aws configuration where is exposed.

func CreateLocalStackContainer

func CreateLocalStackContainer(ctx context.Context) (*LocalStackContainer, error)

CreateLocalStackContainer starts a local stack container with SNS and SQS services, and returns its instance.

type PostgresContainer

type PostgresContainer struct {
	*postgres.PostgresContainer
	ConnectionString string
}

PostgresContainer contains a docker instance of postgres and the url where is exposed.

func CreatePostgresContainer

func CreatePostgresContainer(ctx context.Context) (*PostgresContainer, error)

CreatePostgresContainer starts a postgres container and returns its instance.

Jump to

Keyboard shortcuts

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