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 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 RuleResult ¶
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)
Click to show internal directories.
Click to hide internal directories.