MCPcopy
hub / github.com/gitleaks/gitleaks / Source

Interface Source

sources/source.go:12–16  ·  view source on GitHub ↗

Source is a thing that can yield fragments

Source from the content-addressed store, hash-verified

10
11// Source is a thing that can yield fragments
12type Source interface {
13 // Fragments provides a filepath.WalkDir like interface for scanning the
14 // fragments in the source
15 Fragments(ctx context.Context, yield FragmentsFunc) error
16}

Callers 1

DetectSourceMethod · 0.65

Implementers 3

Filessources/files.go
Filesources/file.go
Gitsources/git.go

Calls

no outgoing calls

Tested by

no test coverage detected