feat: combine go module file and go source discovery into single cataloger (#4127)

---------
Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
Signed-off-by: Christopher Angelo Phillips <32073428+spiffcs@users.noreply.github.com>
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
Co-authored-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
Christopher Angelo Phillips
2025-08-26 19:35:44 +00:00
committed by GitHub
co-authored by Alex Goodman
parent 170c4c41f4
commit 13ffeeb3d0
26 changed files with 4518 additions and 62 deletions
+9
View File
@@ -15,3 +15,12 @@ type GolangBinaryBuildinfoEntry struct {
type GolangModuleEntry struct {
H1Digest string `json:"h1Digest,omitempty" cyclonedx:"h1Digest"`
}
// GolangSourceEntry represents all captured data for a Golang package found through source analysis
type GolangSourceEntry struct {
H1Digest string `json:"h1Digest,omitempty" cyclonedx:"h1Digest"`
OperatingSystem string `json:"os,omitempty" cyclonedx:"os"`
Architecture string `json:"architecture,omitempty" cyclonedx:"architecture"`
BuildTags string `json:"buildTags,omitempty" cyclonedx:"buildTags"`
CgoEnabled bool `json:"cgoEnabled" cyclonedx:"cgoEnabled"`
}