template

package
v0.0.0-...-b7a4b24 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advisory

type Advisory struct {
	ID              string          `json:"id"`
	Title           string          `json:"title"`
	Summary         string          `json:"summary"`
	Description     string          `json:"description"`
	Vulnerabilities []Vulnerability `json:"vulnerabilities"`
	References      []Reference     `json:"references"`
	Published       time.Time       `json:"published"`
	Updated         time.Time       `json:"updated"`
	AdvisoryURL     string          `json:"advisory_url"`
}

type CVSS

type CVSS struct {
	BaseScore          *float64 `json:"base_score"`
	TemporalScore      *float64 `json:"temporal_score"`
	EnvironmentalScore *float64 `json:"environmental_score"`
	Vector             string   `json:"vector"`
}

type Configurations

type Configurations struct {
	Nodes    []Element       `json:"nodes"`
	Children *Configurations `json:"children"`
}

type Definition

type Definition struct {
	Configurations []Configurations `json:"configurations"`
	CVSSv2         *CVSS            `json:"cvssv2"`
	CVSSv3         *CVSS            `json:"cvssv3"`
	CWE            []string         `json:"cwe"`
	Impact         string           `json:"impact"`
	ExploitStatus  string           `json:"exploit_status"`
}

type Element

type Element struct {
	Description string     `json:"description"`
	CPE         string     `json:"cpe"`
	Affected    Expression `json:"affected"`
	FixedIn     []string   `json:"fixed_in"`
}

type Expression

type Expression struct {
	Eqaul        string `json:"eq"`
	GreaterThan  string `json:"gt"`
	GreaterEqaul string `json:"ge"`
	LessThan     string `json:"lt"`
	LessEqual    string `json:"le"`
}

type Reference

type Reference struct {
	Description string `json:"description"`
	URL         string `json:"url"`
}

type Vulnerability

type Vulnerability struct {
	ID          string       `json:"id"`
	CVE         string       `json:"cve"`
	Definitions []Definition `json:"definitions"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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