diff --git a/scanner/secrets.go b/scanner/secrets.go index c3972b1..cc17c2b 100644 --- a/scanner/secrets.go +++ b/scanner/secrets.go @@ -24,6 +24,11 @@ along with this program. If not, see http://www.gnu.org/licenses/. package scanner //Secret struct +// Name = the name that identifies the secret +// Description +// Regex = The regular expression matching the secret +// FalsePositives = A list of known false positives +// PoC = cli command to check if the secret is valid or not type Secret struct { Name string Description string @@ -33,13 +38,17 @@ type Secret struct { } //SecretMatched struct +// Secret = The secret matched (struct) +// Url = url in which is present the secret +// Match = the string matching the regex type SecretMatched struct { Secret Secret Url string Match string } -//GetSecretRegexes returns all the secret regexes +//GetSecretRegexes returns a slice of all +//the secret structs func GetSecretRegexes() []Secret { var regexes = []Secret{ {