INNER CODE UNIT · Go
init
bank-vaults/bank-vaults · cmd/bank-vaults/main.go:186
func init() {
c.SetEnvPrefix("bank_vaults")
replacer := strings.NewReplacer("-", "_")
c.SetEnvKeyReplacer(replacer)
c.AutomaticEnv()
// Select mode
configStringVar(
rootCmd,
cfgMode,
cfgModeValueK8S,
fmt.Sprintf(`Select the mode to use:
'%s' => Google Cloud Storage using Google KMS encryption;
'%s' => AWS S3 Object Storage using AWS KMS encryption;
'%s' => Azure Key Vault secret;
'%s' => Alibaba OSS using Alibaba KMS encryption;
'%s' => Remote Vault;
'%s' => Oracle KMS;