Documentation ¶
Index ¶
- Constants
- func DecodeData(r io.Reader, catalog *Catalog) error
- func DownloadData(w io.Writer, optionFuncs ...fetchOptionFunc) error
- func FetchData(catalog *Catalog, optionFuncs ...fetchOptionFunc) error
- func WithClient(client *http.Client) fetchOptionFunc
- func WithURL(url string) fetchOptionFunc
- type Catalog
- type FetchOptions
- type Vulnerability
Constants ¶
View Source
const DefaultBaseURL = "https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json"
Variables ¶
This section is empty.
Functions ¶
func DownloadData ¶
func WithClient ¶
Types ¶
type Catalog ¶
type Catalog struct { Title string `json:"title"` CatalogVersion string `json:"catalogVersion"` DateReleased time.Time `json:"dateReleased"` Count int `json:"count"` Vulnerabilities []Vulnerability `json:"vulnerabilities"` }
Catalog data model for KEVs
func NewCatalog ¶
func NewCatalog() *Catalog
type FetchOptions ¶
func DefaultFetchOptions ¶
func DefaultFetchOptions() *FetchOptions
type Vulnerability ¶
type Vulnerability struct { CveID string `json:"cveID"` VendorProject string `json:"vendorProject"` Product string `json:"product"` VulnerabilityName string `json:"vulnerabilityName"` DateAdded string `json:"dateAdded"` ShortDescription string `json:"shortDescription"` RequiredAction string `json:"requiredAction"` DueDate string `json:"dueDate"` Notes string `json:"notes"` }
Vulnerability data model for a single record
Click to show internal directories.
Click to hide internal directories.