Documentation ¶
Index ¶
- Constants
- func HasToken(str string) bool
- func ReplaceToken(placeholder string, secretValue string, str string) (string, error)
- func ReplaceTokens(secretMap map[string]string, str string) (string, error)
- type Vault
- func (v *Vault) OpenVault() error
- func (v *Vault) ReadAllSecrets(secretPath string) (map[string]interface{}, error)
- func (v *Vault) ReadAllSecretsAsStringMap(secretPath string) (map[string]string, error)
- func (v *Vault) ReadSecret(key string, secretPath string) (string, error)
- func (v *Vault) ReadSecrets(keys []string, secretPath string) (map[string]string, error)
Constants ¶
View Source
const DefaultTemplateName = "secret-template"
View Source
const (
JSONDataAttr = "data"
)
View Source
const TokenPattern = "{{(.*?)}}"
Variables ¶
This section is empty.
Functions ¶
func ReplaceToken ¶
Types ¶
type Vault ¶
func (*Vault) ReadAllSecrets ¶
func (*Vault) ReadAllSecretsAsStringMap ¶
func (*Vault) ReadSecret ¶
Click to show internal directories.
Click to hide internal directories.