oval

package
v0.0.0-...-378edf0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Update

func Update() error

Types

type Affected

type Affected struct {
	XMLName  xml.Name `xml:"affected" json:"-"`
	Family   string   `xml:"family,attr"`
	Platform string   `xml:"platform"`
	Product  string   `xml:"product"`
}

Affected : >definitions>definition>metadata>affected

type Criteria

type Criteria struct {
	XMLName    xml.Name    `xml:"criteria" json:"-"`
	Operator   string      `xml:"operator,attr"`
	Criterias  []Criteria  `xml:"criteria"`
	Criterions []Criterion `xml:"criterion"`
}

Criteria : >definitions>definition>criteria

type Criterion

type Criterion struct {
	XMLName xml.Name `xml:"criterion" json:"-"`
	Negate  bool     `xml:"negate,attr"`
	TestRef string   `xml:"test_ref,attr"`
	Comment string   `xml:"comment,attr"`
}

Criterion : >definitions>definition>criteria>*>criterion

type Debian

type Debian struct {
	XMLName  xml.Name `xml:"debian" json:"-"`
	MoreInfo string   `xml:"moreinfo"`
	Date     string   `xml:"date" json:"-"`
}

Debian : >definitions>definition>metadata>debian

type Definition

type Definition struct {
	XMLName  xml.Name `xml:"definition" json:"-"`
	ID       string   `xml:"id,attr"`
	Class    string   `xml:"class,attr"`
	Metadata Metadata `xml:"metadata"`
	Criteria Criteria `xml:"criteria"`
}

Definition : >definitions>definition

type Definitions

type Definitions struct {
	XMLName     xml.Name     `xml:"definitions" json:"-"`
	Definitions []Definition `xml:"definition"`
}

Definitions : >definitions

type Generator

type Generator struct {
	XMLName        xml.Name `xml:"generator" json:"-"`
	ProductName    string   `xml:"product_name"`
	ProductVersion string   `xml:"product_version"`
	SchemaVersion  string   `xml:"schema_version"`
	Timestamp      string   `xml:"timestamp"`
}

Generator : >generator

type Metadata

type Metadata struct {
	Title        string      `xml:"title"`
	AffectedList []Affected  `xml:"affected"`
	References   []Reference `xml:"reference"`
	Description  string      `xml:"description"`
	Debian       Debian      `xml:"debian"` // Debian

}

type OVAL

type OVAL struct {
	DefinitionID    string
	Title           string
	AffectedProduct string
}

type Reference

type Reference struct {
	XMLName xml.Name `xml:"reference" json:"-"`
	Source  string   `xml:"source,attr"`
	RefID   string   `xml:"ref_id,attr"`
	RefURL  string   `xml:"ref_url,attr"`
}

Reference : >definitions>definition>metadata>reference

type Root

type Root struct {
	XMLName     xml.Name    `xml:"oval_definitions" json:"-"`
	Generator   Generator   `xml:"generator"`
	Definitions Definitions `xml:"definitions"`
}

Root : root object

Jump to

Keyboard shortcuts

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