Help us shape the future of Go! Take the 2026 Go Developer Survey

testcontainers

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Image string
	Port  string
	Env   map[string]string
	// contains filtered or unexported fields
}

func (*Container) Start

func (c *Container) Start(ctx context.Context) (string, func(ctx context.Context), error)

func (*Container) Stop

func (c *Container) Stop(ctx context.Context) error

type TestContainerPostgreSQLDriver

type TestContainerPostgreSQLDriver struct {
}

func NewTestContainerPostgreSQLDriver

func NewTestContainerPostgreSQLDriver() *TestContainerPostgreSQLDriver

func (*TestContainerPostgreSQLDriver) Connect

func (*TestContainerPostgreSQLDriver) Disconnect

func (*TestContainerPostgreSQLDriver) IsNamespaceSupported added in v0.26.0

func (d *TestContainerPostgreSQLDriver) IsNamespaceSupported() bool

type TestContainerPostgreSQLDriverConnection

type TestContainerPostgreSQLDriverConnection struct {
	Container *Container
	Conn      *pgx.Conn
	Close     func(ctx context.Context)
}

func (*TestContainerPostgreSQLDriverConnection) AppendAuditLog

func (*TestContainerPostgreSQLDriverConnection) LockAuditLog

func (*TestContainerPostgreSQLDriverConnection) Query

func (*TestContainerPostgreSQLDriverConnection) ReadAuditLogs

func (*TestContainerPostgreSQLDriverConnection) UnlockAuditLog

func (*TestContainerPostgreSQLDriverConnection) UpsertAuditLockTable

func (*TestContainerPostgreSQLDriverConnection) UpsertAuditLogTable

type TestContainerPostgreSQLQuery

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

func (*TestContainerPostgreSQLQuery) Begin

func (*TestContainerPostgreSQLQuery) Commit

func (*TestContainerPostgreSQLQuery) Exec

func (q *TestContainerPostgreSQLQuery) Exec(ctx context.Context, query string, args ...any) error

func (*TestContainerPostgreSQLQuery) Query

func (*TestContainerPostgreSQLQuery) Rollback

Jump to

Keyboard shortcuts

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