Versions in this module Expand all Collapse all v0 v0.0.1 Jun 21, 2023 v0.0.0 Jun 2, 2021 Changes in this version + func IsCorruptedMnt(err error) bool + func NewFakeMounter() *mount.FakeMounter + func NewFakeSafeFormatAndMounter() *mount.SafeFormatAndMount + type IMount interface + GetBaseMounter func() *mount.SafeFormatAndMount + GetDevicePath func(volumeID string) (string, error) + GetInstanceID func() (string, error) + IsLikelyNotMountPointAttach func(targetpath string) (bool, error) + IsLikelyNotMountPointDetach func(targetpath string) (bool, error) + MakeDir func(pathname string) error + MakeFile func(pathname string) error + ScanForAttach func(devicePath string) error + UnmountPath func(mountPath string) error + var MInstance IMount = nil + func GetMountProvider() (IMount, error) + type Mount struct + func (m *Mount) GetBaseMounter() *mount.SafeFormatAndMount + func (m *Mount) GetDevicePath(volumeID string) (string, error) + func (m *Mount) GetInstanceID() (string, error) + func (m *Mount) IsLikelyNotMountPointAttach(targetpath string) (bool, error) + func (m *Mount) IsLikelyNotMountPointDetach(targetpath string) (bool, error) + func (m *Mount) MakeDir(pathname string) error + func (m *Mount) MakeFile(pathname string) error + func (m *Mount) ScanForAttach(devicePath string) error + func (m *Mount) UnmountPath(mountPath string) error + type MountMock struct + func (_m *MountMock) GetBaseMounter() *mount.SafeFormatAndMount + func (_m *MountMock) GetDevicePath(volumeID string) (string, error) + func (_m *MountMock) GetInstanceID() (string, error) + func (_m *MountMock) IsLikelyNotMountPointAttach(targetpath string) (bool, error) + func (_m *MountMock) IsLikelyNotMountPointDetach(targetpath string) (bool, error) + func (_m *MountMock) MakeDir(pathname string) error + func (_m *MountMock) MakeFile(pathname string) error + func (_m *MountMock) ScanForAttach(devicePath string) error + func (_m *MountMock) UnmountPath(mountPath string) error