MCPcopy Create free account

hub / github.com/apuigsech/seekret / functions

Functions70 in github.com/apuigsech/seekret

↓ 5 callersMethodRun
Run executes the rule into a content to find all lines that matches it.
models/rule.go:77
↓ 4 callersFunctionNewRule
NewRule creates a new rule.
models/rule.go:37
↓ 3 callersMethodAddUnmatch
AddUnmatch adds a refular expression into the unmatch list.
models/rule.go:65
↓ 3 callersMethodLoadObjects
(source string, opt LoadOptions)
source.go:15
↓ 3 callersFunctionNewObject
NewObject creates a new object.
models/object.go:46
↓ 2 callersMethodAddRule
AddRule adds a new rule into the context.
seekret.go:41
↓ 2 callersMethodGetMetadata
SetMetadata gets a metadata value from the object.
models/object.go:81
↓ 2 callersFunctionNewException
NewException creates a new exception.
models/exception.go:32
↓ 2 callersMethodSetContent
SetContent sets the regular expresion that should match the content of the object.
models/exception.go:68
↓ 2 callersMethodSetMetadata
SetMetadata sets a metadata value for the object.
models/object.go:64
↓ 2 callersMethodSetNline
SetNline sets the number of line where secret should be found.
models/exception.go:61
↓ 2 callersMethodSetObject
SetObject sets the regular expresion that should match the name of the object.
models/exception.go:51
↓ 2 callersMethodSetRule
SetRule sets the regular expresion that should match the name of the rule.
models/exception.go:40
↓ 2 callersFunctionformatOutputHuman
(secretList []models.Secret)
cmd/seekret/format.go:32
↓ 2 callersFunctionformatOutputJSON
TODO: Implement
cmd/seekret/format.go:41
↓ 2 callersFunctionintPtr
(i int)
models/exception_test.go:209
↓ 2 callersFunctionsetRuleEnabled
(ruleList []models.Rule, name string, enabled bool)
seekret.go:174
↓ 2 callersFunctionsetRuleEnabledByRegexp
(ruleList []models.Rule, nameRegexp string, enabled bool)
seekret.go:190
↓ 1 callersMethodAddException
AddException adds a new exception into the context.
seekret.go:239
↓ 1 callersFunctionDefaultRulesPath
DefaultRulesPath return the default PATH that contains rules.
seekret.go:140
↓ 1 callersMethodEnable
Enable marks the rule as enabled.
models/rule.go:55
↓ 1 callersFunctionFormatOutput
(secretList []models.Secret, format string)
cmd/seekret/format.go:13
↓ 1 callersMethodGetPrimaryKeyHash
GetPrimaryKeyHash returns the primary key hash of the object. This hash is calculated by using the information of all metadata marked as primary key.
models/object.go:101
↓ 1 callersFunctionGroupObjectsByMetadata
(objects []Object, k string)
models/object.go:135
↓ 1 callersFunctionGroupObjectsByPrimaryKeyHash
(objects []Object)
models/object.go:156
↓ 1 callersMethodGroupObjectsByPrimaryKeyHash
GroupObjectsByPrimaryKeyHash returns a map with all objects grouped by the primary key hash, that is calculated from all metadata keys with the primar
seekret.go:227
↓ 1 callersMethodInspect
Inspect executes the inspection into all loaded objects, by checking all rules and exceptions loaded.
inspect.go:27
↓ 1 callersMethodListSecrets
ListSecrets return an array with all found secrets after the inspection.
seekret.go:300
↓ 1 callersMethodLoadExceptionsFromFile
LoadExceptionsFromFile loads exceptions from a YAML file.
seekret.go:244
↓ 1 callersFunctionLoadKnownFromFile
(s *seekret.Seekret, file string)
cmd/seekret/known.go:16
↓ 1 callersMethodLoadRulesFromDir
LoadRulesFromFile loads rules from all YAML files inside a directory.
seekret.go:95
↓ 1 callersMethodLoadRulesFromFile
LoadRulesFromFile loads rules from a YAML file.
seekret.go:55
↓ 1 callersMethodLoadRulesFromPath
LoadRulesFromFile loads rules from all YAML files inside different directories separated by ':'.
seekret.go:123
↓ 1 callersFunctionNewSecret
NewSecret creates a new secret.
models/secret.go:27
↓ 1 callersFunctionNewSeekret
NewSeekret returns a new seekret context.
seekret.go:35
↓ 1 callersMethodSetException
SetException specifies that a found secret is an exception (of false positive).
models/secret.go:38
↓ 1 callersFunctionexceptionCheck
(exceptionList []models.Exception, secret models.Secret)
inspect.go:97
↓ 1 callersFunctionformatOutputCSV
(secretList []models.Secret)
cmd/seekret/format.go:49
↓ 1 callersFunctioninspect_worker
(id int, jobs <-chan workerJob, results chan<- workerResult)
inspect.go:54
↓ 1 callersFunctiontestMetadataSample
(ts MetadataSample)
models/object_test.go:107
↓ 1 callersFunctiontestNewExceptionSample
(ts NewExceptionSample)
models/exception_test.go:46
↓ 1 callersFunctiontestNewObjectSample
(ts NewObjectSample)
models/object_test.go:61
↓ 1 callersFunctiontestNewRuleSample
(ts NewRuleSample)
models/rule_test.go:60
↓ 1 callersFunctiontestPrimaryKeyHashSample
(ts PrimaryKeyHashSample)
models/object_test.go:201
↓ 1 callersFunctiontestRunExceptionSample
(ts RunExceptionSample)
models/exception_test.go:199
↓ 1 callersFunctiontestRunRuleSample
(ts RunRuleSample)
models/rule_test.go:150
↓ 1 callersMethodupdatePrimaryKeyHash
()
models/object.go:105
MethodDisable
Enable marks the rule as disabled.
models/rule.go:60
MethodDisableRule
DisableRule disables specific rule.
seekret.go:159
MethodDisableRuleByRegexp
DisableRule disables rules that match with a regular expression.
seekret.go:169
MethodEnableRule
EnableRule enables specific rule.
seekret.go:154
MethodEnableRuleByRegexp
EnableRule enables rules that match with a regular expression.
seekret.go:164
MethodGetMetadataAll
GetMetadataAll gets a map that contains all metadata of the object.
models/object.go:91
MethodGroupObjectsByMetadata
GroupObjectsByMetadata returns a map with all objects grouped by specific metadata key.
seekret.go:219
MethodListRules
ListRules return an array with all loaded rules.
seekret.go:149
MethodLoadObjects
LoadObjects loads objects form an specific source. It can load objects from different source types, that are implemented following the SourceType inte
seekret.go:208
MethodRun
Run executes the exception into a secret to determine if it's an exception or not.
models/exception.go:79
FunctionTestMetadata
(t *testing.T)
models/object_test.go:81
FunctionTestNewException
(t *testing.T)
models/exception_test.go:21
FunctionTestNewObject
(t *testing.T)
models/object_test.go:23
FunctionTestNewRule
(t *testing.T)
models/rule_test.go:19
FunctionTestPrimaryKeyHash
(t *testing.T)
models/object_test.go:128
FunctionTestRunException
(t *testing.T)
models/exception_test.go:84
FunctionTestRunRule
(t *testing.T)
models/rule_test.go:93
FunctionformatOutputXML
(secretList []models.Secret)
cmd/seekret/format.go:45
Functionmain
()
cmd/seekret/main.go:23
FunctionseekretAfter
(c *cli.Context)
cmd/seekret/main.go:204
FunctionseekretBefore
(c *cli.Context)
cmd/seekret/main.go:121
FunctionseekretDir
(c *cli.Context)
cmd/seekret/main.go:141
FunctionseekretGit
(c *cli.Context)
cmd/seekret/main.go:161