Documentation
¶
Index ¶
- func FetchCVEData(apiKey, url string) (json.RawMessage, error)
- type Configuration
- type CpeMatch
- type CvssData
- type CvssMetricV31
- type Description
- type Format
- type Meta
- type Metrics
- type Node
- type Nvdv2
- type Nvdv2Datum
- type Parameter
- type Reference
- type Vccve
- type Vckev
- type VckevDatum
- type VulncheckReportedExploitation
- type VulncheckXdb
- type Weakness
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchCVEData ¶
func FetchCVEData(apiKey, url string) (json.RawMessage, error)
Types ¶
type Configuration ¶
type Configuration struct {
Nodes []Node `json:"nodes,omitempty"`
}
type CpeMatch ¶
type CpeMatch struct {
Vulnerable *bool `json:"vulnerable,omitempty"`
Criteria *string `json:"criteria,omitempty"`
VersionStartIncluding *string `json:"versionStartIncluding,omitempty"`
VersionEndExcluding *string `json:"versionEndExcluding,omitempty"`
MatchCriteriaID *string `json:"matchCriteriaId,omitempty"`
}
type CvssData ¶
type CvssData struct {
Version *string `json:"version,omitempty"`
VectorString *string `json:"vectorString,omitempty"`
AttackVector *string `json:"attackVector,omitempty"`
AttackComplexity *string `json:"attackComplexity,omitempty"`
PrivilegesRequired *string `json:"privilegesRequired,omitempty"`
UserInteraction *string `json:"userInteraction,omitempty"`
Scope *string `json:"scope,omitempty"`
ConfidentialityImpact *string `json:"confidentialityImpact,omitempty"`
IntegrityImpact *string `json:"integrityImpact,omitempty"`
AvailabilityImpact *string `json:"availabilityImpact,omitempty"`
BaseScore *float64 `json:"baseScore,omitempty"`
BaseSeverity *string `json:"baseSeverity,omitempty"`
}
type CvssMetricV31 ¶
type Description ¶
type Meta ¶
type Meta struct {
Timestamp *string `json:"timestamp,omitempty"`
Index *string `json:"index,omitempty"`
Limit *int64 `json:"limit,omitempty"`
TotalDocuments *int64 `json:"total_documents,omitempty"`
Sort *string `json:"sort,omitempty"`
Parameters []Parameter `json:"parameters,omitempty"`
Order *string `json:"order,omitempty"`
Page *int64 `json:"page,omitempty"`
TotalPages *int64 `json:"total_pages,omitempty"`
MaxPages *int64 `json:"max_pages,omitempty"`
FirstItem *int64 `json:"first_item,omitempty"`
LastItem *int64 `json:"last_item,omitempty"`
}
type Metrics ¶
type Metrics struct {
CvssMetricV31 []CvssMetricV31 `json:"cvssMetricV31,omitempty"`
}
type Nvdv2 ¶
type Nvdv2 struct {
Benchmark *float64 `json:"_benchmark,omitempty"`
Meta *Meta `json:"_meta,omitempty"`
Data []Nvdv2Datum `json:"data,omitempty"`
}
type Nvdv2Datum ¶
type Nvdv2Datum struct {
ID *string `json:"id,omitempty"`
SourceIdentifier *string `json:"sourceIdentifier,omitempty"`
VulnStatus *string `json:"vulnStatus,omitempty"`
Published *string `json:"published,omitempty"`
LastModified *string `json:"lastModified,omitempty"`
Descriptions []Description `json:"descriptions,omitempty"`
References []Reference `json:"references,omitempty"`
Metrics *Metrics `json:"metrics,omitempty"`
Weaknesses []Weakness `json:"weaknesses,omitempty"`
Configurations []Configuration `json:"configurations,omitempty"`
Timestamp *string `json:"_timestamp,omitempty"`
}
type Vckev ¶
type Vckev struct {
Benchmark *float64 `json:"_benchmark,omitempty"`
Meta *Meta `json:"_meta,omitempty"`
Data []VckevDatum `json:"data,omitempty"`
}
type VckevDatum ¶
type VckevDatum struct {
VendorProject *string `json:"vendorProject,omitempty"`
Product *string `json:"product,omitempty"`
ShortDescription *string `json:"shortDescription,omitempty"`
VulnerabilityName *string `json:"vulnerabilityName,omitempty"`
RequiredAction *string `json:"required_action,omitempty"`
KnownRansomwareCampaignUse *string `json:"knownRansomwareCampaignUse,omitempty"`
Cve []string `json:"cve,omitempty"`
VulncheckXdb []VulncheckXdb `json:"vulncheck_xdb,omitempty"`
VulncheckReportedExploitation []VulncheckReportedExploitation `json:"vulncheck_reported_exploitation,omitempty"`
DateAdded *string `json:"date_added,omitempty"`
Timestamp *string `json:"_timestamp,omitempty"`
}
type VulncheckXdb ¶
type Weakness ¶
type Weakness struct {
Source *string `json:"source,omitempty"`
Type *string `json:"type,omitempty"`
Description []Description `json:"description,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.