db

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	API          api.API
	TokenManager auth.TokenManager
}

Client is the gateway into Vault's database secrets engine.

For more information, see https://www.vaultproject.io/docs/secrets/databases.

func (*Client) GenerateCredentials

func (db *Client) GenerateCredentials(ctx context.Context, role string) (*Credentials, error)

GenerateCredentials generates a new set of dynamic credentials based on the role.

type Credentials

type Credentials struct {
	Username string
	Password string
}

Credentials contains secret information for connecting to a database.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL