module
Version:
v0.0.0-...-6eb2448
Opens a new window with list of versions in this module.
Published: Mar 26, 2020
License: MIT
Opens a new window with license information.
README
¶
Configs
Can fetch the configuration from secret management services like vault.
Currently we support vault
Usage
func main() {
v, err := config.NewVault()
checkError(err)
config, err := v.GetConfig("auth-service")
checkError(err)
fmt.Println(config)
}
func checkError(err error) {
if err != nil {
fmt.Println(err)
os.Exit(1)
}
}
It do require the following environment variables to work
export CUTTLE_AI_CONFIG_VAULT_ADDRESS='vault.cuttle.ai'
export CUTTLE_AI_CONFIG_VAULT_TOKEN='<token-provied-to-access-vault>'
export CUTTLE_AI_CONFIG_VAULT_DEFAULT_PATH='cuttle-ai-development'
Directories
¶
Package config has the definitions and utility function required for managing configurations for the applications
|
Package config has the definitions and utility function required for managing configurations for the applications |
Package version has the version information about the application
|
Package version has the version information about the application |
Click to show internal directories.
Click to hide internal directories.