config

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cfg

type Cfg struct {
	VaultAddr               string `env:"VAULT_ADDR" env-default:""`
	VaultSkipVerify         string `env:"VAULT_SKIP_VERIFY" env-default:"1"`
	VaultRole2Assume        string `env:"VAULT_ROLE_2_ASSUME" env-default:""`
	VaultSecretsPrefix      string `env:"VAULT_SECRETS_PREFIX" env-default:""`
	VaultTLSCachePath       string `env:"VAULT_TLS_CACHE_PATH" env-default:""`
	MaxConcurrentReconciles int    `env:"MAX_CONCURRENT_RECONCILES" env-default:"2"`
	PKIs                    PKIs   `env:"PKIS" env-default:""`
}

func Get

func Get() *Cfg

Get would get config

type PKI

type PKI struct {
	PKIPath string `json:"path"`
	PKIRole string `json:"role"`
}

type PKIs

type PKIs map[string]string

func (*PKIs) SetValue

func (s *PKIs) SetValue(pkisStr string) error

Jump to

Keyboard shortcuts

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