reportparser

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetReportCollection

type AssetReportCollection struct {
	XMLName xml.Name `xml:"asset-report-collection"`
	Reports Reports  `xml:"reports"`
}

Represents an AssetReportCollection Object on a OpenSCAP XCCDF Report

type Content

type Content struct {
	XMLName    xml.Name   `xml:"content"`
	TestResult TestResult `xml:"TestResult"`
}

Represents a Content Object on a OpenSCAP XCCDF Report

type Profile

type Profile struct {
	XMLName xml.Name `xml:"profile"`
	IDRef   string   `xml:"idref,attr"`
}

type Report

type Report struct {
	XMLName xml.Name `xml:"report"`
	ID      string   `xml:"id,attr"`
	Content Content  `xml:"content"`
}

Represents a Report Object on a OpenSCAP XCCDF Report

type Reports

type Reports struct {
	XMLName xml.Name `xml:"reports"`
	Reports []Report `xml:"report"`
}

Represents a Report List Object on a OpenSCAP XCCDF Report

type RuleResult

type RuleResult struct {
	XMLName  xml.Name `xml:"rule-result"`
	IDRef    string   `xml:"idref,attr"`
	Severity string   `xml:"severity,attr"`
	Result   string   `xml:"result"`
}

type TestResult

type TestResult struct {
	XMLName     xml.Name     `xml:"TestResult"`
	ID          string       `xml:"id,attr"`
	StartTime   time.Time    `xml:"start-time,attr"`
	EndTime     time.Time    `xml:"end-time,attr"`
	RuleResults []RuleResult `xml:"rule-result"`
	Title       string       `xml:"title"`
	Profile     Profile      `xml:"profile"`
	Target      string       `xml:"target"`
}

func ParseReport

func ParseReport(file string) (TestResult, error)

Jump to

Keyboard shortcuts

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