github.com/anchore/syft@v1.4.2-0.20240516191711-1bec1fc5d397/syft/pkg/golang.go (about)

     1  package pkg
     2  
     3  // GolangBinaryBuildinfoEntry represents all captured data for a Golang binary
     4  type GolangBinaryBuildinfoEntry struct {
     5  	BuildSettings     KeyValues `json:"goBuildSettings,omitempty" cyclonedx:"goBuildSettings"`
     6  	GoCompiledVersion string    `json:"goCompiledVersion" cyclonedx:"goCompiledVersion"`
     7  	Architecture      string    `json:"architecture" cyclonedx:"architecture"`
     8  	H1Digest          string    `json:"h1Digest,omitempty" cyclonedx:"h1Digest"`
     9  	MainModule        string    `json:"mainModule,omitempty" cyclonedx:"mainModule"`
    10  	GoCryptoSettings  []string  `json:"goCryptoSettings,omitempty" cyclonedx:"goCryptoSettings"`
    11  }
    12  
    13  // GolangModuleEntry represents all captured data for a Golang source scan with go.mod/go.sum
    14  type GolangModuleEntry struct {
    15  	H1Digest string `json:"h1Digest,omitempty" cyclonedx:"h1Digest"`
    16  }