testcontainers

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 14 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

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