cwe

package
v0.0.0-...-3625f07 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL