config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewVaultClient = newVaultClient

Functions

func GetSecret

func GetSecret(uri string) (string, error)

GetSecret returns a secret, e.g. from env variable. Extend as needed.

func RequireConfig

func RequireConfig(section string) map[string]interface{}

RequireConfig returns the config - panic if config file is not available

Types

type DefaultVaultLoader added in v0.3.0

type DefaultVaultLoader struct {
	*vault.Client
}

func (*DefaultVaultLoader) LoadSecretData added in v0.3.0

func (v *DefaultVaultLoader) LoadSecretData(vaultPath string) (*vault.Secret, error)

type VaultLoader added in v0.3.0

type VaultLoader interface {
	LoadSecretData(path string) (*vault.Secret, error)
}

Jump to

Keyboard shortcuts

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