Documentation ¶
Index ¶
- Constants
- func AddExpander(name string, priority int64, e Expander)
- func EnvKey(sectionName string, keyName string) string
- func ExpandVar(s string) (string, error)
- func GetExpanderRegex() *regexp.Regexp
- func PathExists(path string) bool
- func RedactedURL(value string) (string, error)
- func RedactedValue(key, value string) string
- type Config
- func (config *Config) GetSection(name string) (*Section, error)
- func (config *Config) Load(commandLineProps map[string]string, specifiedConfigFile string) error
- func (config *Config) LogConfigSources()
- func (config *Config) NewSection(name string) (*Section, error)
- func (config *Config) Section(name string) *Section
- func (config *Config) Sections() []*ini.Section
- type Expander
- type Section
Constants ¶
View Source
const (
RedactedPassword = "*********"
)
Variables ¶
This section is empty.
Functions ¶
func AddExpander ¶
func GetExpanderRegex ¶
Slightly hacky function to avoid code duplication. If this is eventually called in multiple places, consider refactoring or potentially adding more general helper functions to this package
func PathExists ¶
func RedactedURL ¶
func RedactedValue ¶
Types ¶
type Config ¶
func (*Config) LogConfigSources ¶
func (config *Config) LogConfigSources()
Click to show internal directories.
Click to hide internal directories.