Documentation ¶
Index ¶
- Constants
- func DetectPolicy(dir string) (m *Manager, ruleType RuleType, rule *Rule, target Target, err error)
- type Manager
- func (m *Manager) CreateTarBall(path string) error
- func (m *Manager) LoadAllRules() error
- func (m *Manager) LoadRule(ruleType RuleType, path string) (*Rule, error)
- func (m *Manager) LoadRules(ruleType RuleType) error
- func (m *Manager) PrepareRules(dest string, ruleType RuleType, target Target) error
- func (m *Manager) TestRule(rule *Rule) error
- func (m *Manager) TestRuleTarget(rule *Rule, target Target) error
- func (m *Manager) TestRuleType(ruleType RuleType) error
- func (m *Manager) TestRules() error
- func (m *Manager) ValidateRules() error
- type PassFail
- type Rule
- type RuleType
- type Target
- type TestRunner
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
func NewManager ¶
func (*Manager) CreateTarBall ¶
func (*Manager) LoadAllRules ¶
func (*Manager) PrepareRules ¶
func (*Manager) TestRuleType ¶
func (*Manager) ValidateRules ¶
type RuleType ¶
type RuleType interface { GetCode() string Prepare(rule *Rule, target Target, dest string) error Validate(rule *Rule) error GetTestRunner(target Target) tools.Single FindRuleResult(findings assessments.Findings, id string) PassFail }
var CheckovYAML RuleType = checkovYAMLType("checkov")
type TestRunner ¶ added in v0.5.9
Click to show internal directories.
Click to hide internal directories.