Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type VaultClient ¶
type VaultClient struct { Context context.Context Client *vault.Client Url string Role string Token string Exp int64 Ttl int32 RenewThreshold int64 }
func GetInitiatedVaultClient ¶
func GetInitiatedVaultClient() *VaultClient
TODO: Remove this function, it is only used to support legacy code
func NewVaultClient ¶
func NewVaultClient(role string, url string) *VaultClient
func (VaultClient) CheckHealth ¶
func (rc VaultClient) CheckHealth() []health.Check
func (VaultClient) GetClient ¶
func (v VaultClient) GetClient() *vault.Client
func (VaultClient) Ping ¶
func (v VaultClient) Ping() bool
type VaultCredentials ¶
func (*VaultCredentials) CheckAndRenew ¶
func (vc *VaultCredentials) CheckAndRenew() bool
func (*VaultCredentials) GetUsernamePassword ¶
func (vc *VaultCredentials) GetUsernamePassword() (string, string)
func (*VaultCredentials) Init ¶
func (vc *VaultCredentials) Init(vaultpath string)
func (*VaultCredentials) IsExpired ¶
func (vc *VaultCredentials) IsExpired() bool
Click to show internal directories.
Click to hide internal directories.