runner

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParseParams

type ParseParams struct {
	Input   string
	Combine bool
}

type ParseRunner

type ParseRunner struct {
	Params        *ParseParams
	ConfigManager parser.CustomConfigManager
}

func (*ParseRunner) Run

func (r *ParseRunner) Run(ctx context.Context, fileList []string) (string, error)

type TestRunner

type TestRunner struct {
	Trace         bool
	Policy        []string
	Data          []string
	Update        []string
	Ignore        string
	Input         string
	Namespace     []string
	AllNamespaces bool `mapstructure:"all-namespaces"`
	Combine       bool
	// contains filtered or unexported fields
}

func (*TestRunner) GetResult

func (t *TestRunner) GetResult(ctx context.Context, namespaces []string, input interface{}) (output.CheckResult, error)

GetResult returns the result of testing the structured data against their policies

func (*TestRunner) Run

func (t *TestRunner) Run(ctx context.Context, fileList []string) ([]output.CheckResult, error)

Run executes the TestRunner, verifying all Rego policies against the given list of configuration files.

type VerifyRunner

type VerifyRunner struct {
	Trace  bool
	Policy []string
	Data   []string
}

func (*VerifyRunner) Run

Run executes the Rego tests at the given PolicyPath(s)

Jump to

Keyboard shortcuts

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