Help us shape the future of Go! Take the 2026 Go Developer Survey

rules

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const ExternalRulesURL = "https://raw.githubusercontent.com/mazen160/secrets-patterns-db/master/db/rules-stable.yml"

Variables

This section is empty.

Functions

func AppendPipeleekRules

func AppendPipeleekRules(patterns []types.PatternElement) []types.PatternElement

func Download added in v1.4.0

func Download(ctx context.Context, output string, force bool) (int, error)

func GetConfidenceFilter added in v1.3.0

func GetConfidenceFilter() []string

func GetSecretsPatterns

func GetSecretsPatterns() types.SecretsPatterns

func GetTruffleHogRules

func GetTruffleHogRules() []detectors.Detector

func InitRules

func InitRules(confidenceFilter []string)

Types

type CompiledPattern added in v1.4.0

type CompiledPattern struct {
	Pattern types.PatternElement
	// contains filtered or unexported fields
}

func BuiltinPatterns added in v1.4.0

func BuiltinPatterns() []CompiledPattern

func GetCompiledPatterns added in v1.4.0

func GetCompiledPatterns() []CompiledPattern

func (CompiledPattern) FindAllIndex added in v1.4.0

func (p CompiledPattern) FindAllIndex(text []byte) [][]int

Jump to

Keyboard shortcuts

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