Back to

Package runtime

Latest Go to latest

The highest tagged major version is .

Published: Sep 16, 2020 | License: Apache-2.0 | Module:


type Executor

type Executor struct {
	// contains filtered or unexported fields

Executor object

func NewExecutor

func NewExecutor(iacType, iacVersion, cloudType, filePath, dirPath, configFile, policyPath string) (e *Executor, err error)

NewExecutor creates a runtime object

func (*Executor) Execute

func (e *Executor) Execute() (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

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

Output is the runtime engine output

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier