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

Method AddIncludedFunctions

common/env/env.go:683–686  ·  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

681//
682// Note, this option will override any excluded functions.
683func (lib *LibrarySubset) AddIncludedFunctions(funcs ...*Function) *LibrarySubset {
684 lib.IncludeFunctions = append(lib.IncludeFunctions, funcs...)
685 return lib
686}
687
688// AddExcludedFunctions deny-lists one or more functions from the subset.
689func (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