Versions in this module Expand all Collapse all v1 v1.3.0 Nov 25, 2026 Changes in this version type Target + ResolvedVersion string v1.2.0 Nov 19, 2026 Changes in this version type Finding + Capability string + FindingKind FindingKind + Reachability string + ReachableFrom []string + SourceClass string + Triage Triage + TriageReason string + type FindingKind string + const FindingDangerousCapability + type Triage string + const TriageConfirmed + const TriageContext + const TriageNeedsReview + const TriagePotential + func DefaultTriage(f Finding) (Triage, string) v1.1.1 Nov 15, 2026 v1.1.0 Nov 14, 2026 Changes in this version + const DefaultBlockingSeverity + const SchemaVersion + const TransportSSE + const TransportSource + const TransportStatic + const TransportStdio + const TransportStreamable + func FingerprintScope(t Target) string + func SortFindings(fs []Finding) + type AnalyzerError struct + Fatal bool + Kind string + Message string + func (e AnalyzerError) Error() string + type AnalyzerResult struct + Analyzer string + Coverage Coverage + Duration time.Duration + Errors []AnalyzerError + Findings []Finding + FinishedAt time.Time + Required bool + StartedAt time.Time + Status AnalyzerStatus + Warnings []string + func Errorf(name, kind string, format string, args ...any) AnalyzerResult + func Skipped(name, reason string) AnalyzerResult + func Unavailable(name, reason string) AnalyzerResult + type AnalyzerStatus string + const AnalyzerCompleted + const AnalyzerFailed + const AnalyzerPartial + const AnalyzerSkipped + const AnalyzerUnavailable + type Coverage struct + CapabilitiesAnalyzed int + CapabilitiesDiscovered int + CapabilitiesSkipped int + FilesDiscovered int + FilesFailed int + FilesParsed int + FilesSkipped int + FunctionsDiscovered int + LimitsHit []string + SkipReasons []string + SymbolsDiscovered int + func (c *Coverage) Add(o Coverage) + func (c *Coverage) AddSkipReason(reason string) + func (c *Coverage) Merge(o Coverage) + func (c Coverage) Complete() bool + func (c Coverage) Gaps() []string + type Evidence struct + Data map[string]any + Description string + File string + Kind string + Level EvidenceLevel + Line int + Path []FlowStep + Snippet string + type EvidenceLevel string + const EvidenceConfirmed + const EvidenceDataflow + const EvidenceDynamic + const EvidenceHeuristic + const EvidenceProtocol + const EvidenceStatic + func (e EvidenceLevel) Rank() int + func (e EvidenceLevel) Valid() bool + type Finding struct + Analyzer string + Category string + Confidence float64 + Description string + Evidence []Evidence + EvidenceLevel EvidenceLevel + File string + ID string + Line int + Remediation string + RuleID string + Severity Severity + Suppressed bool + SuppressionReason string + Taxonomy []TaxonomyReference + Title string + Tool string + func (f *Finding) EnsureID(scope string) + func (f Finding) Fingerprint(scope string) string + func (f Finding) Validate() error + type FlowStep struct + Detail string + File string + Kind string + Line int + Resolved bool + Symbol string + type PromptArgument struct + Description string + Name string + Required bool + type PromptInfo struct + Arguments []PromptArgument + Description string + Name string + RenderError string + Rendered bool + Text string + TextTruncated bool + Title string + type ResourceInfo struct + Content string + ContentTruncated bool + Description string + Fetched bool + MIMEType string + Name string + ReadError string + Title string + URI string + URITemplate string + type ScanResult struct + Analyzers []AnalyzerResult + Coverage Coverage + Duration time.Duration + Findings []Finding + FinishedAt time.Time + ScanID string + ScannerVersion string + SchemaVersion string + Snapshot *Snapshot + StartedAt time.Time + Status ScanStatus + Target Target + Verdict Verdict + VerdictReasons []string + Warnings []string + func (r *ScanResult) Aggregate(blocking Severity) + func (r *ScanResult) Counts() map[Severity]int + type ScanStatus string + const StatusCompleted + const StatusError + const StatusPartial + const StatusSkipped + type Severity string + const SeverityCritical + const SeverityHigh + const SeverityInfo + const SeverityLow + const SeverityMedium + func ParseSeverity(v string) (Severity, error) + func (s Severity) AtLeast(min Severity) bool + func (s Severity) OneStepDown() Severity + func (s Severity) Rank() int + func (s Severity) String() string + func (s Severity) Valid() bool + type Snapshot struct + Capabilities map[string]any + Instructions string + Prompts []PromptInfo + ProtocolVersion string + RedirectsRefused []string + Resources []ResourceInfo + SchemaVersion string + ServerName string + ServerTitle string + ServerVersion string + Templates []ResourceInfo + Tools []ToolInfo + Transport TransportInfo + Truncated []Truncation + Warnings []string + func (s *Snapshot) CapabilityCount() int + type Target struct + Args []string + Command string + Ecosystem string + Env map[string]string + Headers map[string]string + Kind TargetKind + Name string + Package string + Path string + Transport string + URL string + Version string + func (t Target) Describe() string + func (t Target) MarshalJSON() ([]byte, error) + func (t Target) RedactedArgs() []string + func (t Target) RedactedURL() string + func (t Target) Validate() error + type TargetKind string + const TargetConfig + const TargetPackage + const TargetRemote + const TargetSource + const TargetStatic + const TargetStdio + type TaxonomyReference struct + ID string + Scheme string + URL string + type ToolInfo struct + Annotations map[string]any + Description string + InputSchema map[string]any + Meta map[string]any + Name string + OutputSchema map[string]any + Title string + type TransportInfo struct + Endpoint string + Headers map[string]string + Kind string + SessionID string + TLS bool + type Truncation struct + Method string + Missed int + Read int + Reason string + Unknown bool + type ValidationError struct + Missing []string + Ref string + What string + func (e *ValidationError) Error() string + type Verdict string + const VerdictSafe + const VerdictUnknown + const VerdictUnsafe