Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/gitleaks/gitleaks
/ types & classes
Types & classes
65 in github.com/gitleaks/gitleaks
⨍
Functions
501
◇
Types & classes
65
↓ 5 callers
TypeAlias
encodingKind
encodingKind can be or'd together to capture all of the unique encodings that were present in a segment
detect/codec/encodings.go:56
↓ 4 callers
TypeAlias
Fragment
Fragment is an alias for sources.Fragment for backwards compatibility Deprecated: This will be replaced with sources.Fragment in v9
detect/detect.go:112
Struct
Allowlist
Allowlist allows a rule to be ignored for specific regexes, paths, and/or commits
config/allowlist.go:29
TypeAlias
AllowlistMatchCondition
config/allowlist.go:13
Struct
ArtifactLocation
report/sarif.go:177
Struct
CommitInfo
CommitInfo captures metadata about the commit
sources/git.go:289
Struct
Config
Config is a configuration struct that contains rules and an allowlist if present.
config/config.go:87
Struct
CsvReporter
report/csv.go:10
Struct
Decoder
Decoder decodes various types of data in place
detect/codec/decoder.go:10
Struct
Detector
Detector is the main detector struct
detect/detect.go:39
Struct
DiagnosticsManager
DiagnosticsManager manages various types of diagnostics
cmd/diagnostics.go:19
Struct
Driver
report/sarif.go:162
Struct
EncodedSegment
EncodedSegment represents a portion of text that is encoded in some way.
detect/codec/segment.go:8
Struct
Extend
Extend is a struct that allows users to define how they want their configuration extended by other configuration files.
config/config.go:102
Struct
Failure
report/junit.go:102
Struct
File
File is a source for yielding fragments from a file or other reader
sources/file.go:30
Struct
Files
Files is a source for yielding fragments from a collection of files
sources/files.go:50
Struct
Finding
Finding contains a whole bunch of information about a secret finding. Plenty of real estate in this bad boy so fillerup as needed.
report/finding.go:14
Struct
Fragment
Fragment represents a fragment of a source with its meta data
sources/fragment.go:4
FuncType
FragmentsFunc
FragmentsFunc is the type of function called by Fragments to yield the next fragment
sources/source.go:9
Struct
FullDescription
report/sarif.go:153
Struct
Git
Git is a source for yielding fragments from a git repo
sources/git.go:280
Struct
GitCmd
GitCmd helps to work with Git's output.
sources/git.go:29
Struct
JsonReporter
report/json.go:8
Struct
JunitReporter
report/junit.go:11
Struct
Location
Location represents a location in a file
detect/location.go:4
Struct
Locations
report/sarif.go:198
Struct
Message
report/sarif.go:173
Struct
PartialFingerPrints
report/sarif.go:135
Struct
PhysicalLocation
report/sarif.go:193
TypeAlias
Platform
cmd/scm/scm.go:8
Struct
Properties
report/sarif.go:202
Struct
Region
report/sarif.go:181
Struct
RemoteInfo
RemoteInfo provides the info needed for reconstructing links from findings
sources/git.go:274
TypeAlias
RemoteInfo
RemoteInfo is an alias for sources.RemoteInfo for backwards compatibility Deprecated: This will be replaced with sources.RemoteInfo in v9
detect/git.go:14
Interface
Reporter
report/report.go:14
Struct
Required
config/rule.go:57
Struct
RequiredFinding
report/finding.go:57
Struct
Results
report/sarif.go:206
Struct
Rule
Rules contain information that define details on how to detect secrets
config/rule.go:12
Struct
Rules
report/sarif.go:157
Struct
Runs
report/sarif.go:214
Struct
Sarif
report/sarif.go:143
Struct
SarifReporter
report/sarif.go:11
Struct
ScanTarget
TODO: remove this in v9 and have scanTargets yield file sources
sources/files.go:17
Struct
ShortDescription
report/sarif.go:149
Struct
Snippet
report/sarif.go:189
Interface
Source
Source is a thing that can yield fragments
sources/source.go:12
Struct
TemplateReporter
report/template.go:13
Struct
TestCase
report/junit.go:93
Struct
TestSuite
report/junit.go:84
Struct
TestSuites
report/junit.go:79
Struct
Tool
report/sarif.go:169
Struct
ViperConfig
ViperConfig is the config struct used by the Viper config package to parse the config file. This struct does not include regular expressions. It is us
config/config.go:32
Struct
blobReader
blobReader provides a ReadCloser interface git cat-file blob to fetch a blob from a repo
sources/git.go:38
Struct
encoding
encoding represent a type of coding supported by the decoder.
detect/codec/encodings.go:94
Struct
encodingMatch
encodingMatch represents a match of an encoding in the text
detect/codec/encodings.go:88
Struct
mockReader
detect/reader_test.go:18
Interface
seekReaderAt
sources/file.go:24
Struct
startEnd
startEnd represents the start and end of some data. It mainly exists as a helper when referencing the values
detect/codec/start_end.go:9
Struct
testWriter
report/report_test.go:36
Struct
translateCase
config/config_test.go:25
Struct
viperGlobalAllowlist
config/config.go:81
Struct
viperRequired
config/config.go:65
Struct
viperRuleAllowlist
config/config.go:71