Adds DeviceMountablePlugin.CanDeviceMount check when retrieving plugins

This commit is contained in:
Vladimir Vivien
2019-03-28 10:39:32 -04:00
parent 1514bb2141
commit 3777514f83
15 changed files with 68 additions and 1 deletions

View File

@@ -312,6 +312,10 @@ func (plugin *TestPlugin) CanAttach(spec *volume.Spec) bool {
return true
}
func (plugin *TestPlugin) CanDeviceMount(spec *volume.Spec) (bool, error) {
return true, nil
}
func (plugin *TestPlugin) NewDeviceUnmounter() (volume.DeviceUnmounter, error) {
return plugin.NewDetacher()
}