mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
* Extending build info to include crypto settings Signed-off-by: Sirish Bathina <sirish@kasten.io> * Use kasten fork for goversion module Signed-off-by: Sirish Bathina <sirish@kasten.io> * go mod tidy Signed-off-by: Sirish Bathina <sirish@kasten.io> * change key to GoCryptoSettings and lint fix Signed-off-by: Sirish Bathina <sirish@kasten.io> * Addressing feedback Signed-off-by: Sirish Bathina <sirish@kasten.io> --------- Signed-off-by: Sirish Bathina <sirish@kasten.io>
17 lines
868 B
Go
17 lines
868 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"`
|
|
GoCryptoSettings []string `json:"goCryptoSettings,omitempty" cyclonedx:"goCryptoSettings"`
|
|
}
|
|
|
|
// 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"`
|
|
}
|