Documentation ¶
Index ¶
- Constants
- func IndexHandler(serv indexer.StateIndexer) http.HandlerFunc
- func IndexReportHandler(serv indexer.StateReporter) http.HandlerFunc
- func StateHandler(service indexer.Stater) http.HandlerFunc
- func VulnerabilityReportHandler(service matcher.Service, indexer indexer.Service) http.HandlerFunc
- type Server
Constants ¶
View Source
const ( VulnerabilityReportPath = apiRoot + "vulnerability_report/" IndexAPIPath = apiRoot + "index_report" IndexReportAPIPath = apiRoot + "index_report/" StateAPIPath = apiRoot + "state" )
Variables ¶
This section is empty.
Functions ¶
func IndexHandler ¶
func IndexHandler(serv indexer.StateIndexer) http.HandlerFunc
IndexHandler utilizes an Indexer to begin a Index of a manifest.
func IndexReportHandler ¶
func IndexReportHandler(serv indexer.StateReporter) http.HandlerFunc
IndexReportHandler utilizes a Reporter to serialize and return a claircore.IndexReport given a path parameter
func StateHandler ¶
func StateHandler(service indexer.Stater) http.HandlerFunc
StateHandler utilizes a Stater to report the curent runtime state of an Indexer.
Indexers running with different scanner versions will produce unique states and indicate to clients a re-index is necessary.
func VulnerabilityReportHandler ¶
VulnerabilityReportHandler utilizes a Service to serialize and return a claircore.VulnerabilityReport
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.