NewMatcherCELLibrary creates a matcherLibrary from option setes.
(envOptions []cel.EnvOption, programOptions []cel.ProgramOption)
| 448 | |
| 449 | // NewMatcherCELLibrary creates a matcherLibrary from option setes. |
| 450 | func NewMatcherCELLibrary(envOptions []cel.EnvOption, programOptions []cel.ProgramOption) cel.Library { |
| 451 | return &matcherCELLibrary{ |
| 452 | envOptions: envOptions, |
| 453 | programOptions: programOptions, |
| 454 | } |
| 455 | } |
| 456 | |
| 457 | func (lib *matcherCELLibrary) CompileOptions() []cel.EnvOption { |
| 458 | return lib.envOptions |
no outgoing calls
no test coverage detected