Documentation ¶
Index ¶
- func NewFakeSafeMounter() (*mount.SafeFormatAndMount, error)
- func NewSafeMounter(_, _ bool) (*mount.SafeFormatAndMount, error)
- type FakeSafeMounter
- func (f *FakeSafeMounter) IsLikelyNotMountPoint(file string) (bool, error)
- func (f *FakeSafeMounter) IsMountPoint(file string) (bool, error)
- func (f *FakeSafeMounter) Mount(source, target, _ string, _ []string) error
- func (f *FakeSafeMounter) MountSensitive(source, target, _ string, _, _ []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) IsMountPoint ¶ added in v1.26.0
func (f *FakeSafeMounter) IsMountPoint(file string) (bool, error)
IsMountPoint overrides mount.FakeMounter.IsMountPoint.
func (*FakeSafeMounter) Mount ¶ added in v1.7.0
func (f *FakeSafeMounter) Mount(source, target, _ string, _ []string) error
Mount overrides mount.FakeMounter.Mount.
func (*FakeSafeMounter) MountSensitive ¶ added in v1.7.0
func (f *FakeSafeMounter) MountSensitive(source, target, _ string, _, _ []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.