Documentation ¶
Index ¶
- Constants
- func AggregateAllChecksBySpecID(multiResults []types.Results, cs ComplianceSpec) map[string]types.Results
- func LoadFromBundle(cacheDir, specNameOrPath string) ([]byte, error)
- func MapSpecCheckIDToFilteredResults(result types.Result, checkIDs map[types.Scanner][]string) map[string]types.Results
- type ComplianceSpec
- type Severity
Constants ¶
View Source
const ( FailStatus iacTypes.ControlStatus = "FAIL" PassStatus iacTypes.ControlStatus = "PASS" WarnStatus iacTypes.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
func LoadFromBundle ¶ added in v0.55.0
Types ¶
type ComplianceSpec ¶
ComplianceSpec represent the compliance specification
func GetComplianceSpec ¶ added in v0.35.0
func GetComplianceSpec(specNameOrPath, cacheDir 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.