Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllHandler ¶
func AllHandler(w http.ResponseWriter, r *http.Request)
AllHandler needs to handle the incoming request and execute the proper Image call
Types ¶
type Image ¶
type Image struct { Risk images.Image `json:"risk"` Vulnerabilities images.Vulnerabilities `json:"vulnerabilities"` SensitiveData images.Sensitive `json:"sensitive_data"` Malware images.Malware `json:"malware"` Report string `json:"template"` Response reports.Response `json:"response"` }
Image contains the structure for a single image report
func (*Image) Get ¶
Get - single image risk report Param: map[string]string - Map of request parameters Param: chan reports.Response - Channel that accepts the JSON response from each image Return: reports.Response - the Json response sent to the requester
func (*Image) Template ¶
Template - generates the static HTML for the image scan report Param: risk - JSON to insert into template Param: vulnerabilities - JSON to insert into template Param: sensitive - JSON to insert into template Param: malware - JSON to insert into template Return: string - HTML to create file
type Images ¶
type Images []Image
Images sets a slice of images