MCPcopy Create free account
hub / github.com/cel-expr/cel-go / FromConfig

Function FromConfig

policy/config.go:28–30  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

26// a set of configuration ConfigOptionFactory values to handle extensions and other config features
27// which may be defined outside of the `cel` package.
28func FromConfig(config *env.Config) cel.EnvOption {
29 return cel.FromConfig(config, ext.ExtensionOptionFactory)
30}

Callers 4

TestConfigFunction · 0.70
TestConfigErrorsFunction · 0.70
compileRuleMethod · 0.70
compileFunction · 0.70

Calls 1

FromConfigFunction · 0.92

Tested by 4

TestConfigFunction · 0.56
TestConfigErrorsFunction · 0.56
compileRuleMethod · 0.56
compileFunction · 0.56