ufm_helpers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDirectPackagePinTarget

func GetDirectPackagePinTarget(attrs *testapi.FixAttributes) (packageName, packageVersion string)

GetPinTarget returns the package to pin from fix attributes. Returns the package name and version to pin to, or empty strings if not applicable.

func GetDirectPackageUpgradeTarget

func GetDirectPackageUpgradeTarget(attrs *testapi.FixAttributes) (packageName, packageVersion string)

GetUpgradeTarget returns the direct dependency to upgrade from fix attributes. Returns the package name and version to upgrade to, or empty strings if not applicable.

func GetFixAttributes

func GetFixAttributes(issue testapi.Issue) *testapi.FixAttributes

GetFixAttributes extracts fix attributes from an issue's findings.

Types

type PinGroup

type PinGroup struct {
	FromPackage testapi.Package
	ToPackage   testapi.Package
	FixedIssues []testapi.Issue
}

type RemediationSummary

type RemediationSummary struct {
	Upgrades   []*UpgradeGroup
	Pins       []*PinGroup
	Unresolved []testapi.Issue
}

func GetRemediationSummary

func GetRemediationSummary(issues []testapi.Issue) *RemediationSummary

GetRemediationSummary returns a summary of the remediation actions needed for the issues. It groups issues by the package they are related to and the action needed to fix them.

func (*RemediationSummary) HasPins

func (s *RemediationSummary) HasPins() bool

func (*RemediationSummary) HasUnresolved

func (s *RemediationSummary) HasUnresolved() bool

func (*RemediationSummary) HasUpgrades

func (s *RemediationSummary) HasUpgrades() bool

type UpgradeGroup

type UpgradeGroup struct {
	FromPackage testapi.Package
	ToPackage   testapi.Package
	FixedIssues []testapi.Issue
}

Jump to

Keyboard shortcuts

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