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 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.