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

Function readPluginConfig

plugins.go:352–367  ·  view source on GitHub ↗
(plugin string)

Source from the content-addressed store, hash-verified

350}
351
352func readPluginConfig(plugin string) (conf []string, err error) {
353 data, err := os.ReadFile(plugin[:len(plugin)-3] + ".conf")
354 if err != nil {
355 if os.IsNotExist(err) {
356 return nil, nil
357 }
358 return nil, err
359 }
360 for line := range strings.SplitSeq(string(data), "\n") {
361 line = strings.TrimSpace(line)
362 if line != "" && line[0] != '#' {
363 conf = append(conf, line)
364 }
365 }
366 return conf, nil
367}

Callers 5

findAndLoadPluginsMethod · 0.85
loadPluginFunction · 0.85
loadFilterPluginFunction · 0.85
loadPredicatePluginFunction · 0.85
loadDataClientPluginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…