(sym plugin.Symbol, path string, args []string)
| 243 | } |
| 244 | |
| 245 | func 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 | |
| 257 | func (o *Options) loadPredicatePlugins(found map[string]string, done map[string][]string) error { |
| 258 | for _, pred := range o.PredicatePlugins { |
no test coverage detected
searching dependent graphs…