cwe

package
v2.19.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 2

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"
	// InformationURI link to the published CWE PDF
	InformationURI = "https://cwe.mitre.org/data/published/cwe_v" + Version + ".pdf/"
	// DownloadURI link to the zipped XML of the CWE list
	DownloadURI = "https://cwe.mitre.org/data/xml/cwec_v" + Version + ".xml.zip"
)

Variables

This section is empty.

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