Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPController ¶
type HTTPController struct {
// contains filtered or unexported fields
}
HTTPController maps ScanService ports to gin handlers that can be mapped to paths and methods this mapping is usually done in main()
func NewHTTPController ¶
func NewHTTPController(scanService ports.ScanService, concurrency int) *HTTPController
NewHTTPController initializes the HTTPController struct with the injected scanService
func (HTTPController) Alive ¶ added in v0.2.99
func (h HTTPController) Alive(c *gin.Context)
Alive returns 200 OK
func (HTTPController) GenerateSBOM ¶
func (h HTTPController) GenerateSBOM(c *gin.Context)
GenerateSBOM unmarshalls the payload and calls scanService.GenerateSBOM
func (HTTPController) Ready ¶
func (h HTTPController) Ready(c *gin.Context)
Ready calls scanService.Ready
func (HTTPController) ScanCVE ¶
func (h HTTPController) ScanCVE(c *gin.Context)
ScanCVE unmarshalls the payload and calls scanService.ScanCVE
func (HTTPController) ScanRegistry ¶ added in v0.2.99
func (h HTTPController) ScanRegistry(c *gin.Context)
func (HTTPController) Shutdown ¶
func (h HTTPController) Shutdown()
Click to show internal directories.
Click to hide internal directories.