reportutil

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(path string) (report.Report, error)

func RedactStrict added in v0.4.0

func RedactStrict(input report.Report) report.Report

RedactStrict removes application, process, account-adjacent, and path labels while retaining the aggregate facts and stable diagnostic codes needed by IT.

Types

type Comparison

type Comparison struct {
	SchemaVersion   string           `json:"schema_version"`
	Type            string           `json:"type"`
	GeneratedAt     time.Time        `json:"generated_at"`
	BeforeTarget    string           `json:"before_target,omitempty"`
	AfterTarget     string           `json:"after_target,omitempty"`
	Added           []string         `json:"added"`
	Resolved        []string         `json:"resolved"`
	Unchanged       []string         `json:"unchanged"`
	EvidenceChanges []EvidenceChange `json:"evidence_changes"`
	MetricChanges   []MetricChange   `json:"metric_changes"`
	NewIntelOnly    []string         `json:"new_intel_only"`
}

func Compare

func Compare(before, after report.Report) Comparison

type EvidenceChange

type EvidenceChange struct {
	ID     report.EvidenceID `json:"id"`
	Before report.Status     `json:"before"`
	After  report.Status     `json:"after"`
}

type MetricChange added in v0.3.0

type MetricChange struct {
	Metric string  `json:"metric"`
	Before float64 `json:"before"`
	After  float64 `json:"after"`
	Unit   string  `json:"unit"`
}

Jump to

Keyboard shortcuts

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