Plugins: Separate manager read/write components (#50313)
* separate manager read/write * guarantee consistency in test
This commit is contained in:
@@ -15,6 +15,9 @@ type Store interface {
|
||||
Plugin(ctx context.Context, pluginID string) (PluginDTO, bool)
|
||||
// Plugins returns plugins by their requested type.
|
||||
Plugins(ctx context.Context, pluginTypes ...Type) []PluginDTO
|
||||
}
|
||||
|
||||
type Manager interface {
|
||||
// Add adds a plugin to the store.
|
||||
Add(ctx context.Context, pluginID, version string) error
|
||||
// Remove removes a plugin from the store.
|
||||
|
||||
Reference in New Issue
Block a user