vault: Index | Files | Directories

package hana

import ""


Package Files


func New Uses

func New() (interface{}, error)

New implements builtinplugins.BuiltinFactory

func Run Uses

func Run(apiTLSConfig *api.TLSConfig) error

Run instantiates a HANA object, and runs the RPC server for the plugin

type HANA Uses

type HANA struct {

HANA is an implementation of Database interface

func (*HANA) CreateUser Uses

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 Uses

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 Uses

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

func (*HANA) RotateRootCredentials Uses

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

RotateRootCredentials is not currently supported on HANA

func (*HANA) Type Uses

func (h *HANA) Type() (string, error)

Type returns the TypeName for this backend



Package hana imports 14 packages (graph) and is imported by 3 packages. Updated 2019-07-06. Refresh now. Tools for package owners.