Documentation
¶
Overview ¶
Package validators implements helper functions to run all validators on probe responses and to initialize validation failure map. This packages is primarily intended to be used by extension probes. Built-in and external probes should use the internal validators package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunValidators ¶ added in v0.10.3
func RunValidators(opts *options.Options, response []byte, validationFailure *metrics.Map[int64], l *logger.Logger) []string
RunValidators runs the list of validators on the given response and responseBody, updates the given validationFailure map and returns the list of failures.
validationFailure map is updated in place and should already be initialized, ideally using ValidationFailureMap, before calling this function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.