Engine implements the PolicyEngine interface for WASM policies
| 44 | |
| 45 | // Engine implements the PolicyEngine interface for WASM policies |
| 46 | type Engine struct { |
| 47 | executionTimeout time.Duration |
| 48 | logger *zerolog.Logger |
| 49 | // Embed common engine options |
| 50 | *engine.CommonEngineOptions |
| 51 | } |
| 52 | |
| 53 | // NewEngine creates a new WASM policy engine with the given options |
| 54 | func NewEngine(opts ...engine.Option) *Engine { |
nothing calls this directly
no outgoing calls
no test coverage detected