Documentation
¶
Index ¶
- func WithCmd(cmd []string) tc.CustomizeRequestOption
- func WithConfigFile(cfg string) tc.CustomizeRequestOption
- func WithDatabase(dbName string) tc.CustomizeRequestOption
- func WithEntrypoint(entrypoint []string) tc.CustomizeRequestOption
- func WithEnv(env map[string]string) tc.CustomizeRequestOption
- func WithEnvValue(key, value string) tc.CustomizeRequestOption
- func WithExposedPorts(ports []string) tc.CustomizeRequestOption
- func WithImage(image string) tc.CustomizeRequestOption
- func WithInitScripts(scripts ...string) tc.CustomizeRequestOption
- func WithLifecycleHooks(lifecycleHooks []tc.ContainerLifecycleHooks) tc.CustomizeRequestOption
- func WithPassword(password string) tc.CustomizeRequestOption
- func WithUsername(user string) tc.CustomizeRequestOption
- type PostgresContainer
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 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 ¶
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
Click to show internal directories.
Click to hide internal directories.