Documentation ¶
Index ¶
Constants ¶
View Source
const ( IndexAPIPath = indexerRoot + apiRoot + "index_report" IndexReportAPIPath = indexerRoot + apiRoot + "index_report/" IndexStateAPIPath = indexerRoot + apiRoot + "index_state" AffectedManifestAPIPath = indexerRoot + internalRoot + "affected_manifest/" VulnerabilityReportPath = matcherRoot + apiRoot + "vulnerability_report/" UpdateOperationAPIPath = matcherRoot + internalRoot + "update_operation" UpdateOperationDeleteAPIPath = matcherRoot + internalRoot + "update_operation/" UpdateDiffAPIPath = matcherRoot + internalRoot + "update_diff" NotificationAPIPath = notifierRoot + apiRoot + "notification/" KeysAPIPath = notifierRoot + apiRoot + "services/notifier/keys" KeyByIDAPIPath = notifierRoot + apiRoot + "services/notifier/keys/" OpenAPIV1Path = "/openapi/v1" )
View Source
const IntraserviceIssuer = `clair-intraservice`
IntraserviceIssuer is the issuer that will be used if Clair is configured to mint its own JWTs.
Variables ¶
View Source
var ErrMediaType = errors.New("no common media type")
ErrMediaType is returned if no common media types can be found for a given request.
Functions ¶
func DiscoveryHandler ¶
DiscoveryHandler serves the embedded OpenAPI spec.
Types ¶
type IndexerV1 ¶ added in v4.4.0
type IndexerV1 struct {
// contains filtered or unexported fields
}
IndexerV1 is a consolidated Indexer endpoint.
type MatcherV1 ¶ added in v4.5.0
MatcherV1 is a consolidated Matcher endpoint.
type NotificationV1 ¶ added in v4.5.0
type NotificationV1 struct {
// contains filtered or unexported fields
}
NotificationV1 is a Notification endpoint.
func NewNotificationV1 ¶ added in v4.5.0
func NewNotificationV1(_ context.Context, prefix string, srv notifier.Service, topt otelhttp.Option) (*NotificationV1, error)
NewNotificationV1 returns an http.Handler serving the Notification V1 API rooted at "prefix".
func (*NotificationV1) ServeHTTP ¶ added in v4.5.0
func (h *NotificationV1) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements http.Handler.
Notes ¶
Bugs ¶
Content type negotiation does an O(n*m) comparison driven on user input, which may be a DoS issue.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.