Documentation ¶
Overview ¶
Package validators provides an entrypoint for the cloudprober's validators framework.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Validator ¶
type Validator interface { Init(config interface{}, l *logger.Logger) error Validate(responseObject interface{}, responseBody []byte) (bool, error) }
Validator interface represents a validator.
A validator runs a test on the provided input, usually the probe response, and returns the test result. If test cannot be run successfully for some reason (e.g. for malformed input), an error is returned.
Directories ¶
Path | Synopsis |
---|---|
Package http provides an HTTP validator for the Cloudprober's validator framework.
|
Package http provides an HTTP validator for the Cloudprober's validator framework. |
Package integrity provides data integrity validator for the Cloudprober's validator framework.
|
Package integrity provides data integrity validator for the Cloudprober's validator framework. |
Package regex provides regex validator for the Cloudprober's validator framework.
|
Package regex provides regex validator for the Cloudprober's validator framework. |
Click to show internal directories.
Click to hide internal directories.