susecvrf

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AffectedPackage

type AffectedPackage struct {
	Package Package
	OSVer   string
}

type Distribution

type Distribution int
const (
	SUSEEnterpriseLinux Distribution = iota
	OpenSUSE
)

type DocumentNote

type DocumentNote struct {
	Text  string `xml:",chardata"`
	Title string `xml:"Title,attr"`
	Type  string `xml:"Type,attr"`
}

type DocumentTracking

type DocumentTracking struct {
	ID                 string     `xml:"Identification>ID"`
	Status             string     `xml:"Status"`
	Version            string     `xml:"Version"`
	InitialReleaseDate string     `xml:"InitialReleaseDate"`
	CurrentReleaseDate string     `xml:"CurrentReleaseDate"`
	RevisionHistory    []Revision `xml:"RevisionHistory>Revision"`
}

type Package

type Package struct {
	Name         string
	FixedVersion string
}

type ProductTree

type ProductTree struct {
	Relationships []Relationship `xml:"Relationship"`
}

type Reference

type Reference struct {
	URL         string `xml:"URL"`
	Description string `xml:"Description"`
}

type Relationship

type Relationship struct {
	ProductReference          string `xml:"ProductReference,attr"`
	RelatesToProductReference string `xml:"RelatesToProductReference,attr"`
	RelationType              string `xml:"RelationType,attr"`
}

type Revision

type Revision struct {
	Number      string `xml:"Number"`
	Date        string `xml:"Date"`
	Description string `xml:"Description"`
}

type ScoreSet

type ScoreSet struct {
	BaseScore string `xml:"BaseScore" json:",omitempty"`
	Vector    string `xml:"Vector" json:",omitempty"`
}

type Status

type Status struct {
	Type      string   `xml:"Type,attr"`
	ProductID []string `xml:"ProductID"`
}

type SuseCvrf

type SuseCvrf struct {
	Title           string           `xml:"DocumentTitle"`
	Tracking        DocumentTracking `xml:"DocumentTracking"`
	Notes           []DocumentNote   `xml:"DocumentNotes>Note"`
	ProductTree     ProductTree      `xml:"ProductTree"`
	References      []Reference      `xml:"DocumentReferences>Reference"`
	Vulnerabilities []Vulnerability  `xml:"Vulnerability"`
}

type Threat

type Threat struct {
	Type     string `xml:"Type,attr"`
	Severity string `xml:"Description"`
}

type VulnSrc

type VulnSrc struct {
	// contains filtered or unexported fields
}

func NewVulnSrc

func NewVulnSrc(dist Distribution) VulnSrc

func (VulnSrc) Get

func (vs VulnSrc) Get(version string, pkgName string) ([]types.Advisory, error)

func (VulnSrc) Name

func (vs VulnSrc) Name() types.SourceID

func (VulnSrc) Update

func (vs VulnSrc) Update(dir string) error

type Vulnerability

type Vulnerability struct {
	CVE             string      `xml:"CVE"`
	Description     string      `xml:"Notes>Note"`
	Threats         []Threat    `xml:"Threats>Threat"`
	References      []Reference `xml:"References>Reference"`
	ProductStatuses []Status    `xml:"ProductStatuses>Status"`
	CVSSScoreSets   ScoreSet    `xml:"CVSSScoreSets>ScoreSet" json:",omitempty"`
}

Jump to

Keyboard shortcuts

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