Documentation ¶
Overview ¶
Package scap implements some internal parsing of the OpenSCAP analysis results.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct { Type constants.DocumentType `json:"-"` *cdf.Benchmark *cpe_dict.CpeList *oval_def.OvalDefinitions *oval_res.OvalResults *oval_sc.OvalSystemCharacteristics *ds.DataStreamCollection *inter.Ocil }
Document contains all the returned informations of an openscap evaluation.
type SystemCharacteristics ¶
type SystemCharacteristics struct { SystemInfo SystemInfo `json:"system_info"` Objects []Object `json:"objects,omitempty"` }
SystemCharacteristics contains the internal charasteristics of an OVAL evaluation.
func SysChar ¶
func SysChar(doc *Document) (*SystemCharacteristics, error)
SysChar returns the refined system characteristics from a Document.
type SystemInfo ¶
type SystemInfo struct { OsName string `json:"os_name"` OsVersion string `json:"os_version"` Architecture string `json:"architecture"` PrimaryHostName string `json:"primary_host_name"` }
SystemInfo is an internal field of SystemCharacteristics contains the global system informations.
Click to show internal directories.
Click to hide internal directories.