Documentation ¶
Index ¶
Constants ¶
View Source
const ( FailStatus defsecTypes.ControlStatus = "FAIL" PassStatus defsecTypes.ControlStatus = "PASS" WarnStatus defsecTypes.ControlStatus = "WARN" )
Variables ¶
This section is empty.
Functions ¶
func AggregateAllChecksBySpecID ¶
func AggregateAllChecksBySpecID(multiResults []types.Results, cs ComplianceSpec) map[string]types.Results
AggregateAllChecksBySpecID aggregates all scan results and map it to spec ids
Types ¶
type ComplianceSpec ¶
type ComplianceSpec struct {
Spec defsecTypes.Spec `yaml:"spec"`
}
ComplianceSpec represent the compliance specification
func GetComplianceSpec ¶ added in v0.35.0
func GetComplianceSpec(specNameOrPath string) (ComplianceSpec, error)
GetComplianceSpec accepct compliance flag name/path and return builtin or file system loaded spec
Click to show internal directories.
Click to hide internal directories.