PluginInfo returns plugin info.
(modulePath string)
| 149 | |
| 150 | // PluginInfo returns plugin info. |
| 151 | func (m *Manager) PluginInfo(modulePath string) compat.Info { |
| 152 | m.mutex.RLock() |
| 153 | defer m.mutex.RUnlock() |
| 154 | |
| 155 | if p, ok := m.plugins[modulePath]; ok { |
| 156 | return p.PluginInfo() |
| 157 | } |
| 158 | fmt.Println("Could not get plugin info for", modulePath) |
| 159 | return compat.Info{ |
| 160 | Name: "UNKNOWN", |
| 161 | ModulePath: modulePath, |
| 162 | Description: "Oops something went wrong", |
| 163 | } |
| 164 | } |
| 165 | |
| 166 | // Instance returns an instance with the given ID. |
| 167 | func (m *Manager) Instance(pluginID uint) (compat.PluginInstance, error) { |
nothing calls this directly
no test coverage detected