engine

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoPoliciesMatched = errors.New("no matching policies")

ErrNoPoliciesMatched indicates that no policies were matched.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	DefaultPolicyVersion string `yaml:"defaultPolicyVersion"`
	NumWorkers           uint   `yaml:"numWorkers"`
}

func (*Conf) Key

func (c *Conf) Key() string

func (*Conf) SetDefaults

func (c *Conf) SetDefaults()

func (*Conf) Validate

func (c *Conf) Validate() error

type Engine

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

func New

func New(ctx context.Context, compileMgr *compile.Manager, auditLog audit.Log) (*Engine, error)

func NewEphemeral

func NewEphemeral(ctx context.Context, compileMgr *compile.Manager) (*Engine, error)

func (*Engine) Check

func (engine *Engine) Check(ctx context.Context, inputs []*enginev1.CheckInput) ([]*enginev1.CheckOutput, error)

Jump to

Keyboard shortcuts

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