Documentation
¶
Overview ¶
Package annotator provides the interface for annotation plugins.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Annotator ¶
type Annotator interface {
plugin.Plugin
// Annotate annotates the scan results with additional information.
Annotate(ctx context.Context, input *ScanInput, results *inventory.Inventory) error
}
Annotator is the interface for an annotation plugin, used to add additional information to scan results such as VEX statements. Annotators have access to the filesystem but should ideally not query any external APIs. If you need to modify the scan results based on the output of network calls you should use the Enricher interface instead.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package cachedir implements an annotator for packages that are in cache directories.
|
Package cachedir implements an annotator for packages that are in cache directories. |
|
ffa
|
|
|
unknownbinariesanno
Package unknownbinariesanno removes all packages extracted by unknown binaries filters out the known binaries, and records the remaining as a finding.
|
Package unknownbinariesanno removes all packages extracted by unknown binaries filters out the known binaries, and records the remaining as a finding. |
|
unknownbinariesanno/internal/apkfilter
Package apkfilter filters out binaries that are part of an apk package.
|
Package apkfilter filters out binaries that are part of an apk package. |
|
unknownbinariesanno/internal/dpkgfilter
Package dpkgfilter filters out binaries that are part of a dpkg package
|
Package dpkgfilter filters out binaries that are part of a dpkg package |
|
unknownbinariesanno/internal/filter
Package filter defines the interface to implement a unknown binary filter.
|
Package filter defines the interface to implement a unknown binary filter. |
|
Package list provides a list of annotation plugins.
|
Package list provides a list of annotation plugins. |
|
misc
|
|
|
dpkgsource
Package dpkgsource provides a way to annotate packages with repository source information.
|
Package dpkgsource provides a way to annotate packages with repository source information. |
|
npmsource
Package npmsource implements an annotator for packages to determine where they were installed from.
|
Package npmsource implements an annotator for packages to determine where they were installed from. |
|
noexecutable
|
|
|
dpkg
Package dpkg implements an annotator for DPKG packages that don't contain any executables.
|
Package dpkg implements an annotator for DPKG packages that don't contain any executables. |
|
Package osduplicate implements utility functions for identifying inventory duplicates found in OS packages.
|
Package osduplicate implements utility functions for identifying inventory duplicates found in OS packages. |
|
apk
Package apk implements an annotator for language packages that have already been found in APK OS packages.
|
Package apk implements an annotator for language packages that have already been found in APK OS packages. |
|
cos
Package cos implements an annotator for language packages that have already been found in COS OS packages.
|
Package cos implements an annotator for language packages that have already been found in COS OS packages. |
|
dpkg
Package dpkg implements an annotator for language packages that have already been found in DPKG OS packages.
|
Package dpkg implements an annotator for language packages that have already been found in DPKG OS packages. |
|
rpm
Package rpm implements an annotator for language packages that have already been found in RPM OS packages.
|
Package rpm implements an annotator for language packages that have already been found in RPM OS packages. |
Click to show internal directories.
Click to hide internal directories.