UnregisterPluginProviders removes all provider appliers owned by one plugin.
(owner string)
| 84 | |
| 85 | // UnregisterPluginProviders removes all provider appliers owned by one plugin. |
| 86 | func UnregisterPluginProviders(owner string) { |
| 87 | owner = strings.TrimSpace(owner) |
| 88 | if owner == "" { |
| 89 | return |
| 90 | } |
| 91 | providerAppliersMu.Lock() |
| 92 | defer providerAppliersMu.Unlock() |
| 93 | for provider, record := range pluginProviderAppliers { |
| 94 | if record.owner == owner { |
| 95 | delete(pluginProviderAppliers, provider) |
| 96 | } |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | // ClearPluginProviders removes all plugin-owned provider appliers. |
| 101 | func ClearPluginProviders() { |