Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadScanResult ¶
func LoadScanResult(filename string) (*engine.ScoreResult, error)
LoadScanResult loads only the ScoreResult from a saved scan.
Types ¶
type ScanDiff ¶
type ScanDiff struct {
ScoreA int `json:"score_a"`
ScoreB int `json:"score_b"`
Delta int `json:"delta"`
NewFindings []engine.Finding `json:"new_findings"`
FixedFindings []engine.Finding `json:"fixed_findings"`
}
ScanDiff represents the difference between two scans.
func ComparScans ¶
ComparScans compares two saved scans and returns the diff.
type ScanEntry ¶
type ScanEntry struct {
Filename string `json:"filename"`
Target string `json:"target"`
Date time.Time `json:"date"`
Score int `json:"score"`
Grade engine.Grade `json:"grade"`
Findings int `json:"findings"`
Duration time.Duration `json:"duration"`
}
ScanEntry represents metadata for a saved scan.
type StoredScan ¶
type StoredScan struct {
Target string `json:"target"`
Date time.Time `json:"date"`
Duration time.Duration `json:"duration"`
Result engine.ScoreResult `json:"result"`
}
StoredScan is the full JSON structure saved to disk.
func LoadScan ¶
func LoadScan(filename string) (*StoredScan, error)
LoadScan loads a full scan result from a filename.
Click to show internal directories.
Click to hide internal directories.