Documentation ¶
Index ¶
- type IMount
- type Mount
- func (m *Mount) FormatAndMount(source string, target string, fstype string, options []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) ScanForAttach(devicePath string) error
- func (m *Mount) UnmountPath(mountPath string) error
- type MountMock
- func (_m *MountMock) FormatAndMount(source string, target string, fstype string, options []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) ScanForAttach(devicePath string) error
- func (_m *MountMock) UnmountPath(mountPath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IMount ¶
type IMount interface { ScanForAttach(devicePath string) error IsLikelyNotMountPointAttach(targetpath string) (bool, error) FormatAndMount(source string, target string, fstype string, options []string) error IsLikelyNotMountPointDetach(targetpath string) (bool, error) UnmountPath(mountPath string) error GetInstanceID() (string, error) }
func GetMountProvider ¶
type Mount ¶
type Mount struct { }
func (*Mount) FormatAndMount ¶
FormatAndMount
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) FormatAndMount ¶
func (_m *MountMock) FormatAndMount(source string, target string, fstype string, options []string) error
FormatAndMount provides a mock function with given fields: source, target, fstype, options
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