Documentation ¶
Index ¶
- func ConvertImageToFinding(cli *client.Client, il []images.Image) []reportImages.ImageFinding
- func Find(vulns []vulnerabilities.Vulnerability, name string) (int, bool)
- func FindImageInVuln(ivf []reportImages.ImageFinding, name string) (int, bool)
- func GetTemplate(topData string) string
- func Handler(w http.ResponseWriter, r *http.Request)
- func MapImageToVulnerability(v vulnerabilities.Vulnerability, ivl []reportImages.ImageFinding) (bool, reportImages.ImageFinding)
- func UpdateImageCounts(vulns []vulnerabilities.Vulnerability) []vulnerabilities.Vulnerability
- type VulnFinding
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertImageToFinding ¶
func ConvertImageToFinding(cli *client.Client, il []images.Image) []reportImages.ImageFinding
func Find ¶
func Find(vulns []vulnerabilities.Vulnerability, name string) (int, bool)
func FindImageInVuln ¶
func FindImageInVuln(ivf []reportImages.ImageFinding, name string) (int, bool)
func GetTemplate ¶
GetTemplate retrieves the final HTML to be written Param: topData: string - The 'vulnerabilities: []' data to be replaced Return: string - the findings HTML string
func Handler ¶
func Handler(w http.ResponseWriter, r *http.Request)
Handler needs to handle the incoming request and execute the finding report generation Param: http.ResponseWriter - writer to send back to requester Param: *http.Request - request
func MapImageToVulnerability ¶
func MapImageToVulnerability(v vulnerabilities.Vulnerability, ivl []reportImages.ImageFinding) (bool, reportImages.ImageFinding)
func UpdateImageCounts ¶
func UpdateImageCounts(vulns []vulnerabilities.Vulnerability) []vulnerabilities.Vulnerability
Types ¶
type VulnFinding ¶
type VulnFinding vulnerabilities.VulnFinding
Click to show internal directories.
Click to hide internal directories.