remediation

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 2 Imported by: 0

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

func EnrichFindings(findings []finding.Finding) []finding.Finding

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.

func Reset

func Reset()

Reset clears all registered remediations. For testing only.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL