oval

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseObjects

func ParseObjects(dir string) (map[string]string, error)

func ParseStates

func ParseStates(dir string) (map[string]RpmInfoState, error)

Types

type Affected

type Affected struct {
	Family   string
	Platform string
}

type Criteria

type Criteria struct {
	Operator  string
	Criterion Criterion
}

type Criterion

type Criterion struct {
	Comment string
	TestRef string
}

type Definition

type Definition struct {
	Class    string
	ID       string
	Version  string
	Metadata Metadata
	Criteria Criteria
}

Definition is struct of `definitions.json` files

func ParseDefinitions

func ParseDefinitions(dir string) ([]Definition, error)

type Evr

type Evr struct {
	Text      string
	Datatype  string
	Operation string
}

type Metadata

type Metadata struct {
	Title        string
	Affected     Affected
	Reference    Reference
	Patchable    string
	AdvisoryDate string
	AdvisoryID   string
	Severity     string
	Description  string
}

type Object

type Object struct {
	ObjectRef string
}

type Objects

type Objects struct {
	RpminfoObjects []RpmInfoObject
}

Objects is struct of `objects.json` files

type Reference

type Reference struct {
	RefID  string
	RefURL string
	Source string
}

type RpmInfoObject

type RpmInfoObject struct {
	ID      string
	Version string
	Name    string
}

type RpmInfoState

type RpmInfoState struct {
	ID      string
	Version string
	Evr     Evr
}

type RpmInfoTest

type RpmInfoTest struct {
	Check   string
	Comment string
	ID      string
	Version string
	Object  Object
	State   State
}

type State

type State struct {
	StateRef string
}

type States

type States struct {
	RpminfoState []RpmInfoState
}

States is struct of `states.json` files

type Tests

type Tests struct {
	RpminfoTests []RpmInfoTest
}

Tests is struct of `tests.json` files

func ParseTests

func ParseTests(dir string) (Tests, error)

Jump to

Keyboard shortcuts

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