Versions in this module Expand all Collapse all v1 v1.0.2 Dec 30, 2025 Changes in this version + func CountTargets(cfg Config) (int, error) + func DetectorIDs() []string + func Scan(cfg Config) ([]types.Finding, error) + func Walk(ctx context.Context, cfg Config, ign ignore.Matcher, ...) error + type Config struct + BaseBranch string + DefaultExcludes bool + DisableDetectors string + DryRun bool + EnableDetectors string + ExcludeGlobs string + GitleaksConfig config.GitleaksConfig + GlobalArtifactBudget time.Duration + HistoryCommits int + IncludeGlobs string + MaxArchiveBytes int64 + MaxBytes int64 + MaxDepth int + MaxEntries int + MinConfidence float64 + NoCache bool + NoColor bool + Progress func() + RegistryImages []string + Root string + ScanArchives bool + ScanContainers bool + ScanHelm bool + ScanIaC bool + ScanK8s bool + ScanStaged bool + ScanTimeBudget time.Duration + Threads int + type DeepStats struct + AbortedByBytes int + AbortedByDepth int + AbortedByEntries int + AbortedByTime int + type Result struct + ArtifactErrors []error + ArtifactStats DeepStats + Duration time.Duration + FilesScanned int + Findings []types.Finding + func ScanWithStats(cfg Config) (Result, error)