redshift

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: MPL-2.0 Imports: 13 Imported by: 4

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
	// contains filtered or unexported fields
}

func (*RedShift) DeleteUser added in v1.6.0

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

func (*RedShift) Initialize added in v1.6.0

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 added in v1.6.0

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 added in v1.6.0

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