v0.0.1 - Public API for checking artifacts certification status
This is the initial release for the public API that can be used to get the RedHat certification status for containers, helm charts and operators. The functions can be found in pkg/certdb
.
API
To use the certification status check functions, the client first needs to obtain a validator interface using certdb's GetValidator(offlineDBPath string) function. The offlineDBPath should point to the folder where the offline DB was stored using the OCT container. That offline DB will only be used in case the RedHat online catalog is not accessible (disconnected environments/lack of internet connectivity).
The CertificationStatusValidator interface has three IsXXXCertified()
methods, one for each artifact type, that can be used to retrieve the the certification status.