databasecredhelper

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

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
}

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

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

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