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