MCPcopy Index your code
hub / github.com/zalando/skipper / initFilterPlugin

Function initFilterPlugin

plugins.go:245–255  ·  view source on GitHub ↗
(sym plugin.Symbol, path string, args []string)

Source from the content-addressed store, hash-verified

243}
244
245func initFilterPlugin(sym plugin.Symbol, path string, args []string) (filters.Spec, error) {
246 fn, ok := sym.(func([]string) (filters.Spec, error))
247 if !ok {
248 return nil, fmt.Errorf("plugin %s's InitFilter function has wrong signature", path)
249 }
250 spec, err := fn(args)
251 if err != nil {
252 return nil, fmt.Errorf("plugin %s returned: %s", path, err)
253 }
254 return spec, nil
255}
256
257func (o *Options) loadPredicatePlugins(found map[string]string, done map[string][]string) error {
258 for _, pred := range o.PredicatePlugins {

Callers 2

findAndLoadPluginsMethod · 0.85
loadFilterPluginFunction · 0.85

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…