| 107 | } |
| 108 | |
| 109 | type compiler struct { |
| 110 | envOptions []cel.EnvOption |
| 111 | policyParserOptions []policy.ParserOption |
| 112 | policyCompilerOptions []policy.CompilerOption |
| 113 | policyMetadataEnvOptions []PolicyMetadataEnvOption |
| 114 | env *cel.Env |
| 115 | envErr error |
| 116 | doOnce sync.Once |
| 117 | } |
| 118 | |
| 119 | // NewCompiler creates a new compiler with a set of functional options. |
| 120 | func NewCompiler(opts ...any) (Compiler, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected