Documentation ¶
Overview ¶
Package validators provides basic KNF validators
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Empty returns error if config property is empty Empty = validatorEmpty // NotContains returns error if config property doesn't contains value from given slice NotContains = validatorNotContains // Less returns error if config property is less than given integer Less = validatorLess // Greater returns error if config property is greater than given integer Greater = validatorGreater // Equals returns error if config property is equals to given string Equals = validatorEquals // NotLen returns error if config property have wrong size NotLen = validatorNotLen // NotPrefix returns error if config property doesn't have given prefix NotPrefix = validatorNotPrefix // NotPrefix returns error if config property doesn't have given suffix NotSuffix = validatorNotSuffix // TypeBool returns error if config property contains non-boolean value TypeBool = validatorTypeBool // TypeNum returns error if config property contains non-numeric (int/uint) value TypeNum = validatorTypeNum // TypeNum returns error if config property contains non-float value TypeFloat = validatorTypeFloat )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package fs provides KNF validators for checking file-system items
|
Package fs provides KNF validators for checking file-system items |
Package network provides KNF validators for checking items related to network
|
Package network provides KNF validators for checking items related to network |
Package regexp provides KNF validators with regular expressions
|
Package regexp provides KNF validators with regular expressions |
Package system provides KNF validators for checking system items (user, groups, network interfaces)
|
Package system provides KNF validators for checking system items (user, groups, network interfaces) |
Click to show internal directories.
Click to hide internal directories.