runtime

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct {
	// contains filtered or unexported fields
}

Executor object

func NewExecutor

func NewExecutor(iacType, iacVersion string, policyTypes []string, filePath, dirPath string, policyPath, scanRules, skipRules, categories []string, severity string, nonRecursive, useTerraformCache, findVulnerabilities bool, notificationWebhookURL, notificationWebhookToken, repoURL, repoRef string) (e *Executor, err error)

NewExecutor creates a runtime object

func (*Executor) Execute

func (e *Executor) Execute(configOnly, configWithError bool) (results Output, err error)

Execute validates the inputs, processes the IaC, creates json output

func (*Executor) Init

func (e *Executor) Init() error

Init validates input and initializes iac and cloud providers

func (*Executor) SendNotifications

func (e *Executor) SendNotifications(data interface{}) error

SendNotifications sends notifications via all the configured notifiers

func (*Executor) ValidateInputs

func (e *Executor) ValidateInputs() error

ValidateInputs validates the inputs to the executor object

type Output added in v1.1.0

type Output struct {
	ResourceConfig output.AllResourceConfigs
	Violations     policy.EngineOutput
}

Output is the runtime engine output

Jump to

Keyboard shortcuts

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