Documentation
¶
Index ¶
- func ConfigureEnvVars(vip *v.Viper, envPrefix string)
- func InitializeDefaultViper(defaultValues map[string]any, path string) (*v.Viper, error)
- func NewViper(path string) *v.Viper
- func NewViperE(path string) (*v.Viper, error)
- func PersistViper(v *v.Viper) error
- func ProfileEnvPrefix(profile string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureEnvVars ¶ added in v0.4.2
ConfigureEnvVars configures a Viper instance to read environment variables with the specified prefix (e.g., "kongctl" or "kongctl_default")
func InitializeDefaultViper ¶
InitializeDefaultViper initializes a viper instance with default values and a path to a file If the file does not exist, it will be created with the default values
func PersistViper ¶
func ProfileEnvPrefix ¶ added in v0.4.2
ProfileEnvPrefix converts a profile name to its environment variable prefix. For example, "team-a" becomes "KONGCTL_TEAM_A".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.