summaryrefslogtreecommitdiff
path: root/vendor/github.com/moby/swarmkit/v2/agent/csi/plugin/manager.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/moby/swarmkit/v2/agent/csi/plugin/manager.go')
-rw-r--r--vendor/github.com/moby/swarmkit/v2/agent/csi/plugin/manager.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/github.com/moby/swarmkit/v2/agent/csi/plugin/manager.go b/vendor/github.com/moby/swarmkit/v2/agent/csi/plugin/manager.go
index 39bb60f450..26c74f79f5 100644
--- a/vendor/github.com/moby/swarmkit/v2/agent/csi/plugin/manager.go
+++ b/vendor/github.com/moby/swarmkit/v2/agent/csi/plugin/manager.go
@@ -18,9 +18,9 @@ const (
DockerCSIPluginCap = "csinode"
)
-// PluginManager manages the multiple CSI plugins that may be in use on the
-// node. PluginManager should be thread-safe.
-type PluginManager interface {
+// Manager manages the multiple CSI plugins that may be in use on the
+// node. Manager should be thread-safe.
+type Manager interface {
// Get gets the plugin with the given name
Get(name string) (NodePlugin, error)
@@ -43,7 +43,7 @@ type pluginManager struct {
pg plugingetter.PluginGetter
}
-func NewPluginManager(pg plugingetter.PluginGetter, secrets SecretGetter) PluginManager {
+func NewManager(pg plugingetter.PluginGetter, secrets SecretGetter) Manager {
return &pluginManager{
plugins: map[string]NodePlugin{},
newNodePluginFunc: NewNodePlugin,