Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParseParams ¶
type ParseRunner ¶
type ParseRunner struct {
Params *ParseParams
ConfigManager parser.CustomConfigManager
}
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 ¶
func (*VerifyRunner) Run ¶
func (r *VerifyRunner) Run(ctx context.Context) ([]output.CheckResult, error)
Run executes the Rego tests at the given PolicyPath(s)
Click to show internal directories.
Click to hide internal directories.