MCPcopy
hub / github.com/caddyserver/caddy / NewMatcherCELLibrary

Function NewMatcherCELLibrary

modules/caddyhttp/celmatcher.go:450–455  ·  view source on GitHub ↗

NewMatcherCELLibrary creates a matcherLibrary from option setes.

(envOptions []cel.EnvOption, programOptions []cel.ProgramOption)

Source from the content-addressed store, hash-verified

448
449// NewMatcherCELLibrary creates a matcherLibrary from option setes.
450func NewMatcherCELLibrary(envOptions []cel.EnvOption, programOptions []cel.ProgramOption) cel.Library {
451 return &matcherCELLibrary{
452 envOptions: envOptions,
453 programOptions: programOptions,
454 }
455}
456
457func (lib *matcherCELLibrary) CompileOptions() []cel.EnvOption {
458 return lib.envOptions

Callers 6

CELLibraryMethod · 0.92
CELLibraryMethod · 0.85
CELLibraryMethod · 0.85
ProvisionMethod · 0.85
CELMatcherImplFunction · 0.85
CELLibraryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected