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 ¶
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.