redshift

package
v1.6.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2021 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (interface{}, error)

New implements builtinplugins.BuiltinFactory Redshift implements (mostly) a postgres 8 interface, and part of that is under the hood, it's lower-casing the usernames.

Types

type RedShift

type RedShift struct {
	*connutil.SQLConnectionProducer
}

func (*RedShift) DeleteUser

DeleteUser supports both default and custom statements to delete a user.

func (*RedShift) Initialize

Initialize must be called on each new RedShift struct before use. It uses the connutil.SQLConnectionProducer's Init function to do all the lifting.

func (*RedShift) NewUser

NewUser creates a new user in the database. There is no default statement for creating users, so one must be specified in the plugin config. Generated usernames are of the form v-{display-name}-{role-name}-{UUID}-{timestamp}

func (*RedShift) Type

func (r *RedShift) Type() (string, error)

func (*RedShift) UpdateUser

UpdateUser can update the expiration or the password of a user, or both. The updates all happen in a single transaction, so they will either all succeed or all fail. Both updates support both default and custom statements.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL