Documentation ¶
Index ¶
- Variables
- func AToInt(s string) (int, error)
- func AToUint(s string) (uint, error)
- func Get(key string) string
- func ObtainIntRangeValidator(min int, max int) auconfigapi.ConfigValidationFunc
- func ObtainIsBooleanValidator() auconfigapi.ConfigValidationFunc
- func ObtainIsRegexValidator() auconfigapi.ConfigValidationFunc
- func ObtainNotEmptyValidator() auconfigapi.ConfigValidationFunc
- func ObtainPatternValidator(pattern string) auconfigapi.ConfigValidationFunc
- func ObtainSingleCharacterValidator() auconfigapi.ConfigValidationFunc
- func ObtainUintRangeValidator(min uint, max uint) auconfigapi.ConfigValidationFunc
- func Read() error
- func ReadYaml(filename string) error
- func Set(key string, value string)
- func Setup(items []auconfigapi.ConfigItem, warnFunc auconfigapi.ConfigWarnFunc) error
- func Validate() error
Constants ¶
This section is empty.
Variables ¶
View Source
var LocalConfigFileName = "local-config.yaml"
Functions ¶
func ObtainIntRangeValidator ¶
func ObtainIntRangeValidator(min int, max int) auconfigapi.ConfigValidationFunc
func ObtainIsBooleanValidator ¶ added in v0.2.0
func ObtainIsBooleanValidator() auconfigapi.ConfigValidationFunc
func ObtainIsRegexValidator ¶ added in v0.2.0
func ObtainIsRegexValidator() auconfigapi.ConfigValidationFunc
func ObtainNotEmptyValidator ¶
func ObtainNotEmptyValidator() auconfigapi.ConfigValidationFunc
func ObtainPatternValidator ¶
func ObtainPatternValidator(pattern string) auconfigapi.ConfigValidationFunc
func ObtainSingleCharacterValidator ¶ added in v0.2.0
func ObtainSingleCharacterValidator() auconfigapi.ConfigValidationFunc
func ObtainUintRangeValidator ¶
func ObtainUintRangeValidator(min uint, max uint) auconfigapi.ConfigValidationFunc
func ReadYaml ¶
ReadYaml is exposed for direct use in testing code, allows you to ignore environment variables.
func Setup ¶
func Setup(items []auconfigapi.ConfigItem, warnFunc auconfigapi.ConfigWarnFunc) error
Setup initializes configuration with the default values - you need to call this from your code before calling Read() and Validate().
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.