Versions in this module Expand all Collapse all v1 v1.0.1 Nov 29, 2026 v1.0.0 Nov 28, 2026 Changes in this version + const BaselineSchemaVersion + const CodeBaselineMissing + const CodeBenchmarkNetworkBlocked + const CodeConfigPathOutsideRoot + const CodeDecodeDepthLimit + const CodeFileTooLarge + const CodeFileUnreadable + const CodeGitNotFound + const CodeInternalError + const CodeNotebookParseFailed + const CodeReadFailed + const CodeRegistryEntrySkipped + const CodeSurfaceParseFailed + const CodeTimeout + const CodeUntrustedConfigKey + const DetectorGenericHighEntropy + const DetectorGenericHighEntropyName + const GenericValueClass + const ProviderGeneric + const ProviderGenericName + const ReasonIgnoreDetector + const ReasonIgnoreID + const ReasonIgnoreLoc + const ReasonIgnorePath + const ReasonImportedAllowlist + const ReasonInlineAllow + const ReasonNotInGroundTruth + const ReasonTestMarker + const SchemaVersion + const SurfaceFound + const SurfaceNotInstalled + const SurfaceNotVisited + const SurfaceUnreadable + const VerificationOff + const VerificationOn + func SuppressionReasons() []string + func SurfaceRank(status string) int + func WarningCodes() []string + type Baseline struct + Findings []BaselineFinding + RegistrySnapshot string + SchemaVersion int + ToolVersion string + func (b Baseline) MarshalJSON() ([]byte, error) + type BaselineFinding struct + Detector string + ID string + Provider string + Redacted string + type Confidence string + const ConfidenceHigh + const ConfidenceLow + const ConfidenceMedium + func (c Confidence) Valid() bool + type CredentialPart struct + Name string + Redacted string + type DetectorInfo struct + EnvVar string + Name string + NoEnvVar bool + Provider string + RevokeURL string + type DollarsMethod struct + Assumed bool + CapUSDPerDay *USD + Formula string + LimitPerMin int64 + LimitSource string + LimitUnit string + Model string + PriceUnitSize int64 + SpendAsOf string + Tier string + TierSource string + UnitPriceUSD USD + type Event struct + Detector string + ID string + Kind EventKind + Location *Location + Provider string + Redacted string + type EventKind string + const EventFindingDetected + const EventLocationAdded + const EventStatusUpdated + type Finding struct + AgeDays *int + AlsoMatchedBy []string + Confidence Confidence + CredentialParts []CredentialPart + Detector string + DollarsAtRiskPerDay *USD + DollarsMethod *DollarsMethod + FirstSeen *FirstSeen + FixPlan *FixPlan + ID string + Locations []Location + NewVsBaseline *bool + Org string + PotentialDollarsAtRiskPerDay *USD + Provider string + Redacted string + Scopes []string + Status Status + StatusReason string + Suppressed bool + SuppressionReason string + Tier string + Verified bool + VerifyEvidence *VerifyEvidence + func (f Finding) MarshalJSON() ([]byte, error) + type FirstSeen struct + Author string + Commit string + Date Timestamp + type FixKind string + const FixCheckUsage + const FixPurge + const FixReplace + const FixRevoke + const FixScopeKeeper + func (k FixKind) Valid() bool + type FixPlan struct + Steps []FixStep + func (p FixPlan) MarshalJSON() ([]byte, error) + type FixStep struct + Command string + Detail string + Kind FixKind + Locations []Location + N int + Title string + URL string + type Grade string + const GradeA + const GradeB + const GradeC + const GradeD + const GradeF + func (g Grade) Valid() bool + type IgnoreKind string + const IgnoreDetector + const IgnoreID + const IgnoreLoc + const IgnorePath + func (k IgnoreKind) Valid() bool + type IgnoreRule struct + Kind IgnoreKind + Line int + Pattern string + Scope IgnoreScope + Source string + SourceLine int + type IgnoreScope string + const IgnoreScopeMachine + const IgnoreScopeProject + func (s IgnoreScope) Valid() bool + type Location struct + Author string + Branch string + Cell int + Column int + Commit string + Date Timestamp + Field string + Kind LocationKind + Layer string + Line int + Path string + SurfaceID string + Target Target + type LocationKind string + const LocationArchive + const LocationCommit + const LocationFile + const LocationImage + const LocationNotebook + const LocationStaged + const LocationStdin + const LocationSurface + func (k LocationKind) Valid() bool + type Meta struct + BinarySkipped int + CommitsScanned int + DurationMS int64 + FilesScanned int + GeneratedAt Timestamp + HistoryScanned bool + PathPrefix string + RegistrySnapshot string + SchemaVersion int + ToolVersion string + Verification string + type ProviderInfo struct + EnvVar string + Name string + RevokeURL string + RotateDoc string + VerifyHost string + VerifyNote string + type Report struct + Detectors map[string]DetectorInfo + Findings []Finding + Grade Grade + GradeReasons []string + Grades []TargetGrade + Meta Meta + Providers map[string]ProviderInfo + SurfacesChecked []SurfaceStatus + Targets []Target + Warnings []Warning + func (r *Report) EnvVarOf(id, provider string) string + func (r *Report) RevokeURLOf(id string) string + func (r Report) MarshalJSON() ([]byte, error) + type Status string + const StatusDead + const StatusLive + const StatusNotVerified + const StatusRateLimited + const StatusUnknown + func (s Status) Class() StatusClass + func (s Status) Valid() bool + type StatusClass string + const ClassDead + const ClassLive + const ClassUnverified + type SurfaceStatus struct + Status string + SurfaceID string + type Target struct + ID string + Kind TargetKind + Visibility Visibility + type TargetGrade struct + Grade Grade + Reasons []string + Target Target + func (g TargetGrade) MarshalJSON() ([]byte, error) + type TargetKind string + const TargetImage + const TargetMachine + const TargetOrgRepo + const TargetRepo + const TargetStdin + func (k TargetKind) Valid() bool + type Timestamp time.Time + func (t *Timestamp) UnmarshalJSON(b []byte) error + func (t Timestamp) IsZero() bool + func (t Timestamp) MarshalJSON() ([]byte, error) + func (t Timestamp) Time() time.Time + type USD float64 + func (u USD) MarshalJSON() ([]byte, error) + type VerifyEvidence struct + Limits map[string]string + Org string + Project string + Scopes []string + Tier string + type Visibility string + const VisibilityPrivate + const VisibilityPublic + const VisibilityUnknown + func (v Visibility) Valid() bool + type Warning struct + Code string + DetailCode string + Location string