Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PortMapping ¶
type PostgresConfig ¶
type PostgresDBContainer ¶
type PostgresDBContainer struct { testcontainers.Container URI string UserName string Password string Port string Config PostgresConfig // contains filtered or unexported fields }
func NewPostgresContainer ¶
func NewPostgresContainer( ctx context.Context, log Logging, config PostgresConfig, ) (*PostgresDBContainer, error)
NewPostgresContainer returns a postgres container for use in integration tests or other things
Guidelines:
- container.Cleanup should always be called at the end of execution, this will shutdown the container and remove what was done inside it.
Click to show internal directories.
Click to hide internal directories.