Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoTagsFound = errors.New("no tags found") ErrUnsupportedKind = errors.New("unsupported kind") ErrCantCastVariableToTargetType = errors.New("can't cast variable") ErrResolverNotRegistered = errors.New("unknown tag type") )
View Source
var ErrEnvVariableNotProvided error = errors.New("env variable not set")
Functions ¶
func IsChosenCase ¶
Creates filter that returns true if ammo tag is in chosenCases. If no chosenCases provided - returns true
func RegisterTagResolver ¶
func RegisterTagResolver(tagType string, resolver TagResolver)
Register custom tag resolver for config variables
Types ¶
type TagResolver ¶
var EnvTagResolver TagResolver = envTokenResolver
Resolve custom tag token with env variable value
var PropertyTagResolver TagResolver = propertyTokenResolver
Resolve custom tag token with property variable value. Allow read from properties file for example: secret: '${property: /etc/datasources/secret.properties#tvm_secret}'
Click to show internal directories.
Click to hide internal directories.