Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LicenseMap map[string]License
Functions ¶
func GetAlpineLicense ¶
func GetAlpineLicense(pURL packageurl.PackageURL) string
some components have a already modified purl to improve cve -> purl matching (see cdx bom normalization) we basically need to revert that for license matching - thus the second parameter see pkg:deb/debian/gdbm@1.23 as an example. Fallback version is 1.23-3
func GetDebianLicense ¶
func GetDebianLicense(pURL packageurl.PackageURL) string
some components have a already modified purl to improve cve -> purl matching (see cdx bom normalization) we basically need to revert that for license matching - thus the second parameter see pkg:deb/debian/gdbm@1.23 as an example. Fallback version is 1.23-3
Types ¶
type License ¶
type License struct {
Reference *string `json:"reference"`
IsDeprecatedLicenseID *bool `json:"isDeprecatedLicenseId"`
DetailsURL *string `json:"detailsURL"`
ReferenceNumber *int `json:"referenceNumber"`
Name string `json:"name"`
LicenseID string `json:"licenseId"`
SeeAlso []string `json:"seeAlso"`
IsOsiApproved bool `json:"isOsiApproved"`
}
type LicenseJSONFile ¶
Click to show internal directories.
Click to hide internal directories.