priority

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package priority maps investigation results onto the 0–100 scheduling priority remediation runs compete with. The controller, not the agent, owns the ranking, so weights are tunable without re-prompting. The agent's own priority level remains a display field.

Index

Constants

This section is empty.

Variables

View Source
var DefaultWeights = Weights{Severity: 0.3, Exploitability: 0.3, Likelihood: 0.2, Impact: 0.2}

DefaultWeights favor severity and exploitability, per the design.

Functions

func Score

func Score(severity v1alpha1.Level, exploitability, likelihood, impact v1alpha1.Rating, w Weights) int32

Score computes the scheduling priority in [0, 100] from the scanner severity and the investigation's three dimension ratings.

Types

type Weights

type Weights struct {
	Severity       float64
	Exploitability float64
	Likelihood     float64
	Impact         float64
}

Weights distribute the score across the assessed dimensions; they should sum to 1 (Score normalizes regardless).

Jump to

Keyboard shortcuts

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