Plugins: Make it possible to support multiple plugin versions (#82116)
* first pass * use version in more places * add comment * update installer * fix wire * fix tests * tidy * simplify changes * fix in mem * remove unused step * fix step dupe logic for child plugins + add tests
This commit is contained in:
@@ -14,7 +14,7 @@ type Installer interface {
|
||||
// Add adds a new plugin.
|
||||
Add(ctx context.Context, pluginID, version string, opts CompatOpts) error
|
||||
// Remove removes an existing plugin.
|
||||
Remove(ctx context.Context, pluginID string) error
|
||||
Remove(ctx context.Context, pluginID, version string) error
|
||||
}
|
||||
|
||||
type PluginSource interface {
|
||||
@@ -25,7 +25,7 @@ type PluginSource interface {
|
||||
|
||||
type FileStore interface {
|
||||
// File retrieves a plugin file.
|
||||
File(ctx context.Context, pluginID, filename string) (*File, error)
|
||||
File(ctx context.Context, pluginID, pluginVersion, filename string) (*File, error)
|
||||
}
|
||||
|
||||
type File struct {
|
||||
|
||||
Reference in New Issue
Block a user