Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
type Category struct { ID string `xml:"ID,attr"` Name string `xml:"Name,attr"` DescriptionSummary string `xml:"Description>Description_Summary"` }
Category has CWE category item
type CompoundElement ¶
type CompoundElement struct { ID string `xml:"ID,attr"` Name string `xml:"Name,attr"` DescriptionSummary string `xml:"Description>Description_Summary"` ExtendedDescription string `xml:"Description>Extended_Description>Text"` }
CompoundElement has CWE compound element item
type View ¶
type View struct { ID string `xml:"ID,attr"` Name string `xml:"Name,attr"` Text []string `xml:"View_Objective>Text"` }
View has CWE View item
type Weakness ¶
type Weakness struct { ID string `xml:"ID,attr"` Name string `xml:"Name,attr"` DescriptionSummary string `xml:"Description>Description_Summary"` ExtendedDescription string `xml:"Description>Extended_Description>Text"` }
Weakness has CWE weakness item
type WeaknessCatalog ¶
type WeaknessCatalog struct { Views []View `xml:"Views>View"` Categories []Category `xml:"Categories>Category"` Weaknesses []Weakness `xml:"Weaknesses>Weakness"` CompoundElements []CompoundElement `xml:"Compound_Elements>Compound_Element"` }
WeaknessCatalog has cwe items http://cwe.mitre.org/data/index.html
func FetchCWE ¶
func FetchCWE(httpProxy string) (cwes WeaknessCatalog, err error)
FetchCWE fetches CWE archive
Click to show internal directories.
Click to hide internal directories.