syft/syft/pkg/bitnami.go
Alex Goodman a77d24e379
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>
2025-10-03 17:01:56 +00:00

31 lines
1.2 KiB
Go

package pkg
// BitnamiSBOMEntry represents all captured data from Bitnami packages
// described in Bitnami' SPDX files.
type BitnamiSBOMEntry struct {
// 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) {
return b.Files
}