Help us shape the future of Go! Take the 2026 Go Developer Survey

nist

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: AGPL-3.0 Imports: 5 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 *resty.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 resty 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