Documentation
¶
Index ¶
Constants ¶
View Source
const SnapshotVersion = "v1"
Variables ¶
This section is empty.
Functions ¶
func ResolvePath ¶
Types ¶
type ScoreView ¶ added in v1.1.2
type ScoreView struct {
Findings []source.Finding
PostureScore *score.Result
Identities []manifest.IdentityRecord
TransitionCount int
AttackPaths []riskattack.ScoredPath
TopAttackPaths []riskattack.ScoredPath
HasRiskReport bool
}
func LoadScoreView ¶ added in v1.1.2
LoadScoreView validates the stored scan snapshot shape needed by the score command without fully materializing large unused report sections on the cached-score path.
type Snapshot ¶
type Snapshot struct {
Version string `json:"version"`
Target source.Target `json:"target"`
Targets []source.Target `json:"targets,omitempty"`
Findings []source.Finding `json:"findings"`
Inventory *agginventory.Inventory `json:"inventory,omitempty"`
RiskReport *risk.Report `json:"risk_report,omitempty"`
Profile *profileeval.Result `json:"profile,omitempty"`
PostureScore *score.Result `json:"posture_score,omitempty"`
Identities []manifest.IdentityRecord `json:"identities,omitempty"`
Transitions []lifecycle.Transition `json:"lifecycle_transitions,omitempty"`
}
Snapshot stores deterministic scan material for diff mode.
Click to show internal directories.
Click to hide internal directories.