internal/

directory
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT

Directories

Path Synopsis
Package accuracy provides the synthetic, non-production credential corpus used for detector accuracy and differential tests.
Package accuracy provides the synthetic, non-production credential corpus used for detector accuracy and differential tests.
Package ahocorasick implements an allocation-free, resumable Aho–Corasick multi-pattern matcher over bytes.
Package ahocorasick implements an allocation-free, resumable Aho–Corasick multi-pattern matcher over bytes.
Package benchcorpus provides deterministic, allocation-light benchmark inputs.
Package benchcorpus provides deterministic, allocation-light benchmark inputs.
Package entropy implements deterministic, allocation-conscious heuristics for judging whether a short byte slice "looks like" a secret: order-0 Shannon entropy, alphabet-aware classification (UUID, hex hash, digit run, base64-ish, word-like), and detection of common non-secret placeholder values.
Package entropy implements deterministic, allocation-conscious heuristics for judging whether a short byte slice "looks like" a secret: order-0 Shannon entropy, alphabet-aware classification (UUID, hex hash, digit run, base64-ish, word-like), and detection of common non-secret placeholder values.
Package rules defines the internal rule model shared by the matcher, the streaming engine, and the generated built-in rule tables.
Package rules defines the internal rule model shared by the matcher, the streaming engine, and the generated built-in rule tables.
validators
This file implements the contextual detectors: credentials that are identified by WHERE they appear (an HTTP Authorization header, a Cookie/Set-Cookie header, the userinfo component of a URL, a CLI password/token flag) rather than by a provider-specific token shape (validators.go et al.) or a bare key=value assignment (generic.go); assignments are deliberately not duplicated here.
This file implements the contextual detectors: credentials that are identified by WHERE they appear (an HTTP Authorization header, a Cookie/Set-Cookie header, the userinfo component of a URL, a CLI password/token flag) rather than by a provider-specific token shape (validators.go et al.) or a bare key=value assignment (generic.go); assignments are deliberately not duplicated here.
Package span implements confirmed-span collection, deduplication, merging, precedence resolution, ordered release, and the redacting writer used by the streaming engine.
Package span implements confirmed-span collection, deduplication, merging, precedence resolution, ordered release, and the redacting writer used by the streaming engine.

Jump to

Keyboard shortcuts

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