Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScanDTO ¶
type ScanDTO struct { Metadata model.Metadata CreatedAt time.Time ArtifactName string ArtifactType string Vulnerabilities []model.Vulnerability SchemaVersion int }
ScanDTO is a struct that represents the scan data transfer object.
func MapScanResultToDTO ¶
func MapScanResultToDTO(result *ScanResult) []ScanDTO
MapScanResultToDTO maps the ScanResult to a slice of ScanDTO.
type ScanResult ¶
type ScanResult struct { Metadata model.Metadata `json:"Metadata"` CreatedAt time.Time `json:"CreatedAt"` ArtifactName string `json:"ArtifactName"` ArtifactType string `json:"ArtifactType"` Results []struct { Target string `json:"Target"` Class string `json:"Class"` Type string `json:"Type"` Vulnerabilities []model.Vulnerability `json:"Vulnerabilities"` } `json:"Results"` SchemaVersion int `json:"SchemaVersion"` }
ScanResult is a struct that represents the scan result.
Click to show internal directories.
Click to hide internal directories.