mirror of
https://github.com/anchore/syft.git
synced 2026-10-31 06:26:30 +01:00
16 lines
766 B
Go
16 lines
766 B
Go
package pkg
|
|
|
|
// GolangBinMetadata represents all captured data for a Golang binary
|
|
type GolangBinMetadata struct {
|
|
BuildSettings map[string]string `json:"goBuildSettings,omitempty" cyclonedx:"goBuildSettings"`
|
|
GoCompiledVersion string `json:"goCompiledVersion" cyclonedx:"goCompiledVersion"`
|
|
Architecture string `json:"architecture" cyclonedx:"architecture"`
|
|
H1Digest string `json:"h1Digest,omitempty" cyclonedx:"h1Digest"`
|
|
MainModule string `json:"mainModule,omitempty" cyclonedx:"mainModule"`
|
|
}
|
|
|
|
// GolangModMetadata represents all captured data for a Golang source scan with go.mod/go.sum
|
|
type GolangModMetadata struct {
|
|
H1Digest string `json:"h1Digest,omitempty" cyclonedx:"h1Digest"`
|
|
}
|