Documentation ¶
Index ¶
- func New() (interface{}, error)
- func Run(apiTLSConfig *api.TLSConfig) error
- type HANA
- func (h *HANA) CreateUser(ctx context.Context, statements dbplugin.Statements, ...) (username string, password string, err error)
- func (h *HANA) RenewUser(ctx context.Context, statements dbplugin.Statements, username string, ...) error
- func (h *HANA) RevokeUser(ctx context.Context, statements dbplugin.Statements, username string) error
- func (h *HANA) Type() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HANA ¶
type HANA struct { connutil.ConnectionProducer credsutil.CredentialsProducer }
HANA is an implementation of Database interface
func (*HANA) CreateUser ¶
func (h *HANA) 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 HANA secret backend as instructed by the CreationStatement provided.
func (*HANA) RenewUser ¶
func (h *HANA) RenewUser(ctx context.Context, statements dbplugin.Statements, username string, expiration time.Time) error
Renewing hana user just means altering user's valid until property
func (*HANA) RevokeUser ¶
func (h *HANA) RevokeUser(ctx context.Context, statements dbplugin.Statements, username string) error
Revoking hana user will deactivate user and try to perform a soft drop
Click to show internal directories.
Click to hide internal directories.