Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBCredential ¶
DBCredential holds credentials for a database user in postgres
type DockerPostgresOptions ¶
type DockerPostgresOptions struct { Ref string Port int ReuseExisting bool SuperUserCredential *DBCredential ContainerName string }
type DockerPostgresService ¶
type DockerPostgresService struct { ds.ContainerService // contains filtered or unexported fields }
func NewDockerPostgresService ¶
func NewDockerPostgresService(s *ds.Session, opts DockerPostgresOptions) (*DockerPostgresService, error)
func (*DockerPostgresService) Address ¶
func (dps *DockerPostgresService) Address() nat.PortBinding
func (*DockerPostgresService) ConnectionString ¶
func (dps *DockerPostgresService) ConnectionString(cred *DBCredential) string
func (*DockerPostgresService) SuperUserCredential ¶
func (dps *DockerPostgresService) SuperUserCredential() DBCredential
type PostgresService ¶
type PostgresService interface { ShutDown() error ConnectionString(cred *DBCredential) string SuperUserCredential() DBCredential Address() nat.PortBinding }
Click to show internal directories.
Click to hide internal directories.