Plugins: Perform plugin update check prior to uninstall (#36909)
* only uninstall if update is possible * add . * update lingo for clarity
This commit is contained in:
@@ -74,11 +74,12 @@ type DataRequestHandler interface {
|
||||
}
|
||||
|
||||
type PluginInstaller interface {
|
||||
// Install finds the plugin given the provided information
|
||||
// and installs in the provided plugins directory.
|
||||
// Install finds the plugin given the provided information and installs in the provided plugins directory.
|
||||
Install(ctx context.Context, pluginID, version, pluginsDirectory, pluginZipURL, pluginRepoURL string) error
|
||||
// Uninstall removes the specified plugin from the provided plugins directory.
|
||||
Uninstall(ctx context.Context, pluginPath string) error
|
||||
// GetUpdateInfo returns update information if the requested plugin is supported on the running system.
|
||||
GetUpdateInfo(pluginID, version, pluginRepoURL string) (UpdateInfo, error)
|
||||
}
|
||||
|
||||
type PluginInstallerLogger interface {
|
||||
|
||||
Reference in New Issue
Block a user