knowledge

package
v0.0.14-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package knowledge provides functions for setting up and updating the knowledge database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(confirm bool) error

Setup initializes the necessary databases and collections for the knowledge service. It takes a boolean parameter 'confirm' which indicates whether to confirm the creation of databases or not. It returns the initialized Knowledge and Results databases, along with any error that occurred during the setup process.

func Update

func Update() error

Update updates the knowledge database by performing various operations such as updating licenses, vulnerabilities, and importing packages. It returns an error if any of the operations fail.

Types

This section is empty.

Directories

Path Synopsis
mirrors
cwe
Package cwe downloads CWEs from MITRE and updates the CWEs in the knowledge database graph.
Package cwe downloads CWEs from MITRE and updates the CWEs in the knowledge database graph.
js
Package js contains the functions to update the JS mirror
Package js contains the functions to update the JS mirror
licenses
Package licenses provides functionality for updating licenses metadata in a graph.
Package licenses provides functionality for updating licenses metadata in a graph.
nvd
osv
Package osv provides functionality to update the licenses in the OSV (Open Source Vulnerabilities) database for different ecosystems.
Package osv provides functionality to update the licenses in the OSV (Open Source Vulnerabilities) database for different ecosystems.
php
utilities
pgsql
Package psql provides utility functions for working with Postgre in the context of a knowledge database.
Package psql provides utility functions for working with Postgre in the context of a knowledge database.
types
Description: This file contains the NVD struct and all the functions that are used to parse the NVD data
Description: This file contains the NVD struct and all the functions that are used to parse the NVD data

Jump to

Keyboard shortcuts

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