cve

package
v0.0.0-...-0693660 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NVD_CVE_RECENT_URL   = "https://nvd.nist.gov/feeds/json/cve/1.1/nvdcve-1.1-recent.json.gz"   // updated every 2 hours (default)
	NVD_CVE_MODIFIED_URL = "https://nvd.nist.gov/feeds/json/cve/1.1/nvdcve-1.1-modified.json.gz" // updated every 2 hours
	NVD_CVE_YEAR_URL     = "https://nvd.nist.gov/feeds/json/cve/1.1/nvdcve-1.1-%d.json.gz"       // updated every day
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(dbClient *db.Client, logger *slog.Logger) (*Client, error)

func (*Client) DownloadCVEs

func (c *Client) DownloadCVEs(ctx context.Context, modified *bool, year *int) (*model.CVEResponse, error)

func (*Client) Import

func (c *Client) Import(ctx context.Context, modified *bool, year *int) error

Jump to

Keyboard shortcuts

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