Documentation ¶
Index ¶
- func New(lowercaseUsername bool) func() (interface{}, error)
- func Run(apiTLSConfig *api.TLSConfig) error
- type RedShift
- func (r *RedShift) CreateUser(ctx context.Context, statements dbplugin.Statements, ...) (username string, password string, err error)
- func (r *RedShift) RenewUser(ctx context.Context, statements dbplugin.Statements, username string, ...) error
- func (r *RedShift) RevokeUser(ctx context.Context, statements dbplugin.Statements, username string) error
- func (r *RedShift) RotateRootCredentials(ctx context.Context, statements []string) (map[string]interface{}, error)
- func (r *RedShift) SetCredentials(ctx context.Context, statements dbplugin.Statements, ...) (username, password string, err error)
- func (r *RedShift) Type() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RedShift ¶
type RedShift struct { *connutil.SQLConnectionProducer credsutil.CredentialsProducer }
func (*RedShift) CreateUser ¶
func (*RedShift) RevokeUser ¶
func (*RedShift) RotateRootCredentials ¶
func (*RedShift) SetCredentials ¶
func (r *RedShift) SetCredentials(ctx context.Context, statements dbplugin.Statements, staticUser dbplugin.StaticUserConfig) (username, password string, err error)
SetCredentials uses provided information to set/create a user in the database. Unlike CreateUser, this method requires a username be provided and uses the name given, instead of generating a name. This is used for creating and setting the password of static accounts, as well as rolling back passwords in the database in the event an updated database fails to save in Vault's storage.
Click to show internal directories.
Click to hide internal directories.