Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LangUpdatePackages ¶ added in v0.12.0
type LangUpdatePackages []UpdatePackage
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
Click to show internal directories.
Click to hide internal directories.