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.
Click to show internal directories.
Click to hide internal directories.