nist

package
v0.51.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package nist provides functionality to fetch vulnerability data from the NIST NVD API.

Index

Constants

This section is empty.

Variables

View Source
var PIPELEEK_NIST_BASE_URL = "https://services.nvd.nist.gov/rest/json/cves/2.0"

Functions

func FetchVulns

func FetchVulns(client *retryablehttp.Client, cpeName string) (string, error)

FetchVulns retrieves all CVE vulnerabilities for a specific CPE name from the NIST NVD API. It automatically handles pagination if the total results exceed the page size. Accepts a retryablehttp client, base URL, and full CPE name to allow dependency injection for testing. CPE name should be in format: cpe:2.3:a:vendor:product:version:*:*:*:edition:*:*:*

Types

This section is empty.

Jump to

Keyboard shortcuts

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