validators

package
v0.13.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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.

func ValidationFailureMap added in v0.10.3

func ValidationFailureMap(opts *options.Options) *metrics.Map[int64]

ValidationFailureMap returns an initialized validation failures map.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL