package
0.31.3
Repository: https://github.com/snyk/policy-engine.git
Documentation: pkg.go.dev

# Functions

NewEngine constructs a new Engine instance.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ErrEvalTimedOut indicates that evaluation took too long and was cancelled.
ErrFailedToReadBundle indicates that an error occurred while consuming a bundle.Reader.
ErrInitTimedOut indicates that initialization took too long and was cancelled.
ErrQueryTimedOut indicates that a query took too long and was cancelled.
FailedToCompile indicates that more than the maximum number of errors occurred during the compilation stage.
FailedToLoadRegoAPI indicates that an error occurred while initializing the snyk Rego API.
FailedToLoadRules indicates that an error occurred while consuming the rego and data producers provided to the engine.

# Structs

Engine is responsible for evaluating some States with a given set of rules.
EngineOptions contains options for initializing an Engine instance.
EvalOptions contains options for Engine.Eval.
No description provided by the author
PolicyConsumer is an implementation of the data.Consumer interface that stores parsed modules, policies, and documents in-memory.
QueryOptions contain options for Engine.Query.
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author