vulnerabilities

package
v0.0.0-...-c7f552b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2020 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

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

func GetTemplate(topData string) string

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

Types

type VulnFinding

type VulnFinding vulnerabilities.VulnFinding

func (*VulnFinding) Get

func (v *VulnFinding) Get(params map[string]string, queue chan reports.Response) reports.Response

Get - generate the finding report Param: map[string]string - Map of request parameters Param: chan reports.Response - Channel that accepts the JSON response from each finding (TODO) Return: reports.Response - the Json response sent to the requester

Jump to

Keyboard shortcuts

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