Documentation
¶
Index ¶
- type DbConf
- func (c *DbConf) Database() string
- func (c *DbConf) Flag(name string, value ...string) *DbConf
- func (c *DbConf) Mapped(mappedHost string, mappedPort int) *DbConf
- func (c *DbConf) MappedHost() string
- func (c *DbConf) MappedPort() int
- func (c *DbConf) Password() string
- func (c *DbConf) Port() int
- func (c *DbConf) String() string
- func (c *DbConf) Username() string
- type PostgresContainerConf
- type PostgresStrategy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DbConf ¶
type DbConf struct {
// contains filtered or unexported fields
}
DbConf holds the database configuration information.
func (*DbConf) MappedHost ¶
MappedHost make the mapped host available fo read
func (*DbConf) MappedPort ¶
MappedPort make the mapped port available for read
type PostgresContainerConf ¶
PostgresContainerConf adds and image name to a DbConf.
type PostgresStrategy ¶
PostgresStrategy a wait.Strategy to wait on Postgres to start.
func NewPostgresStrategy ¶
func NewPostgresStrategy(port nat.Port, dbConf *PostgresContainerConf) *PostgresStrategy
NewPostgresStrategy constructs a default host port strategy
func (*PostgresStrategy) WaitUntilReady ¶
func (hp *PostgresStrategy) WaitUntilReady(ctx context.Context, target wait.StrategyTarget) (err error)
WaitUntilReady implements Strategy.WaitUntilReady
func (*PostgresStrategy) WithStartupTimeout ¶
func (hp *PostgresStrategy) WithStartupTimeout(startupTimeout time.Duration) *PostgresStrategy
WithStartupTimeout sets startupTimeout
Click to show internal directories.
Click to hide internal directories.