Versions in this module Expand all Collapse all v0 v0.5.9 Jun 5, 2026 v0.5.8 Jun 5, 2026 v0.5.1 Jun 5, 2026 v0.5.0 Jun 5, 2026 v0.4.0 Jun 5, 2026 v0.3.0 Jun 4, 2026 v0.2.0 Jun 3, 2026 Changes in this version + var Registry = map[string]Patcher + type ApplyOutcome struct + Description string + Detected Detected + ManualCommand string + OK bool + Reason string + type Detected struct + Category string + FilePath string + LineEnd int + LineStart int + MatchedSpan string + func Detect(workdir string, logf func(string, ...any)) ([]Detected, error) + type EngineOptions struct + DryRun bool + Logf func(format string, args ...any) + Now func() time.Time + Workdir string + type EngineResult struct + BackupDir string + Outcomes []ApplyOutcome + func Run(opts EngineOptions) (EngineResult, error) + func (r EngineResult) Stats() (applied, declined, manual int, filesTouched int) + type MatchSite struct + LineEnd int + LineStart int + MatchedSpan string + type Patcher func(PatcherInput) PatcherResult + func Lookup(category string) Patcher + type PatcherInput struct + Context map[string]string + FilePath string + Match MatchSite + Source string + type PatcherResult struct + Description string + ManualCommand string + OK bool + Patched string + Reason string + func ClientSideLlmKeyPatcher(in PatcherInput) PatcherResult + func DependencyCvePatcher(in PatcherInput) PatcherResult + func InsecureCorsPatcher(in PatcherInput) PatcherResult + func InsecureRandomPatcher(in PatcherInput) PatcherResult + func OpenRedirectPatcher(in PatcherInput) PatcherResult + func UnboundedStreamPatcher(in PatcherInput) PatcherResult + func WeakCryptoPatcher(in PatcherInput) PatcherResult + func XssPatcher(in PatcherInput) PatcherResult