model

package
v0.0.0-...-d3ea951 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Affected

type Affected struct {
	gorm.Model
	VulnerabilityID   uint `gorm:"foreignKey:ID"`
	Package           Package
	Severity          []Severity `gorm:"many2many:affected_severity;"`
	Ranges            []Range
	Versions          []Version
	EcosystemSpecific []byte
	DatabaseSpecific  []byte
}

type Alias

type Alias struct {
	gorm.Model
	VulnerabilityID uint `gorm:"foreignKey:ID"`
	Value           string
}

type Contact

type Contact struct {
	gorm.Model
	CreditID uint
	Value    string
}

type Credit

type Credit struct {
	gorm.Model
	VulnerabilityID uint `gorm:"foreignKey:ID"`
	Name            string
	Contact         []Contact
	Type            string
}

type Event

type Event struct {
	gorm.Model
	RangeID      uint
	Introduced   string
	Fixed        string
	LastAffected string
	Limit        string
}

type Package

type Package struct {
	gorm.Model
	AffectedID uint
	Ecosystem  string
	Name       string
	PURL       string
}

type Range

type Range struct {
	gorm.Model
	AffectedID       uint
	Type             string
	Repo             string
	Events           []Event
	DatabaseSpecific []byte
}

type Reference

type Reference struct {
	gorm.Model
	VulnerabilityID uint `gorm:"foreignKey:ID"`
	Type            string
	URL             string
}
type Related struct {
	gorm.Model
	VulnerabilityID uint `gorm:"foreignKey:ID"`
	Value           string
}

type Severity

type Severity struct {
	gorm.Model
	Type  string
	Score string
}

type Version

type Version struct {
	gorm.Model
	AffectedID uint
	Value      string
}

type Vulnerability

type Vulnerability struct {
	gorm.Model
	SchemaVersion    string
	VulnerabilityID  string
	Modified         string
	Published        string
	Withdrawn        string
	Aliases          []Alias
	Related          []Related
	Summary          string
	Details          string
	Severity         []Severity `gorm:"many2many:vulnerability_severity;"`
	Affected         []Affected
	References       []Reference
	Credits          []Credit
	DatabaseSpecific []byte
}

Jump to

Keyboard shortcuts

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