Documentation ¶
Overview ¶
Package postgres provides an interface to work Postgres application.
Index ¶
- Constants
- func CreateUser(c *resources.AppConfig, user resources.EphemeralUser) error
- func List(r runners.Runner, label string) ([]string, error)
- func ResetAllPasswords(c *resources.AppConfig, whitelistUsers []string) error
- func Start(r runners.Runner, c *resources.AppConfig) error
- func Stop(r runners.Runner, p *resources.Pool, name string) error
Constants ¶
View Source
const ResetPasswordsQuery = `` /* 326-byte string literal not displayed */
ResetPasswordsQuery provides a template for a reset password query.
View Source
const ResetPasswordsQueryWhere = ` and rolname not in (%s)`
ResetPasswordsQueryWhere provides a template for a reset password where clause.
Variables ¶
This section is empty.
Functions ¶
func CreateUser ¶
func CreateUser(c *resources.AppConfig, user resources.EphemeralUser) error
CreateUser defines a method for creation of Postgres user.
func ResetAllPasswords ¶
ResetAllPasswords defines a method for resetting password of all Postgres users.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.