mounter

package
v1.30.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

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

func NewSafeMounter(_, _ bool) (*mount.SafeFormatAndMount, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL