fedora

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToModel

func ConvertToModel(data *Updates) (defs []models.Definition)

ConvertToModel Convert OVAL to models

Types

type Issued

type Issued struct {
	Date string `xml:"date,attr" json:"date,omitempty"`
}

Issued has issued at

type Package

type Package struct {
	Name     string `xml:"name,attr" json:"name,omitempty"`
	Epoch    string `xml:"epoch,attr" json:"epoch,omitempty"`
	Version  string `xml:"version,attr" json:"version,omitempty"`
	Release  string `xml:"release,attr" json:"release,omitempty"`
	Arch     string `xml:"arch,attr" json:"arch,omitempty"`
	Filename string `xml:"filename" json:"filename,omitempty"`
}

Package has affected package information

type Reference

type Reference struct {
	Href  string `xml:"href,attr" json:"href,omitempty"`
	ID    string `xml:"id,attr" json:"id,omitempty"`
	Title string `xml:"title,attr" json:"title,omitempty"`
	Type  string `xml:"type,attr" json:"type,omitempty"`
}

Reference has reference information

type UpdateInfo

type UpdateInfo struct {
	ID              string      `xml:"id" json:"id,omitempty"`
	Title           string      `xml:"title" json:"title,omitempty"`
	Type            string      `xml:"type,attr" json:"type,omitempty"`
	Issued          Issued      `xml:"issued" json:"issued,omitempty"`
	Updated         Updated     `xml:"updated" json:"updated,omitempty"`
	Severity        string      `xml:"severity" json:"severity,omitempty"`
	Description     string      `xml:"description" json:"description,omitempty"`
	Packages        []Package   `xml:"pkglist>collection>package" json:"packages,omitempty"`
	ModularityLabel string      `json:"modularity_label,omitempty"`
	References      []Reference `xml:"references>reference" json:"references,omitempty"`
	CVEIDs          []string    `json:"cveiDs,omitempty"`
}

UpdateInfo has detailed data of Updates

type Updated

type Updated struct {
	Date string `xml:"date,attr" json:"date,omitempty"`
}

Updated has updated at

type Updates

type Updates struct {
	UpdateList []UpdateInfo `xml:"update"`
}

Updates has a list of Update Info

Jump to

Keyboard shortcuts

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