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

Function NewConfig

common/env/env.go:30–34  ·  view source on GitHub ↗

NewConfig creates an instance of a YAML serializable CEL environment configuration.

(name string)

Source from the content-addressed store, hash-verified

28
29// NewConfig creates an instance of a YAML serializable CEL environment configuration.
30func NewConfig(name string) *Config {
31 return &Config{
32 Name: name,
33 }
34}
35
36// Config represents a serializable form of the CEL environment configuration.
37//

Callers 11

envProtoToConfigFunction · 0.92
ToConfigMethod · 0.92
TestEnvToConfigFunction · 0.92
TestEnvFromConfigFunction · 0.92
TestEnvFromConfigErrorsFunction · 0.92
TestConfigToYAMLFunction · 0.85
TestConfigFunction · 0.85
TestConfigValidateErrorsFunction · 0.85

Calls

no outgoing calls

Tested by 9

TestEnvToConfigFunction · 0.74
TestEnvFromConfigFunction · 0.74
TestEnvFromConfigErrorsFunction · 0.74
TestConfigToYAMLFunction · 0.68
TestConfigFunction · 0.68
TestConfigValidateErrorsFunction · 0.68