MCPcopy
hub / github.com/apache/devlake / GetPlugin

Function GetPlugin

backend/core/plugin/hub.go:46–54  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

44}
45
46func GetPlugin(name string) (PluginMeta, errors.Error) {
47 if plugins == nil {
48 return nil, errors.Default.New("RegisterPlugin have never been called.")
49 }
50 if plugin, ok := plugins[name]; ok {
51 return plugin, nil
52 }
53 return nil, errors.Default.New(fmt.Sprintf("Plugin `%s` doesn't exist", name))
54}
55
56type PluginCallBack func(name string, plugin PluginMeta) errors.Error
57

Callers 1

TestHubFunction · 0.85

Calls 1

NewMethod · 0.65

Tested by 1

TestHubFunction · 0.68