remediation

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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