Plugins: Fix manifest verification (#24573)
This commit is contained in:
1 parent
20f0ee2f22
commit
892f9f789c
12 files changed
+116
-103
No files matched your search
@@ -55,7 +55,7 @@ type PluginStartFuncs struct {
|
||||
OnStart StartFunc
|
||||
}
|
||||
|
||||
// PluginDescriptor descriptor used for registering backend plugins.
|
||||
// PluginDescriptor is a descriptor used for registering backend plugins.
|
||||
type PluginDescriptor struct {
|
||||
pluginID string
|
||||
executablePath string
|
||||
@@ -64,6 +64,11 @@ type PluginDescriptor struct {
|
||||
startFns PluginStartFuncs
|
||||
}
|
||||
|
||||
// PluginID returns the plugin ID.
|
||||
func (pd PluginDescriptor) PluginID() string {
|
||||
return pd.pluginID
|
||||
}
|
||||
|
||||
// getV2PluginSet returns list of plugins supported on v2.
|
||||
func getV2PluginSet() goplugin.PluginSet {
|
||||
return goplugin.PluginSet{
|
||||
|
||||
Reference in new issue
Block a user