external

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

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