controllers

package
v0.3.36 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL