Documentation
¶
Overview ¶
Package copacetic patches vulnerable OS and library packages in existing container images with BuildKit, usually driven by a Trivy JSON report.
It is a library-only fork of Project Copacetic. This package is the whole public API; the patching engine lives under internal/.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoUpdatesFound = types.ErrNoUpdatesFound
ErrNoUpdatesFound is returned by Patch when the image has no package updates to apply.
Functions ¶
func ResolvePatchedImageName ¶
func ResolvePatchedImageName(imageRef reference.Named, explicitTag, suffix string) (imageName, patchTag string, err error)
ResolvePatchedImageName returns the image name and tag Patch writes for imageRef: explicitTag when set, otherwise the source tag joined with suffix.
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
report
Package report contains parsers and helpers for vulnerability scan reports (e.g., Trivy).
|
Package report contains parsers and helpers for vulnerability scan reports (e.g., Trivy). |
|
vex
Package vex contains logic for generating VEX (Vulnerability Exploitability eXchange) documents.
|
Package vex contains logic for generating VEX (Vulnerability Exploitability eXchange) documents. |
Click to show internal directories.
Click to hide internal directories.