model

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Grade

func Grade(score float64) string

Types

type Weights

type Weights struct {
	PolicyPassRate       float64 `yaml:"policy_pass_rate" json:"policy_pass_rate"`
	ApprovalCoverage     float64 `yaml:"approval_coverage" json:"approval_coverage"`
	SeverityDistribution float64 `yaml:"severity_distribution" json:"severity_distribution"`
	ProfileCompliance    float64 `yaml:"profile_compliance" json:"profile_compliance"`
	DriftRate            float64 `yaml:"drift_rate" json:"drift_rate"`
}

func DefaultWeights

func DefaultWeights() Weights

func (Weights) Validate

func (w Weights) Validate() error

Jump to

Keyboard shortcuts

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