Documentation ¶
Index ¶
- func New() (interface{}, error)
- func Run(apiTLSConfig *api.TLSConfig) error
- type Influxdb
- func (i Influxdb) Close() error
- func (i Influxdb) Connection(_ context.Context) (interface{}, error)
- func (i *Influxdb) CreateUser(ctx context.Context, statements dbplugin.Statements, ...) (username string, password string, err error)
- func (i Influxdb) Init(ctx context.Context, conf map[string]interface{}, verifyConnection bool) (map[string]interface{}, error)
- func (i Influxdb) Initialize(ctx context.Context, conf map[string]interface{}, verifyConnection bool) error
- func (i *Influxdb) RenewUser(ctx context.Context, statements dbplugin.Statements, username string, ...) error
- func (i *Influxdb) RevokeUser(ctx context.Context, statements dbplugin.Statements, username string) error
- func (i *Influxdb) RotateRootCredentials(ctx context.Context, statements []string) (map[string]interface{}, error)
- func (i *Influxdb) Type() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Influxdb ¶
type Influxdb struct { credsutil.CredentialsProducer // contains filtered or unexported fields }
Influxdb is an implementation of Database interface
func (Influxdb) Connection ¶
func (*Influxdb) CreateUser ¶
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) Initialize ¶
func (*Influxdb) RenewUser ¶
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 ¶
func (i *Influxdb) RevokeUser(ctx context.Context, statements dbplugin.Statements, username string) error
RevokeUser attempts to drop the specified user.
Click to show internal directories.
Click to hide internal directories.