models

package
v0.0.0-...-2d3fa75 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2018 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cwe

type Cwe struct {
	gorm.Model

	CweID               string
	Name                string
	Description         string
	ExtendedDescription string
}

Cwe has CPE information

func ConvertToModel

func ConvertToModel(cwes cwe.WeaknessCatalog) (cweModels []Cwe)

ConvertToModel convert Cwe Struct to model

type Cwes

type Cwes []Cwe

Cwes is a slice of Cwe

func ConvertToModelJVN

func ConvertToModelJVN(items []jvn.Item) (cweModels Cwes)

ConvertToModelJVN convert jvn.Item Struct to model

func (Cwes) Uniq

func (cs Cwes) Uniq() (uniq []Cwe)

Uniq discinct Cwes by CWE-ID

Jump to

Keyboard shortcuts

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