Documentation ¶
Index ¶
- func IsCorruptedMnt(err error) bool
- func NewFakeMounter() *mount.FakeMounter
- func NewFakeSafeFormatAndMounter() *mount.SafeFormatAndMount
- type IMount
- type Mount
- 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
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCorruptedMnt ¶
func NewFakeMounter ¶
func NewFakeMounter() *mount.FakeMounter
NewFakeMounter returns fake mounter instance
func NewFakeSafeFormatAndMounter ¶
func NewFakeSafeFormatAndMounter() *mount.SafeFormatAndMount
NewFakeSafeFormatAndMounter returns base Fake mounter instance
Types ¶
type IMount ¶
type IMount interface { GetBaseMounter() *mount.SafeFormatAndMount ScanForAttach(devicePath string) error GetDevicePath(volumeID string) (string, error) IsLikelyNotMountPointAttach(targetpath string) (bool, error) IsLikelyNotMountPointDetach(targetpath string) (bool, error) UnmountPath(mountPath string) error GetInstanceID() (string, error) MakeFile(pathname string) error MakeDir(pathname string) error }
func GetMountProvider ¶
type Mount ¶
type Mount struct { }
func (*Mount) GetBaseMounter ¶
func (m *Mount) GetBaseMounter() *mount.SafeFormatAndMount
GetBaseMounter returns instance of SafeFormatAndMount
func (*Mount) GetDevicePath ¶
GetDevicePath returns the path of an attached block storage volume, specified by its id.
func (*Mount) GetInstanceID ¶
GetInstanceID from file
func (*Mount) IsLikelyNotMountPointAttach ¶
IsLikelyNotMountPointAttach
func (*Mount) IsLikelyNotMountPointDetach ¶
IsLikelyNotMountPointDetach
type MountMock ¶
MountMock is an autogenerated mock type for the IMount type ORIGINALLY GENERATED BY mockery with hand edits
func (*MountMock) GetBaseMounter ¶
func (_m *MountMock) GetBaseMounter() *mount.SafeFormatAndMount
GetBaseMounter provides a mock function
func (*MountMock) GetDevicePath ¶
GetDevicePath provides a mock function with given fields: volumeID
func (*MountMock) GetInstanceID ¶
GetInstanceID provides a mock function with given fields:
func (*MountMock) IsLikelyNotMountPointAttach ¶
IsLikelyNotMountPointAttach provides a mock function with given fields: targetpath
func (*MountMock) IsLikelyNotMountPointDetach ¶
IsLikelyNotMountPointDetach provides a mock function with given fields: targetpath
func (*MountMock) ScanForAttach ¶
ScanForAttach provides a mock function with given fields: devicePath
func (*MountMock) UnmountPath ¶
UnmountPath provides a mock function with given fields: mountPath