report

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 6 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

Index

Constants

View Source
const (
	StatusClean          = "CLEAN"
	StatusActionRequired = "ACTION_REQUIRED"
	StatusReview         = "REVIEW"
)

Variables

This section is empty.

Functions

func BuildSARIF

func BuildSARIF(scan *model.Scan, toolVersion string) []byte

Types

type Agent

type Agent struct {
	Status    string         `json:"status"`
	Target    string         `json:"target"`
	Packages  int            `json:"packages"`
	Findings  int            `json:"findings,omitempty"`
	Shown     int            `json:"shown,omitempty"`
	Sources   []string       `json:"sources"`
	Actions   []AgentAction  `json:"actions,omitempty"`
	Top       []AgentFinding `json:"top,omitempty"`
	Unfixable int            `json:"unfixable,omitempty"`
	Warnings  []string       `json:"warnings,omitempty"`
}

func BuildAgent

func BuildAgent(scan *model.Scan, plan []remediate.Action, opts Options) Agent

func (Agent) JSON

func (a Agent) JSON() []byte

type AgentAction

type AgentAction struct {
	Package  string   `json:"package"`
	Current  string   `json:"current"`
	Target   string   `json:"target,omitempty"`
	Breaking bool     `json:"breaking"`
	Fixes    []string `json:"fixes,omitempty"`
	Unfixed  []string `json:"unfixed,omitempty"`
	Score    int      `json:"score"`
}

type AgentFinding

type AgentFinding struct {
	ID        string   `json:"id"`
	Package   string   `json:"package"`
	Severity  string   `json:"severity"`
	Score     int      `json:"score"`
	Exploited bool     `json:"exploited,omitempty"`
	EPSS      float64  `json:"epss,omitempty"`
	FixedIn   []string `json:"fixed_in,omitempty"`
	Fresh     bool     `json:"fresh,omitempty"`
	Summary   string   `json:"summary,omitempty"`
}

type Full

type Full struct {
	Status string             `json:"status"`
	Scan   *model.Scan        `json:"scan"`
	Plan   []remediate.Action `json:"plan"`
}

func BuildFull

func BuildFull(scan *model.Scan, plan []remediate.Action, opts Options) Full

func (Full) JSON

func (f Full) JSON() []byte

type Options

type Options struct {
	Top             int
	MaxActions      int
	ActionThreshold int
}

func DefaultOptions

func DefaultOptions() Options

Jump to

Keyboard shortcuts

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