Documentation ¶
Index ¶
- func NewCustomFakeSafeMounter(mounter mount.Interface, exec exec.Interface) *mount.SafeFormatAndMount
- func NewFakeSafeBlockingMounter(readyToExecute chan chan struct{}) *mount.SafeFormatAndMount
- func NewFakeSafeMounter() *mount.SafeFormatAndMount
- func NewFakeSafeMounterWithCustomExec(exec exec.Interface) *mount.SafeFormatAndMount
- func NewFakeStatter(mounter *mount.SafeFormatAndMount) *fakeStatter
- func NewFakeStatterWithOptions(mounter *mount.SafeFormatAndMount, options FakeStatterOptions) *fakeStatter
- func NewSafeMounter(maxConcurrentFormat int, concurrentFormatTimeout time.Duration) (*mount.SafeFormatAndMount, error)
- func NewStatter(mounter *mount.SafeFormatAndMount) *realStatter
- type FakeBlockingMounter
- type FakeStatterOptions
- type Statter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCustomFakeSafeMounter ¶ added in v0.6.0
func NewFakeSafeBlockingMounter ¶ added in v0.6.0
func NewFakeSafeBlockingMounter(readyToExecute chan chan struct{}) *mount.SafeFormatAndMount
func NewFakeSafeMounter ¶ added in v0.2.0
func NewFakeSafeMounter() *mount.SafeFormatAndMount
func NewFakeSafeMounterWithCustomExec ¶ added in v0.6.0
func NewFakeStatter ¶ added in v0.7.0
func NewFakeStatter(mounter *mount.SafeFormatAndMount) *fakeStatter
func NewFakeStatterWithOptions ¶ added in v1.13.3
func NewFakeStatterWithOptions(mounter *mount.SafeFormatAndMount, options FakeStatterOptions) *fakeStatter
func NewSafeMounter ¶ added in v0.2.0
func NewStatter ¶ added in v0.7.0
func NewStatter(mounter *mount.SafeFormatAndMount) *realStatter
Types ¶
type FakeBlockingMounter ¶ added in v0.6.0
type FakeBlockingMounter struct { *mount.FakeMounter ReadyToExecute chan chan struct{} }
func (*FakeBlockingMounter) Mount ¶ added in v0.6.0
func (mounter *FakeBlockingMounter) Mount(source string, target string, fstype string, options []string) error
Mount is overridden and adds functionality to finely control the order of execution of FakeMounter's Mount calls. Upon starting a Mount, it passes a chan 'executeMount' into readyToExecute, then blocks on executeMount. The test calling this function can block on readyToExecute to ensure that the operation has started and allowed the Mount to continue by passing a struct into executeMount.
type FakeStatterOptions ¶ added in v1.13.3
type FakeStatterOptions struct {
IsBlock bool
}
Click to show internal directories.
Click to hide internal directories.