Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadWeights ¶
func LoadWeights(policyPath, repoRoot string) (scoremodel.Weights, error)
Types ¶
type AxisSummary ¶ added in v1.4.0
type AxisSummary struct {
Grade string `json:"grade"`
PathCount int `json:"path_count"`
Driver string `json:"driver"`
Rationale []string `json:"rationale,omitempty"`
}
func SummarizeGovernanceReadiness ¶ added in v1.4.0
func SummarizeGovernanceReadiness(paths []risk.ActionPath, missingProofCount int, coverageReduced bool) AxisSummary
func SummarizeOperationalExposure ¶ added in v1.4.0
func SummarizeOperationalExposure(paths []risk.ActionPath) AxisSummary
type Input ¶
type Input struct {
Findings []model.Finding
Identities []manifest.IdentityRecord
ProfileResult profileeval.Result
TransitionCount int
Weights scoremodel.Weights
Previous *Result
}
type Result ¶
type Result struct {
Score float64 `json:"score"`
Grade string `json:"grade"`
Breakdown Breakdown `json:"breakdown"`
WeightedBreakdown WeightedBreakdown `json:"weighted_breakdown"`
Weights scoremodel.Weights `json:"weights"`
TrendDelta float64 `json:"trend_delta"`
}
type WeightedBreakdown ¶
Click to show internal directories.
Click to hide internal directories.