v1.1.0 Latest Latest

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

Go to latest
Published: Mar 18, 2019 License: MPL-2.0 Imports: 20 Imported by: 0




This section is empty.


This section is empty.


func New

func New() (interface{}, error)

New returns a new Cassandra instance

func Run

func Run(apiTLSConfig *api.TLSConfig) error

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


type Cassandra

type Cassandra struct {
	// contains filtered or unexported fields

Cassandra is an implementation of Database interface

func (Cassandra) Close added in v0.10.0

func (c Cassandra) Close() error

func (Cassandra) Connection added in v0.10.0

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

func (*Cassandra) CreateUser

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 added in v0.10.0

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

func (Cassandra) Initialize added in v0.10.0

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

func (*Cassandra) RenewUser

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

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

RevokeUser attempts to drop the specified user.

func (*Cassandra) RotateRootCredentials added in v0.10.0

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

func (*Cassandra) Type

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

Type returns the TypeName for this backend


Path Synopsis

Jump to

Keyboard shortcuts

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