Documentation ¶
Index ¶
- func NewFakeSafeMounter() (*mount.SafeFormatAndMount, error)
- func NewSafeMounter(useCSIProxyGAInterface bool) (*mount.SafeFormatAndMount, error)
- type FakeSafeMounter
- func (f *FakeSafeMounter) IsLikelyNotMountPoint(file string) (bool, error)
- func (f *FakeSafeMounter) Mount(source, target, fstype string, options []string) error
- func (f *FakeSafeMounter) MountSensitive(source, target, fstype string, options, sensitiveOptions []string) error
- func (f *FakeSafeMounter) SetNextCommandOutputScripts(scripts ...testingexec.FakeAction)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFakeSafeMounter ¶ added in v1.7.0
func NewFakeSafeMounter() (*mount.SafeFormatAndMount, error)
NewFakeSafeMounter creates a mount.SafeFormatAndMount instance suitable for use in unit tests.
func NewSafeMounter ¶
Types ¶
type FakeSafeMounter ¶ added in v1.7.0
type FakeSafeMounter struct { mount.FakeMounter testingexec.FakeExec }
FakeSafeMounter implements a mount.Interface interface suitable for use in unit tests.
func (*FakeSafeMounter) IsLikelyNotMountPoint ¶ added in v1.7.0
func (f *FakeSafeMounter) IsLikelyNotMountPoint(file string) (bool, error)
IsLikelyNotMountPoint overrides mount.FakeMounter.IsLikelyNotMountPoint.
func (*FakeSafeMounter) Mount ¶ added in v1.7.0
func (f *FakeSafeMounter) Mount(source, target, fstype string, options []string) error
Mount overrides mount.FakeMounter.Mount.
func (*FakeSafeMounter) MountSensitive ¶ added in v1.7.0
func (f *FakeSafeMounter) MountSensitive(source, target, fstype string, options, sensitiveOptions []string) error
MountSensitive overrides mount.FakeMounter.MountSensitive.
func (*FakeSafeMounter) SetNextCommandOutputScripts ¶ added in v1.7.0
func (f *FakeSafeMounter) SetNextCommandOutputScripts(scripts ...testingexec.FakeAction)
SetNextCommandOutputScripts sets the output scripts for the next sequence of command invocations.
Click to show internal directories.
Click to hide internal directories.