Documentation
¶
Index ¶
Constants ¶
View Source
const ( PostgresType = "postgres" RDSReplicationRole = "rds_replication" RDSSuperUserRole = "rds_superuser" )
Variables ¶
This section is empty.
Functions ¶
func PostgresURI ¶
Types ¶
type Client ¶
type Client interface {
CreateDatabase(dbName string) (bool, error)
CreateUser(username, role, userPassword string) (bool, error)
CreateGroup(dbName, username string) (bool, error)
CreateDefaultExtentions(dbName string) error
RenameUser(oldUsername string, newUsername string) error
UpdateUser(oldUsername, newUsername, rolename, password string) error
UpdatePassword(username string, userPassword string) error
ManageReplicationRole(username string, enableReplicationRole bool) error
ManageSuperUserRole(username string, enableSuperUser bool) error
ManageCreateRole(username string, enableCreateRole bool) error
ManageSystemFunctions(dbName string, functions map[string]string) error
DBCloser
}
type Config ¶
type Config struct {
Log logr.Logger
DBType string // type of DB, only postgres
// connection string to connect to DB ie. postgres://username:password@1.2.3.4:5432/mydb?sslmode=verify-full
// FQDN to connect to database including username and password if not using an IAM enabled user
DSN string
// UseIAM bool
UseIAM bool // attempt to connect with IAM user provided in DSN
}
type CredentialsProviderFunc ¶
type CredentialsProviderFunc aws.CredentialsProviderFunc
Click to show internal directories.
Click to hide internal directories.