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
Click to show internal directories.
Click to hide internal directories.