containers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectorOptions

func ConnectorOptions(opts ...ContainerOption) []postgresenv.ConnectorOption

Types

type Container

type Container struct {
	// contains filtered or unexported fields
}

func NewContainer

func NewContainer(
	opts ...ContainerOption,
) *Container

func (*Container) Close

func (c *Container) Close() error

func (*Container) ConnectorOptions

func (c *Container) ConnectorOptions() []postgresenv.ConnectorOption

func (*Container) Launch

func (c *Container) Launch(
	ctx context.Context,
	cfg *pgxpool.Config,
) error

type ContainerOption

type ContainerOption func(*Container)

func WithContainerCustomizers

func WithContainerCustomizers(customizers ...testcontainers.ContainerCustomizer) ContainerOption

func WithContainerNetwork

func WithContainerNetwork(containerNetwork bool) ContainerOption

func WithLogger

func WithLogger(logger *log.Logger) ContainerOption

Jump to

Keyboard shortcuts

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