Help us shape the future of Go! Take the 2026 Go Developer Survey

licenses

package
v1.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

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

type LicenseJSONFile struct {
	LicenseListVersion string    `json:"licenseListVersion"`
	Licenses           []License `json:"licenses"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL