cmdbase

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EPTypeViper = "ViperParam"
	EPTypeVault = "VaultParam"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExternalParameter

type ExternalParameter struct {
	Type  string `json:"type"`
	Viper string `json:"viper"`
	Path  string `json:"path"`
	Key   string `json:"key"`
}

type ParameterResolver

type ParameterResolver interface {
	ResolveString(param any) (string, error)
}

type SecureParameterResolver

type SecureParameterResolver struct {
	// contains filtered or unexported fields
}

func ConfigureParameterResolver

func ConfigureParameterResolver(viperCfg *viper.Viper, secretsPath string) (*SecureParameterResolver, error)

func NewSecureParameterResolver

func NewSecureParameterResolver(hcv *hv.HCVaultClient, sideVipers map[string]*viper.Viper) *SecureParameterResolver

func (*SecureParameterResolver) AddSideViper

func (spr *SecureParameterResolver) AddSideViper(name string, v *viper.Viper)

func (*SecureParameterResolver) Close

func (spr *SecureParameterResolver) Close() error

func (*SecureParameterResolver) ResolveString

func (spr *SecureParameterResolver) ResolveString(param any) (string, error)

Jump to

Keyboard shortcuts

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