analyzer

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalysisResult

type AnalysisResult struct {
	Findings []iam.Finding `json:"findings"`
	Summary  Summary       `json:"summary"`
	Errors   []string      `json:"errors,omitempty"`
}

AnalysisResult holds filtered findings and computed summary.

func Analyze

func Analyze(result *iam.ScanResult, cfg AnalyzerConfig) *AnalysisResult

Analyze filters findings by severity and computes summary statistics.

type AnalyzerConfig

type AnalyzerConfig struct {
	SeverityMin iam.Severity
}

AnalyzerConfig controls analysis behavior.

type Summary

type Summary struct {
	TotalPrincipalsScanned int            `json:"total_principals_scanned"`
	TotalFindings          int            `json:"total_findings"`
	BySeverity             map[string]int `json:"by_severity"`
	ByResourceType         map[string]int `json:"by_resource_type"`
	ByFindingID            map[string]int `json:"by_finding_id"`
}

Summary holds aggregated statistics about scan findings.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL