Unregister csiplugin even if socket path is gone

Signed-off-by: Ted Yu <yuzhihong@gmail.com>
This commit is contained in:
Ted Yu
2020-03-31 06:57:05 -07:00
parent acd97b42f3
commit c7bde41478
6 changed files with 67 additions and 26 deletions

View File

@@ -75,6 +75,18 @@ type actualStateOfWorld struct {
var _ ActualStateOfWorld = &actualStateOfWorld{}
// NamedPluginHandler holds information for handler and the name of the plugin
type NamedPluginHandler struct {
Handler PluginHandler
Name string
}
// SocketPluginHandlers contains the map from socket path to NamedPluginHandler
type SocketPluginHandlers struct {
Handlers map[string]NamedPluginHandler
sync.Mutex
}
// PluginInfo holds information of a plugin
type PluginInfo struct {
SocketPath string