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

Method AddIncludedFunctions

common/env/env.go:681–684  ·  view source on GitHub ↗

AddIncludedFunctions allow-lists one or more functions from the subset. Note, this option will override any excluded functions.

(funcs ...*Function)

Source from the content-addressed store, hash-verified

679//
680// Note, this option will override any excluded functions.
681func (lib *LibrarySubset) AddIncludedFunctions(funcs ...*Function) *LibrarySubset {
682 lib.IncludeFunctions = append(lib.IncludeFunctions, funcs...)
683 return lib
684}
685
686// AddExcludedFunctions deny-lists one or more functions from the subset.
687func (lib *LibrarySubset) AddExcludedFunctions(funcs ...*Function) *LibrarySubset {

Callers 7

envToStdLibFunction · 0.95
TestEnvFromConfigFunction · 0.80
TestSubsetStdLibMergeFunction · 0.80
TestConfigFunction · 0.80
TestSubsetFunctionFunction · 0.80

Calls

no outgoing calls

Tested by 6

TestEnvFromConfigFunction · 0.64
TestSubsetStdLibMergeFunction · 0.64
TestConfigFunction · 0.64
TestSubsetFunctionFunction · 0.64