databasecredhelper

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VaultDBCredentials

type VaultDBCredentials struct {
	VaultClient *vaultclient.VaultClient
	Username    string
	Password    string
	VaultPath   string
	MountPath   string
	Exp         int64
	// contains filtered or unexported fields
}

func NewVaultDBCredentials

func NewVaultDBCredentials(vcli *vaultclient.VaultClient, vaultpath string, mountpath string) *VaultDBCredentials

func (*VaultDBCredentials) CheckAndRenew

func (dbc *VaultDBCredentials) CheckAndRenew() bool

func (*VaultDBCredentials) GetCredentials

func (dbc *VaultDBCredentials) GetCredentials() (string, string)

func (*VaultDBCredentials) GetUsernamePassword deprecated

func (dbc *VaultDBCredentials) GetUsernamePassword() (string, string)

Deprecated: Use GetCredentials instead

func (*VaultDBCredentials) IsExpired

func (dbc *VaultDBCredentials) IsExpired() bool

Jump to

Keyboard shortcuts

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