Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Comparators = map[string]Comparator{
"contains": contains{},
"endswith": endswith{},
"startswith": startswith{},
"re": re{},
"cidr": cidr{},
"gt": gt{},
"gte": gte{},
"lt": lt{},
"lte": lte{},
}
View Source
var ComparatorsCaseSensitive = map[string]Comparator{
"contains": containsCS{},
"endswith": endswithCS{},
"startswith": startswithCS{},
"re": re{},
"cidr": cidr{},
"gt": gt{},
"gte": gte{},
"lt": lt{},
"lte": lte{},
}
View Source
var ValueModifiers = map[string]ValueModifier{
"base64": b64{},
"wide": wide{},
}
Functions ¶
This section is empty.
Types ¶
type ComparatorFunc ¶
func GetComparator ¶
func GetComparator(modifiers ...string) (ComparatorFunc, error)
func GetComparatorCaseSensitive ¶
func GetComparatorCaseSensitive(modifiers ...string) (ComparatorFunc, error)
type ValueModifier ¶
ValueModifier modifies the expected value before it is passed to the comparator. For example, the `base64` modifier converts the expected value to base64.
Click to show internal directories.
Click to hide internal directories.