FromConfig configures a CEL policy environment from a config file. This option supports all extensions supported by policies, whereas the cel.FromConfig supports a set of configuration ConfigOptionFactory values to handle extensions and other config features which may be defined outside of the `cel
(config *env.Config)
| 26 | // a set of configuration ConfigOptionFactory values to handle extensions and other config features |
| 27 | // which may be defined outside of the `cel` package. |
| 28 | func FromConfig(config *env.Config) cel.EnvOption { |
| 29 | return cel.FromConfig(config, ext.ExtensionOptionFactory) |
| 30 | } |