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) MarshalLogObject ¶
func (c *Config) MarshalLogObject(encoder zapcore.ObjectEncoder) error
MarshalLogObject implements zapcore.ObjectMarshaler.
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 WithYAMLServiceSpecificationFile ¶
WithYAMLServiceSpecificationFile sets the YAML service specification file to load environment variables from.
Click to show internal directories.
Click to hide internal directories.