rules

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: AGPL-3.0 Imports: 17 Imported by: 1 module, 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

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