Documentation
¶
Overview ¶
Package remediation provides actionable guidance for rotating or revoking detected secrets. Each detector ID can have a registered Remediation that is attached to findings via EnrichFindings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnrichFindings ¶
EnrichFindings returns a new slice of findings where each finding whose DetectorID has a registered remediation gets that remediation attached. The input slice is never mutated.
func Get ¶
func Get(detectorID string) *finding.Remediation
Get returns the Remediation for the given detector ID, or nil if none is registered.
func Register ¶
func Register(detectorID string, r finding.Remediation)
Register associates a Remediation with a detector ID. If the same detector ID is registered again, the previous entry is overwritten.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.