docker

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithCmd

func WithCmd(cmd []string) tc.CustomizeRequestOption

func WithConfigFile

func WithConfigFile(cfg string) tc.CustomizeRequestOption

func WithDatabase

func WithDatabase(dbName string) tc.CustomizeRequestOption

func WithEntrypoint

func WithEntrypoint(entrypoint []string) tc.CustomizeRequestOption

func WithEnv

func WithEnv(env map[string]string) tc.CustomizeRequestOption

func WithEnvValue

func WithEnvValue(key, value string) tc.CustomizeRequestOption

func WithExposedPorts

func WithExposedPorts(ports []string) tc.CustomizeRequestOption

func WithImage

func WithImage(image string) tc.CustomizeRequestOption

func WithInitScripts

func WithInitScripts(scripts ...string) tc.CustomizeRequestOption

func WithLifecycleHooks

func WithLifecycleHooks(lifecycleHooks []tc.ContainerLifecycleHooks) tc.CustomizeRequestOption

func WithPassword

func WithPassword(password string) tc.CustomizeRequestOption

func WithUsername

func WithUsername(user string) tc.CustomizeRequestOption

Types

type PostgresContainer

type PostgresContainer struct {
	tc.Container
	// contains filtered or unexported fields
}

func RunContainer

func RunContainer(opts ...tc.ContainerCustomizer) (*PostgresContainer, error)

func (*PostgresContainer) Cleanup

func (p *PostgresContainer) Cleanup() error

func (*PostgresContainer) Host

func (p *PostgresContainer) Host() string

func (*PostgresContainer) Name

func (p *PostgresContainer) Name() string

func (*PostgresContainer) Password

func (p *PostgresContainer) Password() string

func (*PostgresContainer) Port

func (p *PostgresContainer) Port() int

func (*PostgresContainer) User

func (p *PostgresContainer) User() string

Jump to

Keyboard shortcuts

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