rule

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rule

type Rule struct {
	Base            rules.RegisteredRule
	RequiredTypes   []string
	RequiredLabels  []string
	RequiredSources []string
	CheckTerraform  func(*block.Block, *block.Module) rules.Results
}

Rule is a targeted security test which can be applied to terraform templates. It includes the types to run on e.g. "resource", and the labels to run on e.g. "aws_s3_bucket".

func (*Rule) CheckAgainstBlock added in v1.0.0

func (r *Rule) CheckAgainstBlock(b *block.Block, m *block.Module) rules.Results

func (*Rule) CheckAgainstState added in v1.0.0

func (r *Rule) CheckAgainstState(s *state.State) rules.Results

func (Rule) ID

func (r Rule) ID() string

func (*Rule) RecoverFromCheckPanic added in v1.0.0

func (r *Rule) RecoverFromCheckPanic()

Jump to

Keyboard shortcuts

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