licenses

package
v0.0.17-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDependencyLicenses

func GetDependencyLicenses(knowledge_db *bun.DB, depName string, depVersion string) ([]knowledge.License, error)

GetDependencyLicenses retrieves the licenses associated with a specific dependency. It takes the dependency name and version as input parameters and returns a slice of licenseTypes.License and an error. The function queries the database to find the licenses associated with the given dependency and constructs a list of licenses. If the query construction or execution fails, an error is returned. The licenses are returned as a slice of licenseTypes.License.

func GetSPDXLicenseByName

func GetSPDXLicenseByName(name string, knowledge_db *bun.DB) (knowledge.License, error)

GetSPDXLicenseByName retrieves an SPDX license by its name from the database. It takes the name of the license as a parameter and returns a pointer to the license and an error, if any.

Types

This section is empty.

Jump to

Keyboard shortcuts

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