Documentation ¶
Index ¶
- func New() (interface{}, error)
- type Cassandra
- func (c Cassandra) Close() error
- func (c Cassandra) Connection(ctx context.Context) (interface{}, error)
- func (c *Cassandra) DeleteUser(ctx context.Context, req dbplugin.DeleteUserRequest) (dbplugin.DeleteUserResponse, error)
- func (c *Cassandra) Initialize(ctx context.Context, req dbplugin.InitializeRequest) (dbplugin.InitializeResponse, error)
- func (c *Cassandra) NewUser(ctx context.Context, req dbplugin.NewUserRequest) (dbplugin.NewUserResponse, error)
- func (c *Cassandra) Type() (string, error)
- func (c *Cassandra) UpdateUser(ctx context.Context, req dbplugin.UpdateUserRequest) (dbplugin.UpdateUserResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cassandra ¶
type Cassandra struct {
// contains filtered or unexported fields
}
Cassandra is an implementation of Database interface
func (Cassandra) Connection ¶
func (*Cassandra) DeleteUser ¶
func (c *Cassandra) DeleteUser(ctx context.Context, req dbplugin.DeleteUserRequest) (dbplugin.DeleteUserResponse, error)
DeleteUser attempts to drop the specified user.
func (*Cassandra) Initialize ¶
func (c *Cassandra) Initialize(ctx context.Context, req dbplugin.InitializeRequest) (dbplugin.InitializeResponse, error)
func (*Cassandra) NewUser ¶
func (c *Cassandra) NewUser(ctx context.Context, req dbplugin.NewUserRequest) (dbplugin.NewUserResponse, error)
NewUser generates the username/password on the underlying Cassandra secret backend as instructed by the statements provided.
func (*Cassandra) UpdateUser ¶
func (c *Cassandra) UpdateUser(ctx context.Context, req dbplugin.UpdateUserRequest) (dbplugin.UpdateUserResponse, error)
Click to show internal directories.
Click to hide internal directories.