Documentation
¶
Index ¶
- Constants
- func GetDsProfile(profileId string, dsPath string) (*xccdf.ProfileElement, error)
- func PolicyToXML(oscalPolicy policy.Policy, config *config.Config) (string, error)
- func ResolveDsVariableOptions(profile *xccdf.ProfileElement, variables []DsVariables) (*xccdf.ProfileElement, error)
- type DsRules
- type DsVariableOptions
- type DsVariables
- type NodeByIdHashTable
Constants ¶
View Source
const ( XCCDFCaCNamespace string = "xccdf_org.ssgproject.content" XCCDFNamespace string = "complytime.openscapplugin" XCCDFTailoringSuffix string = "complytime" )
Variables ¶
This section is empty.
Functions ¶
func GetDsProfile ¶
func GetDsProfile(profileId string, dsPath string) (*xccdf.ProfileElement, error)
func PolicyToXML ¶
func ResolveDsVariableOptions ¶
func ResolveDsVariableOptions(profile *xccdf.ProfileElement, variables []DsVariables) (*xccdf.ProfileElement, error)
Types ¶
type DsRules ¶
type DsRules struct {
ID string `xml:"idref,attr"`
Title string `xml:",chardata"`
Description string `xml:",chardata"`
Selected bool `xml:"selected,attr"`
}
func GetDsRules ¶
type DsVariableOptions ¶
type DsVariableOptions struct {
Selector string `xml:"selector,attr"`
Value string `xml:",chardata"`
}
The following structs can later be proposed to compliance-operator/pkg/xccdf
type DsVariables ¶
type DsVariables struct {
ID string `xml:"idref,attr"`
Title string `xml:",chardata"`
Description string `xml:",chardata"`
Options []DsVariableOptions
}
func GetDsVariablesValues ¶
func GetDsVariablesValues(dsPath string) ([]DsVariables, error)
type NodeByIdHashTable ¶
func NewRuleHashTable ¶
func NewRuleHashTable(dsDom *xmlquery.Node) NodeByIdHashTable
Getting rule information Copied from https://github.com/ComplianceAsCode/compliance-operator/blob/fed54b4b761374578016d79d97bcb7636bf9d920/pkg/utils/parse_arf_result.go#L170
Click to show internal directories.
Click to hide internal directories.