Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type CVE ¶
type CVE struct { ID string `json:"id"` SourceIdentifier string `json:"sourceIdentifier"` Published string `json:"published"` LastModified string `json:"lastModified"` VulnStatus string `json:"vulnStatus"` Descriptions []Description `json:"descriptions"` Metrics Metric `json:"metrics"` Weaknesses []Weakness `json:"weaknesses"` References []Reference `json:"references"` }
type CvssData ¶
type CvssData struct { Version string `json:"version"` VectorString string `json:"vectorString"` AttackVector string `json:"attackVector"` AttackComplexity string `json:"attackComplexity"` PrivilegesRequired string `json:"privilegesRequired"` UserInteraction string `json:"userInteraction"` Scope string `json:"scope"` ConfidentialityImpact string `json:"confidentialityImpact"` IntegrityImpact string `json:"integrityImpact"` AvailabilityImpact string `json:"availabilityImpact"` BaseScore float64 `json:"baseScore"` BaseSeverity string `json:"baseSeverity"` }
type CvssMetricV31 ¶
type Description ¶
type Metric ¶
type Metric struct {
CvssMetricV31 []CvssMetricV31 `json:"cvssMetricV31"`
}
type NVDClient ¶
type NVDClient struct {
// contains filtered or unexported fields
}
func (*NVDClient) FilterCVEs ¶
func (n *NVDClient) FilterCVEs(v []Vulnerability) []CVE
type NVDConfig ¶
type NVDConfig struct { NvdApiKey string `json:"nvd_api_key"` CveSeverities string `json:"cve_severities"` IncludeFilters []string `json:"include_filters"` ExcludeFilters []string `json:"exclude_filters"` }
func DefaultConfig ¶
func DefaultConfig() NVDConfig
func (*NVDConfig) Parameters ¶
func (config *NVDConfig) Parameters() []cli.Flag
type Vulnerability ¶
type Vulnerability struct {
CVE CVE `json:"cve"`
}
type Weakness ¶
type Weakness struct { Source string `json:"source"` Type string `json:"type"` Description []Description `json:"description"` }
Click to show internal directories.
Click to hide internal directories.