Documentation
¶
Overview ¶
Package report defines audit results, summaries, and verdict aggregation. input: statement findings and global findings from audit evaluation output: normalized audit results for CLI, APIs, and future integrations pos: domain reporting model and verdict aggregation logic note: if this file changes, update this header and module README.md.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Explanation ¶ added in v0.6.2
type Explanation struct {
Summary string `json:"summary,omitempty"`
Reasons []string `json:"reasons,omitempty"`
}
Explanation captures additive human- and machine-readable context for a result.
type Result ¶
type Result struct {
Verdict Verdict `json:"verdict"`
Summary Summary `json:"summary"`
Statements []StatementResult `json:"statements,omitempty"`
GlobalFindings []rule.Finding `json:"global_findings,omitempty"`
Explanation *Explanation `json:"explanation,omitempty"`
}
Result is the aggregated audit output.
type StatementResult ¶
type StatementResult struct {
Index int `json:"index"`
Kind string `json:"kind"`
RawSQL string `json:"raw_sql,omitempty"`
NormalizedSQL string `json:"normalized_sql,omitempty"`
Findings []rule.Finding `json:"findings,omitempty"`
Explanation *Explanation `json:"explanation,omitempty"`
}
StatementResult stores findings for a single SQL statement.
Click to show internal directories.
Click to hide internal directories.