Documentation ¶
Overview ¶
Code generated by internal/spdxlicense/generate/generate_license_index.go; DO NOT EDIT. This file was generated by go generate; DO NOT EDIT; 2023-11-20T17:52:23Z License source: https://spdx.org/licenses/licenses.json
Index ¶
Constants ¶
View Source
const ReleaseData = "2023-10-05"
View Source
const Version = "3.22"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct { LicenseListVersion string `json:"licenseListVersion"` ReleaseDate string `json:"releaseDate"` Licenses []SPDXLicense `json:"licenses"` }
SPDXLicenseResponse is the response from the SPDX license list endpoint https://spdx.org/licenses/licenses.json
type SPDXLicense ¶
type SPDXLicense 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"` }
func GetLicenseByID ¶
func GetLicenseByID(id string) (license SPDXLicense, err error)
Click to show internal directories.
Click to hide internal directories.