spdxlicense

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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