spec

package
v0.54.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 11 Imported by: 5

Documentation

Index

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 MapSpecCheckIDToFilteredResults

func MapSpecCheckIDToFilteredResults(result types.Result, checkIDs map[types.Scanner][]string) map[string]types.Results

MapSpecCheckIDToFilteredResults map spec check id to filtered scan results

Types

type ComplianceSpec

type ComplianceSpec struct {
	Spec iacTypes.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

func (*ComplianceSpec) CheckIDs

func (cs *ComplianceSpec) CheckIDs() map[types.Scanner][]string

CheckIDs return list of compliance check IDs

func (*ComplianceSpec) Scanners added in v0.37.0

func (cs *ComplianceSpec) Scanners() (types.Scanners, error)

Scanners reads spec control and determines the scanners by check ID prefix

type Severity

type Severity string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL