Documentation ¶
Overview ¶
Package config provides convenience facilities for Golang-based pods to read their configuration files provided either by the environment or a custom path.
Index ¶
- type Config
- func (c *Config) Keys() []string
- func (c *Config) Read(key string) interface{}
- func (c *Config) ReadBool(key string) (bool, error)
- func (c *Config) ReadMap(key string) (*Config, error)
- func (c *Config) ReadString(key string) (string, error)
- func (c *Config) ReadStringSlice(key string) ([]string, error)
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
}
func LoadConfigFile ¶
func LoadFromEnvironment ¶
func LoadFromUnpacked ¶
func LoadFromUnpacked(unpacked map[interface{}]interface{}) *Config
Click to show internal directories.
Click to hide internal directories.