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:
Will Browne
2021-07-29 11:52:23 +02:00
committed by GitHub
parent 8ebba0a93d
commit 08a73a5291
5 changed files with 45 additions and 7 deletions
+3 -2
View File
@@ -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 {