containersx

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package containersx provides a wrapper around creating testcontainers that are used throughout the ecosystem

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBContainer

type DBContainer struct {
	Container testcontainers.Container
	URI       string
}

DBContainer represents a testcontainer running a database with a URI to connect to it

func NewCockroachDB

func NewCockroachDB(ctx context.Context, img string) (*DBContainer, error)

NewCockroachDB will return a new DBContainer backed by cockroachdb

func NewPostgresDB

func NewPostgresDB(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*DBContainer, error)

NewPostgresDB will return a new DBContainer backed by postgres

Jump to

Keyboard shortcuts

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