Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKV2Secret ¶
GetKV2Secret returns the contents of a KV2 secret as a JSON string
func RenewToken ¶
func RenewToken()
RenewToken renews the Vault token every 10 seconds and logs the time remaining for each renewal
Types ¶
type KV2Secret ¶
type KV2Secret struct { RequestID string `json:"request_id"` LeaseID string `json:"lease_id"` LeaseDuration int `json:"lease_duration"` Renewable bool `json:"renewable"` Data map[string]interface{} `json:"data"` Warnings []string `json:"warnings"` }
KV2Secret is the structure for a KV2 secret
Click to show internal directories.
Click to hide internal directories.