Versions in this module Expand all Collapse all v1 v1.28.9 Sep 28, 2024 Changes in this version + var AttrMatchFunctions = map[CheckAction]func(*terraform.Attribute, *MatchSpec, *customContext) bool + var ValidCheckActions = []CheckAction + func Load(customCheckDir string) error + func NewCustomContext(module *terraform.Module) *customContext + func NewCustomContextWithVariables(module *terraform.Module, variables customCheckVariables) *customContext + func NewEmptyCustomContext() *customContext + func ProcessFoundChecks(checks ChecksFile) + func Validate(checkFilePath string) error + type Check struct + Code string + Description string + ErrorMessage string + Impact string + MatchSpec *MatchSpec + Provider string + RelatedLinks []string + RequiredLabels []string + RequiredSources []string + RequiredTypes []string + Resolution string + Service string + Severity severity.Severity + type CheckAction string + const And + const Contains + const EndsWith + const Equals + const GreaterThan + const GreaterThanOrEqualTo + const HasTag + const InModule + const IsAny + const IsEmpty + const IsNone + const IsPresent + const LessThan + const LessThanOrEqualTo + const Not + const NotContains + const NotEqual + const NotPresent + const OfType + const OnlyContains + const Or + const RegexMatches + const RequiresPresence + const StartsWith + type ChecksFile struct + Checks []*Check + func LoadCheckFile(checkFilePath string) (ChecksFile, error) + type MatchSpec struct + Action CheckAction + AssignVariable string + IgnoreUndefined bool + IgnoreUnmatched bool + MatchValue interface{} + Name string + PreConditions []MatchSpec + PredicateMatchSpec []MatchSpec + SubMatch *MatchSpec + SubMatchOne *MatchSpec + type MatchType string