RegisterRemotePlugin registers a remote plugin in the manager without saving to disk. This allows remote plugins to be discoverable via GetPlugin/GetPlugins.
(plugin Plugin)
| 229 | // RegisterRemotePlugin registers a remote plugin in the manager without saving to disk. |
| 230 | // This allows remote plugins to be discoverable via GetPlugin/GetPlugins. |
| 231 | func (m *Manager) RegisterRemotePlugin(plugin Plugin) { |
| 232 | m.mu.Lock() |
| 233 | defer m.mu.Unlock() |
| 234 | m.plugins[plugin.Name()] = plugin |
| 235 | } |
| 236 | |
| 237 | // ClearRemotePlugins removes all remote plugins (identified by Path() == "[remote]"). |
| 238 | func (m *Manager) ClearRemotePlugins() { |
no test coverage detected