Versions in this module Expand all Collapse all v0 v0.1.3 Apr 28, 2019 Changes in this version + func Parse(in io.Reader) ([]nvdcommon.CVEItem, error) + func Reparse(xmlEntries []*Entry) []nvdcommon.CVEItem + func ReparseLogicalTest(lt *LogicalTestType) + func ReparsePlatformSpecification(ps *PlatformSpecificationType) + func ReparsePlatformSpecifications(pss []*PlatformSpecificationType) []nvdcommon.LogicalTest + type CWEType struct + CWE string + type Entry struct + CVE string + CVSSscore float64 + CWEs []*CWEType + Configuration []*PlatformSpecificationType + ID string + func (e *Entry) CVEID() string + func (e *Entry) CVSS20base() float64 + func (e *Entry) CVSS30base() float64 + func (e *Entry) Config() []nvdcommon.LogicalTest + func (e *Entry) ProblemTypes() []string + type FactRefType struct + Description string + Name NamePattern + type LogicalTestType struct + FactRefs []*FactRefType + LogicalTests []*LogicalTestType + Neg bool + Op OperatorString + func (lt *LogicalTestType) CPEs() []*wfn.Attributes + func (lt *LogicalTestType) InnerTests() []nvdcommon.LogicalTest + func (lt *LogicalTestType) LogicalOperator() string + func (lt *LogicalTestType) MatchPlatform(platform *wfn.Attributes, requireVersion bool) bool + func (lt *LogicalTestType) NegateIfNeeded(b bool) bool + func (t *LogicalTestType) String() string + type NVDFeed struct + Entries []*Entry + NVDXMLVersion string + PubDate string + type NamePattern wfn.Attributes + func (np *NamePattern) UnmarshalXMLAttr(attr xml.Attr) error + func (np NamePattern) String() string + type OperatorString string + func (t *OperatorString) String() string + func (t *OperatorString) UnmarshalXMLAttr(attr xml.Attr) error + type PlatformBaseType struct + LogicalTest *LogicalTestType + Remark TextType + Title TextType + func (pb *PlatformBaseType) CPEs() []*wfn.Attributes + func (pb *PlatformBaseType) InnerTests() []nvdcommon.LogicalTest + func (pb *PlatformBaseType) LogicalOperator() string + func (pb *PlatformBaseType) MatchPlatform(platform *wfn.Attributes, requireVersion bool) bool + func (pb *PlatformBaseType) NegateIfNeeded(b bool) bool + type PlatformSpecificationType struct + FactRef *FactRefType + LogicalTest *LogicalTestType + PlatformConfiguration *PlatformBaseType + func (ps *PlatformSpecificationType) CPEs() []*wfn.Attributes + func (ps *PlatformSpecificationType) InnerTests() []nvdcommon.LogicalTest + func (ps *PlatformSpecificationType) LogicalOperator() string + func (ps *PlatformSpecificationType) MatchPlatform(platform *wfn.Attributes, requireVersion bool) bool + func (ps *PlatformSpecificationType) NegateIfNeeded(b bool) bool + type TextType map[string]string + func (t *TextType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error