mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 23:46:35 +01:00
Improve struct and field comments and incorporate into json schema (#4252)
* improve struct and field comments and incorporate into json schema Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * address review feedback Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
+20
-7
@@ -3,13 +3,26 @@ package pkg
|
||||
// BitnamiSBOMEntry represents all captured data from Bitnami packages
|
||||
// described in Bitnami' SPDX files.
|
||||
type BitnamiSBOMEntry struct {
|
||||
Name string `mapstructure:"name" json:"name"`
|
||||
Architecture string `mapstructure:"arch" json:"arch"`
|
||||
Distro string `mapstructure:"distro" json:"distro"`
|
||||
Revision string `mapstructure:"revision" json:"revision"`
|
||||
Version string `mapstructure:"version" json:"version"`
|
||||
Path string `mapstructure:"path" json:"path"`
|
||||
Files []string `mapstructure:"files" json:"files"`
|
||||
// Name is the package name as found in the Bitnami SPDX file
|
||||
Name string `mapstructure:"name" json:"name"`
|
||||
|
||||
// Architecture is the target CPU architecture (amd64 or arm64 in Bitnami images)
|
||||
Architecture string `mapstructure:"arch" json:"arch"`
|
||||
|
||||
// Distro is the distribution name this package is for (base OS like debian, ubuntu, etc.)
|
||||
Distro string `mapstructure:"distro" json:"distro"`
|
||||
|
||||
// Revision is the Bitnami-specific package revision number (incremented for Bitnami rebuilds of same upstream version)
|
||||
Revision string `mapstructure:"revision" json:"revision"`
|
||||
|
||||
// Version is the package version as found in the Bitnami SPDX file
|
||||
Version string `mapstructure:"version" json:"version"`
|
||||
|
||||
// Path is the installation path in the filesystem where the package is located
|
||||
Path string `mapstructure:"path" json:"path"`
|
||||
|
||||
// Files are the file paths owned by this package (tracked via SPDX relationships)
|
||||
Files []string `mapstructure:"files" json:"files"`
|
||||
}
|
||||
|
||||
func (b BitnamiSBOMEntry) OwnedFiles() (result []string) {
|
||||
|
||||
Reference in New Issue
Block a user