Documentation
¶
Overview ¶
Package selftest checks the whole scan chain: it serves images with EICAR test files from an in-memory registry and compares what the scanner finds with what it must find. The CLI runs it on request, the server regularly.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
Check is the result of one test image.
type Result ¶
Result is the outcome of a selftest.
func Run ¶
Run scans the test images with s; yara adds the images for the default YARA rules, which the engine must have loaded then. After an error the result holds the checks done so far.
It works on a copy of s without the layer cache, which would answer from the last run without asking the engine, and without the restrictions for registries: the test images come from a plain HTTP registry on loopback.