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

package influxdb

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

Index

Package Files

connection_producer.go influxdb.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 Influxdb object, and runs the RPC server for the plugin

type Influxdb Uses

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

Influxdb is an implementation of Database interface

func (Influxdb) Close Uses

func (i Influxdb) Close() error

func (Influxdb) Connection Uses

func (i Influxdb) Connection(_ context.Context) (interface{}, error)

func (*Influxdb) CreateUser Uses

func (i *Influxdb) 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 Influxdb secret backend as instructed by the CreationStatement provided.

func (Influxdb) Init Uses

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

func (Influxdb) Initialize Uses

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

func (*Influxdb) RenewUser Uses

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

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

func (*Influxdb) RevokeUser Uses

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

RevokeUser attempts to drop the specified user.

func (*Influxdb) RotateRootCredentials Uses

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

RotateRootCredentials is useful when we try to change root credential

func (Influxdb) SetCredentials Uses

func (i Influxdb) 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 (*Influxdb) Type Uses

func (i *Influxdb) Type() (string, error)

Type returns the TypeName for this backend

Directories

PathSynopsis
influxdb-database-plugin

Package influxdb imports 19 packages (graph) and is imported by 2 packages. Updated 2019-07-24. Refresh now. Tools for package owners.