MCPcopy
hub / github.com/BishopFox/jsluice / SecretMatchers

Method SecretMatchers

user-patterns.go:200–207  ·  view source on GitHub ↗

SecretMatchers returns a slice of SecretMatcher for use with (*Analyzer).AddSecretMatchers()

()

Source from the content-addressed store, hash-verified

198// SecretMatchers returns a slice of SecretMatcher for use with
199// (*Analyzer).AddSecretMatchers()
200func (u UserPatterns) SecretMatchers() []SecretMatcher {
201 out := make([]SecretMatcher, 0)
202
203 for _, p := range u {
204 out = append(out, p.SecretMatcher())
205 }
206 return out
207}
208
209// ParseUserPatterns accepts an io.Reader pointing to a JSON user-pattern
210// definition file, and returns a list of UserPatterns, and any error that

Callers 1

extractSecretsFunction · 0.80

Calls 1

SecretMatcherMethod · 0.80

Tested by

no test coverage detected