model

package
v0.0.0-...-c97ac92 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: AGPL-3.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 Asset

type Asset struct {
	ID           string   `json:"id"`
	Name         string   `json:"name"`
	CPE23        string   `json:"cpe23"`
	Dependents   []*Asset `json:"dependents"`
	Dependencies []*Asset `json:"dependencies"`
	CVEs         []*CVE   `json:"cves"`
}

type CPEMatch

type CPEMatch struct {
	Vulnerable            bool    `json:"vulnerable"`
	CPE23                 string  `json:"cpe23"`
	VersionStartIncluding *string `json:"versionStartIncluding"`
	VersionStartExcluding *string `json:"versionStartExcluding"`
	VersionEndIncluding   *string `json:"versionEndIncluding"`
	VersionEndExcluding   *string `json:"versionEndExcluding"`
}

type CVE

type CVE struct {
	ID              string       `json:"id"`
	Description     string       `json:"description"`
	PublicationDate time.Time    `json:"publicationDate"`
	LastUpdate      time.Time    `json:"lastUpdate"`
	CVSS2Vector     *string      `json:"cvss2Vector,omitempty"`
	CVSS3Vector     *string      `json:"cvss3Vector,omitempty"`
	Configurations  []*Node      `json:"configurations"`
	Assets          []*Asset     `json:"assets"`
	References      []*Reference `json:"references"`
}

type Node

type Node struct {
	Negate     *bool       `json:"negate,omitempty"`
	Operator   string      `json:"operator"`
	Children   []*Node     `json:"children"`
	CPEMatches []*CPEMatch `json:"cpeMatches"`
}

type Reference

type Reference struct {
	URL       string   `json:"url"`
	Name      string   `json:"name"`
	Refsource string   `json:"refsource"`
	Tags      []string `json:"tags"`
}

Jump to

Keyboard shortcuts

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