Versions in this module Expand all Collapse all v0 v0.1.2 Jul 4, 2026 v0.1.1 Jun 25, 2026 Changes in this version + func IsSensitiveBasename(name string) bool + func MaskSecret(value, secretType string) string + type Category int + const CatExactBasename + const CatNameToken + const CatNone + const CatSensitiveDirectory + func (c Category) String() string + type FilenameMatch struct + Category Category + Path string + Pattern string + Reason string + func IsSensitiveFilename(path string) (bool, FilenameMatch) + type SecretDetector struct + func DefaultDetector() *SecretDetector + func NewDetector() *SecretDetector + func (sd *SecretDetector) DetectAndRedactWithEntropy(text string, entropyThreshold float64) string + func (sd *SecretDetector) DetectSecrets(text string) []SecretMatch + func (sd *SecretDetector) RedactSecrets(text string) string + type SecretMatch struct + EndPos int + Masked string + StartPos int + Type string + Value string