vault: github.com/hashicorp/vault/plugins/database/cassandra Index | Files | Directories

package cassandra

import "github.com/hashicorp/vault/plugins/database/cassandra"

Index

Package Files

cassandra.go connection_producer.go

func New Uses

func New() (interface{}, error)

New returns a new Cassandra instance

func Run Uses

func Run(apiTLSConfig *api.TLSConfig) error

Run instantiates a Cassandra object, and runs the RPC server for the plugin

type Cassandra Uses

type Cassandra struct {
    credsutil.CredentialsProducer
    // contains filtered or unexported fields
}

Cassandra is an implementation of Database interface

func (Cassandra) Close Uses

func (c Cassandra) Close() error

func (Cassandra) Connection Uses

func (c Cassandra) Connection(ctx context.Context) (interface{}, error)

func (*Cassandra) CreateUser Uses

func (c *Cassandra) CreateUser(ctx context.Context, statements dbplugin.Statements, usernameConfig dbplugin.UsernameConfig, expiration time.Time) (username string, password string, err error)

CreateUser generates the username/password on the underlying Cassandra secret backend as instructed by the CreationStatement provided.

func (Cassandra) Init Uses

func (c Cassandra) Init(ctx context.Context, conf map[string]interface{}, verifyConnection bool) (map[string]interface{}, error)

func (Cassandra) Initialize Uses

func (c Cassandra) Initialize(ctx context.Context, conf map[string]interface{}, verifyConnection bool) error

func (*Cassandra) RenewUser Uses

func (c *Cassandra) RenewUser(ctx context.Context, statements dbplugin.Statements, username string, expiration time.Time) error

RenewUser is not supported on Cassandra, so this is a no-op.

func (*Cassandra) RevokeUser Uses

func (c *Cassandra) RevokeUser(ctx context.Context, statements dbplugin.Statements, username string) error

RevokeUser attempts to drop the specified user.

func (*Cassandra) RotateRootCredentials Uses

func (c *Cassandra) RotateRootCredentials(ctx context.Context, statements []string) (map[string]interface{}, error)

func (Cassandra) SetCredentials Uses

func (c Cassandra) 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.

func (*Cassandra) Type Uses

func (c *Cassandra) Type() (string, error)

Type returns the TypeName for this backend

Directories

PathSynopsis
cassandra-database-plugin

Package cassandra imports 19 packages (graph) and is imported by 3 packages. Updated 2019-10-18. Refresh now. Tools for package owners.