mounter

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 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(useCSIProxyGAInterface 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) 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.

Jump to

Keyboard shortcuts

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