secrets

package
v0.0.0-...-2152d60 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToUpperOrNotToUpper

func ToUpperOrNotToUpper(something string, currentUpper *bool) string

Types

type Result

type Result map[string]interface{}

Result holds the result of all the secrets pulled from Vault

func (Result) Add

func (result Result) Add(key string, value interface{}, prefix string, upperCase bool)

Add will add a new secret to the Result

func (Result) ToENV

func (result Result) ToENV() string

ToENV will format a map[string]string to a env file

export KEY='value'

func (Result) ToJSON

func (result Result) ToJSON() string

ToJSON will format a map[string]interface{} to json

func (Result) ToK8sSecret

func (result Result) ToK8sSecret() string

ToK8sSecret exports secrets as raw key values

func (Result) ToYAML

func (result Result) ToYAML() string

ToYaml exports secrets as yaml

Jump to

Keyboard shortcuts

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