unversioned

package
v0.14.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Arch    string `json:"arch"`
	Variant string `json:"variant"`
}

type LangUpdatePackages added in v0.12.0

type LangUpdatePackages []UpdatePackage

type Metadata

type Metadata struct {
	OS          OS     `json:"os"`
	Config      Config `json:"config"`
	NodeVersion string `json:"nodeVersion,omitempty"` // Detected Node.js version from image
	YarnVersion string `json:"yarnVersion,omitempty"` // Detected Yarn version from image
}

type OS

type OS struct {
	Type    string `json:"type"`
	Version string `json:"version"`
}

type PatchSummary added in v0.14.0

type PatchSummary struct {
	Total   int `json:"total"`   // vulns considered (after pkg-type filtering)
	Patched int `json:"patched"` // vulns with a fix that Copa can apply
	Skipped int `json:"skipped"` // vulns with no fix or fix excluded by patch-level
}

PatchSummary captures counts of vulnerabilities by patch outcome.

type UpdateManifest

type UpdateManifest struct {
	Metadata       Metadata           `json:"metadata"`
	OSUpdates      UpdatePackages     `json:"osupdates"`
	LangUpdates    LangUpdatePackages `json:"langupdates"`
	OSSummary      *PatchSummary      `json:"-"` // internal, not serialized
	LibrarySummary *PatchSummary      `json:"-"` // internal, not serialized
}

func (*UpdateManifest) CombinedSummary added in v0.14.0

func (m *UpdateManifest) CombinedSummary() *PatchSummary

CombinedSummary merges OS and library summaries into a single PatchSummary. Returns nil if neither summary is available.

type UpdatePackage

type UpdatePackage struct {
	Name             string `json:"name"`
	InstalledVersion string `json:"installedVersion"`
	FixedVersion     string `json:"fixedVersion"`
	VulnerabilityID  string `json:"vulnerabilityID"`
	Type             string `json:"type"`
	Class            string `json:"class"`
	PkgPath          string `json:"pkgPath,omitempty"` // Path to package from Trivy report (e.g., "var/lib/ghost/versions/6.2.0/node_modules/@babel/runtime/package.json")
}

type UpdatePackages

type UpdatePackages []UpdatePackage

Jump to

Keyboard shortcuts

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