Versions in this module Expand all Collapse all v1 v1.16.3 Oct 23, 2019 Changes in this version + const ErrDeviceNotFound + const ErrDeviceNotSupported + type BlockVolumePathHandler interface + AttachFileDevice func(path string) (string, error) + FindGlobalMapPathUUIDFromPod func(pluginDir, mapPath string, podUID types.UID) (string, error) + GetDeviceSymlinkRefs func(devPath string, mapPath string) ([]string, error) + GetLoopDevice func(path string) (string, error) + IsSymlinkExist func(mapPath string) (bool, error) + MapDevice func(devicePath string, mapPath string, linkName string) error + RemoveLoopDevice func(device string) error + RemoveMapPath func(mapPath string) error + UnmapDevice func(mapPath string, linkName string) error + func NewBlockVolumePathHandler() BlockVolumePathHandler + type VolumePathHandler struct + func (v VolumePathHandler) AttachFileDevice(path string) (string, error) + func (v VolumePathHandler) FindGlobalMapPathUUIDFromPod(pluginDir, mapPath string, podUID types.UID) (string, error) + func (v VolumePathHandler) GetDeviceSymlinkRefs(devPath string, mapPath string) ([]string, error) + func (v VolumePathHandler) GetLoopDevice(path string) (string, error) + func (v VolumePathHandler) IsSymlinkExist(mapPath string) (bool, error) + func (v VolumePathHandler) MapDevice(devicePath string, mapPath string, linkName string) error + func (v VolumePathHandler) RemoveLoopDevice(device string) error + func (v VolumePathHandler) RemoveMapPath(mapPath string) error + func (v VolumePathHandler) UnmapDevice(mapPath string, linkName string) error