package
0.0.1
Repository: https://github.com/stackrox/scanner.git
Documentation: pkg.go.dev

# Packages

Package jsonhttp provides helper functions to write JSON responses to http.ResponseWriter and read JSON bodies from http.Request.
Package logic implements all the available API methods.
Package wrappers contains httprouter.Handle wrappers that are used in the API.

# Functions

NewHealthRouter creates a new router that only serve the Health function on /.
NewRouterV1 creates a new router for the API (Version 1).
NewVersionRouter instantiates a VersionRouter and every sub-routers that are necessary to handle supported API versions.
RunHealth launches the Health API, which only exposes a method to fetch clair's health without any security or authentification mechanism.
RunMain launches the main API, which exposes every possible interactions with clair.

# Structs

Config represents the configuration for the Main API.

# Type aliases

VersionRouter is an HTTP router that forwards requests to the appropriate router depending on the API version specified in the requested URI.