Claircore provides a set of go modules which handle scanning container layers for installed packages and reporting any discovered vulnerabilities. Claircore is designed to be embedded into a service wrapper.
For a full overview see: Claircore Book
The following make target runs unit tests which do not require a database or local development environment.
make unit
# or make unit-v for verbose output
With the local development environment up the following make target runs all tests including integration.
make integration
# or integration-v for verbose output
With the local development environment up the following make target runs all tests including integration with full benchmark results.
make bench