cwe

package
v0.0.0-...-68baad7 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Acronym is the acronym of CWE
	Acronym = "CWE"
	// Version the CWE version
	Version = "4.4"
	// ReleaseDateUtc the release Date of CWE Version
	ReleaseDateUtc = "2021-03-15"
	// Organization MITRE
	Organization = "MITRE"
	// Description the description of CWE
	Description = "The MITRE Common Weakness Enumeration"
)

Variables

View Source
var (
	// InformationURI link to the published CWE PDF
	InformationURI = fmt.Sprintf("https://cwe.mitre.org/data/published/cwe_v%s.pdf/", Version)
	// DownloadURI link to the zipped XML of the CWE list
	DownloadURI = fmt.Sprintf("https://cwe.mitre.org/data/xml/cwec_v%s.xml.zip", Version)
)

Functions

This section is empty.

Types

type Weakness

type Weakness struct {
	ID          string
	Name        string
	Description string
}

Weakness defines a CWE weakness based on http://cwe.mitre.org/data/xsd/cwe_schema_v6.4.xsd

func Get

func Get(id string) *Weakness

Get Retrieves a CWE weakness by it's id

func (*Weakness) MarshalJSON

func (w *Weakness) MarshalJSON() ([]byte, error)

MarshalJSON print only id and URL

func (*Weakness) SprintID

func (w *Weakness) SprintID() string

SprintID format the CWE ID

func (*Weakness) SprintURL

func (w *Weakness) SprintURL() string

SprintURL format the CWE URL

Jump to

Keyboard shortcuts

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