Documentation ¶
Overview ¶
Package cloudconfig provides primitives for loading configuration. Based on github.com/kelseyhightower/envconfig, with modifications.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config is a config.
func (*Config) LogValue ¶ added in v0.77.0
LogValue implements slog.LogValuer.
func (*Config) PrintUsage ¶
PrintUsage prints usage of the config to the provided io.Writer.
type Option ¶
type Option func(*Config)
Option is a configuration option.
func WithAdditionalSpec ¶
WithAdditionalSpec includes an additional specification in the config loading.
func WithEnvPrefix ¶
WithEnvPrefix sets the environment prefix to use for config loading.
func WithOptionalSecrets ¶ added in v0.26.0
func WithOptionalSecrets() Option
WithOptionalSecrets overrides all secrets to be optional.
func WithYAMLServiceSpecificationFile ¶
WithYAMLServiceSpecificationFile sets the YAML service specification file to load environment variables from.
Click to show internal directories.
Click to hide internal directories.