Documentation ¶
Index ¶
- Variables
- func WithDir(dir string) option
- func WithRetry(retry int) option
- func WithURL(url string) option
- type Affected
- type Config
- type Criteria
- type Criterion
- type Definition
- type Definitions
- type Evr
- type Generator
- type Metadata
- type Object
- type Objects
- type OvalDefinitions
- type Reference
- type RpminfoObject
- type RpminfoState
- type RpminfoTest
- type State
- type States
- type Tests
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidCVEFormat = errors.New("invalid CVE-ID format") ErrNonCVEID = errors.New("discovered non-CVE-ID") )
Functions ¶
Types ¶
type Definition ¶
type Definitions ¶
type Definitions struct {
Definition []Definition `xml:"definition" json:",omitempty"`
}
type Generator ¶
type Generator struct { ProductName string `xml:"product_name" json:",omitempty"` ProductVersion string `xml:"product_version" json:",omitempty"` SchemaVersion string `xml:"schema_version" json:",omitempty"` Timestamp string `xml:"timestamp" json:",omitempty"` ContentVersion string `xml:"content_version" json:",omitempty"` }
type Metadata ¶
type Metadata struct { Title string `xml:"title" json:",omitempty"` Affected Affected `xml:"affected" json:",omitempty"` Reference Reference `xml:"reference" json:",omitempty"` Patchable string `xml:"patchable" json:",omitempty"` AdvisoryDate string `xml:"advisory_date" json:",omitempty"` AdvisoryID string `xml:"advisory_id" json:",omitempty"` Severity string `xml:"severity" json:",omitempty"` Description string `xml:"description" json:",omitempty"` }
type Objects ¶
type Objects struct {
RpminfoObjects []RpminfoObject `xml:"rpminfo_object" json:",omitempty"`
}
type OvalDefinitions ¶
type OvalDefinitions struct { XMLName xml.Name `xml:"oval_definitions" json:",omitempty"` Xmlns string `xml:"xmlns,attr" json:",omitempty"` Oval string `xml:"oval,attr" json:",omitempty"` LinuxDef string `xml:"linux-def,attr" json:",omitempty"` Xsi string `xml:"xsi,attr" json:",omitempty"` SchemaLocation string `xml:"schemaLocation,attr" json:",omitempty"` Generator Generator `xml:"generator" json:",omitempty"` Definitions Definitions `xml:"definitions" json:",omitempty"` Tests Tests `xml:"tests" json:",omitempty"` Objects Objects `xml:"objects" json:",omitempty"` States States `xml:"states" json:",omitempty"` }
type RpminfoObject ¶
type RpminfoState ¶
type RpminfoTest ¶
type RpminfoTest struct { Check string `xml:"check,attr" json:",omitempty"` Comment string `xml:"comment,attr" json:",omitempty"` ID string `xml:"id,attr" json:",omitempty"` Version string `xml:"version,attr" json:",omitempty"` Object Object `xml:"object" json:",omitempty"` State State `xml:"state" json:",omitempty"` }
type States ¶
type States struct {
RpminfoState []RpminfoState `xml:"rpminfo_state" json:",omitempty"`
}
type Tests ¶
type Tests struct {
RpminfoTests []RpminfoTest `xml:"rpminfo_test" json:",omitempty"`
}
Click to show internal directories.
Click to hide internal directories.