vaultclient

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

README

vaultclient

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKV2Secret

func GetKV2Secret(kv2Path, kv2Name string) (string, error)

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

Jump to

Keyboard shortcuts

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