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

Method SetContextVariable

common/env/env.go:138–141  ·  view source on GitHub ↗

SetContextVariable configures the ContextVariable for this configuration.

(ctx *ContextVariable)

Source from the content-addressed store, hash-verified

136
137// SetContextVariable configures the ContextVariable for this configuration.
138func (c *Config) SetContextVariable(ctx *ContextVariable) *Config {
139 c.ContextVariable = ctx
140 return c
141}
142
143// AddFunctionDecls adds one or more functions to the config, converting them to serializable values first.
144//

Callers 7

envProtoToConfigFunction · 0.95
ToConfigMethod · 0.95
TestEnvToConfigFunction · 0.80
TestEnvFromConfigFunction · 0.80
TestEnvFromConfigErrorsFunction · 0.80
TestConfigFunction · 0.80
TestConfigValidateErrorsFunction · 0.80

Calls

no outgoing calls

Tested by 5

TestEnvToConfigFunction · 0.64
TestEnvFromConfigFunction · 0.64
TestEnvFromConfigErrorsFunction · 0.64
TestConfigFunction · 0.64
TestConfigValidateErrorsFunction · 0.64