vex

package
v0.0.0-...-d40419c Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 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 CvssV3

type CvssV3 struct {
	AttackComplexity      string  `json:"attackComplexity"`
	AttackVector          string  `json:"attackVector"`
	AvailabilityImpact    string  `json:"availabilityImpact"`
	BaseScore             float32 `json:"baseScore"`
	BaseSeverity          string  `json:"baseSeverity"`
	ConfidentialityImpact string  `json:"confidentialityImpact"`
	IntegrityImpact       string  `json:"integrityImpact"`
	PrivilegesRequired    string  `json:"privilegesRequired"`
	Scope                 string  `json:"scope"`
	UserInteraction       string  `json:"userInteraction"`
	VectorString          string  `json:"vectorString"`
	Version               string  `json:"version"`
}

type Document

type Document struct {
	Category    string    `json:"category"`
	CsafVersion string    `json:"csaf_version"`
	Notes       []Note    `json:"notes"`
	Publisher   Publisher `json:"publisher"`
	Title       string    `json:"title"`
	Tracking    Tracking  `json:"tracking"`
}

type Engine

type Engine struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

type Generator

type Generator struct {
	Date   time.Time `json:"date"`
	Engine Engine    `json:"engine"`
}

type Note

type Note struct {
	Category string `json:"category"`
	Text     string `json:"text"`
	Title    string `json:"title"`
}

type Product

type Product struct {
	Name      string `json:"name,omitempty"`
	ProductId string `json:"product_id,omitempty"`
}

type ProductBranch

type ProductBranch struct {
	Category string          `json:"category,omitempty"`
	Name     string          `json:"name,omitempty"`
	Product  *Product        `json:"product,omitempty"`
	Branches []ProductBranch `json:"branches,omitempty"`
}

type ProductStatus

type ProductStatus struct {
	Fixed              []string `json:"fixed,omitempty"`
	KnownAffected      []string `json:"known_affected,omitempty"`
	KnownNotAffected   []string `json:"known_not_affected,omitempty"`
	Recommended        []string `json:"recommended,omitempty"`
	UnderInvestigation []string `json:"under_investigation,omitempty"`
}

type ProductTree

type ProductTree struct {
	Branches []ProductBranch `json:"branches,omitempty"`
}

type Publisher

type Publisher struct {
	Category  string `json:"category"`
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

type Reference

type Reference struct {
	Category string `json:"category"`
	Summary  string `json:"summary"`
	URL      string `json:"url"`
}

type Remediation

type Remediation struct {
	Category   string   `json:"category"`
	Details    string   `json:"details"`
	ProductIds []string `json:"product_ids"`
}

type Revision

type Revision struct {
	Date    time.Time `json:"date"`
	Number  string    `json:"number"`
	Summary string    `json:"summary"`
}

type Scores

type Scores struct {
	CvssV3   `json:"cvss_v3,omitempty"`
	Products []string `json:"products"`
}

type Threat

type Threat struct {
	Category   string   `json:"category"`
	Details    string   `json:"details"`
	ProductIds []string `json:"product_ids"`
}

type Tracking

type Tracking struct {
	CurrentReleaseDate time.Time  `json:"current_release_date"`
	Generator          Generator  `json:"generator"`
	ID                 string     `json:"id"`
	InitialReleaseDate time.Time  `json:"initial_release_date"`
	RevisionHistory    []Revision `json:"revision_history"`
	Status             string     `json:"status"`
	Version            string     `json:"version"`
}

type Vex

type Vex struct {
	Document        Document         `json:"document"`
	ProductTree     ProductTree      `json:"product_tree"`
	Vulnerabilities []*Vulnerability `json:"vulnerabilities"`
}

type Vulnerability

type Vulnerability struct {
	Cve           string        `json:"cve"`
	Notes         []Note        `json:"notes,omitempty"`
	ProductStatus ProductStatus `json:"product_status"`
	References    []Reference   `json:"references"`
	Remediations  []Remediation `json:"remediations"`
	Scores        []Scores      `json:"scores"`
	Threats       []Threat      `json:"threats,,omitempty"`
}

Jump to

Keyboard shortcuts

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