Documentation
¶
Overview ¶
Package catalog hosts the machine-readable checks catalog served at GET /api/v1/checks. The JSON file is embedded at compile time, parsed + validated at startup, and exposed both as the parsed Catalog struct (for in-process lookups) and as the original bytes (for direct HTTP serving).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Catalog ¶
Catalog is the parsed contents of checks.json.
func Load ¶
Load parses and validates the embedded catalog. Callers usually call it at startup; the returned Catalog is safe to share read-only.
type Check ¶
type Check struct {
ID string `json:"id"`
Category string `json:"category"`
Title string `json:"title"`
SeverityWhenFail string `json:"severity_when_fail"`
ScoreImpact string `json:"score_impact,omitempty"`
Remediation Remediation `json:"remediation"`
}
Check is one entry in the catalog.
type Remediation ¶
type Remediation struct {
Summary string `json:"summary"`
ExampleStack string `json:"example_stack,omitempty"`
ExampleSnippet string `json:"example_snippet,omitempty"`
}
Remediation is the canonical fix recipe associated with a check.
Click to show internal directories.
Click to hide internal directories.