Documentation ¶
Overview ¶
Package psqldocker provides functions to start, stop and configure a PostgreSQL docker container. The purpose of this package is mainly for testing.
The docker container is created programatically using the github.com/ory/dockertest package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
Container represents a Docker container running a PostgreSQL image.
func NewContainer ¶
NewContainer starts a new psql database in a docker container.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option configures an BTC Node Docker.
func WithContainerName ¶
WithContainerName configures the PSQL Container Name, if empty, a random one will be picked.
func WithDBPort ¶
WithDBPort sets database port running in the container, default 5432.
Click to show internal directories.
Click to hide internal directories.