diskfakes

package
v2.160.8+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeManager

type FakeManager struct {
	GetEphemeralDevicePartitionerStub func() disk.Partitioner

	GetFormatterStub func() disk.Formatter

	GetMounterStub func() disk.Mounter

	GetMountsSearcherStub func() disk.MountsSearcher

	GetPersistentDevicePartitionerStub func(partitionerType string) (disk.Partitioner, error)

	GetRootDevicePartitionerStub func() disk.Partitioner

	GetUtilStub func() disk.Util
	// contains filtered or unexported fields
}

func (*FakeManager) GetEphemeralDevicePartitioner

func (fake *FakeManager) GetEphemeralDevicePartitioner() disk.Partitioner

func (*FakeManager) GetEphemeralDevicePartitionerCallCount

func (fake *FakeManager) GetEphemeralDevicePartitionerCallCount() int

func (*FakeManager) GetEphemeralDevicePartitionerReturns

func (fake *FakeManager) GetEphemeralDevicePartitionerReturns(result1 disk.Partitioner)

func (*FakeManager) GetEphemeralDevicePartitionerReturnsOnCall

func (fake *FakeManager) GetEphemeralDevicePartitionerReturnsOnCall(i int, result1 disk.Partitioner)

func (*FakeManager) GetFormatter

func (fake *FakeManager) GetFormatter() disk.Formatter

func (*FakeManager) GetFormatterCallCount

func (fake *FakeManager) GetFormatterCallCount() int

func (*FakeManager) GetFormatterReturns

func (fake *FakeManager) GetFormatterReturns(result1 disk.Formatter)

func (*FakeManager) GetFormatterReturnsOnCall

func (fake *FakeManager) GetFormatterReturnsOnCall(i int, result1 disk.Formatter)

func (*FakeManager) GetMounter

func (fake *FakeManager) GetMounter() disk.Mounter

func (*FakeManager) GetMounterCallCount

func (fake *FakeManager) GetMounterCallCount() int

func (*FakeManager) GetMounterReturns

func (fake *FakeManager) GetMounterReturns(result1 disk.Mounter)

func (*FakeManager) GetMounterReturnsOnCall

func (fake *FakeManager) GetMounterReturnsOnCall(i int, result1 disk.Mounter)

func (*FakeManager) GetMountsSearcher

func (fake *FakeManager) GetMountsSearcher() disk.MountsSearcher

func (*FakeManager) GetMountsSearcherCallCount

func (fake *FakeManager) GetMountsSearcherCallCount() int

func (*FakeManager) GetMountsSearcherReturns

func (fake *FakeManager) GetMountsSearcherReturns(result1 disk.MountsSearcher)

func (*FakeManager) GetMountsSearcherReturnsOnCall

func (fake *FakeManager) GetMountsSearcherReturnsOnCall(i int, result1 disk.MountsSearcher)

func (*FakeManager) GetPersistentDevicePartitioner

func (fake *FakeManager) GetPersistentDevicePartitioner(partitionerType string) (disk.Partitioner, error)

func (*FakeManager) GetPersistentDevicePartitionerArgsForCall

func (fake *FakeManager) GetPersistentDevicePartitionerArgsForCall(i int) string

func (*FakeManager) GetPersistentDevicePartitionerCallCount

func (fake *FakeManager) GetPersistentDevicePartitionerCallCount() int

func (*FakeManager) GetPersistentDevicePartitionerReturns

func (fake *FakeManager) GetPersistentDevicePartitionerReturns(result1 disk.Partitioner, result2 error)

func (*FakeManager) GetPersistentDevicePartitionerReturnsOnCall

func (fake *FakeManager) GetPersistentDevicePartitionerReturnsOnCall(i int, result1 disk.Partitioner, result2 error)

func (*FakeManager) GetRootDevicePartitioner

func (fake *FakeManager) GetRootDevicePartitioner() disk.Partitioner

func (*FakeManager) GetRootDevicePartitionerCallCount

func (fake *FakeManager) GetRootDevicePartitionerCallCount() int

func (*FakeManager) GetRootDevicePartitionerReturns

func (fake *FakeManager) GetRootDevicePartitionerReturns(result1 disk.Partitioner)

func (*FakeManager) GetRootDevicePartitionerReturnsOnCall

func (fake *FakeManager) GetRootDevicePartitionerReturnsOnCall(i int, result1 disk.Partitioner)

func (*FakeManager) GetUtil

func (fake *FakeManager) GetUtil() disk.Util

func (*FakeManager) GetUtilCallCount

func (fake *FakeManager) GetUtilCallCount() int

func (*FakeManager) GetUtilReturns

func (fake *FakeManager) GetUtilReturns(result1 disk.Util)

func (*FakeManager) GetUtilReturnsOnCall

func (fake *FakeManager) GetUtilReturnsOnCall(i int, result1 disk.Util)

func (*FakeManager) Invocations

func (fake *FakeManager) Invocations() map[string][][]interface{}

type FakeMounter

type FakeMounter struct {
	MountStub func(partitionPath, mountPoint string, mountOptions ...string) (err error)

	MountFilesystemStub func(partitionPath, mountPoint, fstype string, mountOptions ...string) (err error)

	UnmountStub func(partitionOrMountPoint string) (didUnmount bool, err error)

	RemountAsReadonlyStub func(mountPoint string) (err error)

	RemountStub func(fromMountPoint, toMountPoint string, mountOptions ...string) (err error)

	RemountInPlaceStub func(mountPoint string, mountOptions ...string) (err error)

	SwapOnStub func(partitionPath string) (err error)

	IsMountPointStub func(path string) (parititionPath string, result bool, err error)

	IsMountedStub func(devicePathOrMountPoint string) (result bool, err error)
	// contains filtered or unexported fields
}

func (*FakeMounter) Invocations

func (fake *FakeMounter) Invocations() map[string][][]interface{}

func (*FakeMounter) IsMountPoint

func (fake *FakeMounter) IsMountPoint(path string) (parititionPath string, result bool, err error)

func (*FakeMounter) IsMountPointArgsForCall

func (fake *FakeMounter) IsMountPointArgsForCall(i int) string

func (*FakeMounter) IsMountPointCallCount

func (fake *FakeMounter) IsMountPointCallCount() int

func (*FakeMounter) IsMountPointReturns

func (fake *FakeMounter) IsMountPointReturns(result1 string, result2 bool, result3 error)

func (*FakeMounter) IsMountPointReturnsOnCall

func (fake *FakeMounter) IsMountPointReturnsOnCall(i int, result1 string, result2 bool, result3 error)

func (*FakeMounter) IsMounted

func (fake *FakeMounter) IsMounted(devicePathOrMountPoint string) (result bool, err error)

func (*FakeMounter) IsMountedArgsForCall

func (fake *FakeMounter) IsMountedArgsForCall(i int) string

func (*FakeMounter) IsMountedCallCount

func (fake *FakeMounter) IsMountedCallCount() int

func (*FakeMounter) IsMountedReturns

func (fake *FakeMounter) IsMountedReturns(result1 bool, result2 error)

func (*FakeMounter) IsMountedReturnsOnCall

func (fake *FakeMounter) IsMountedReturnsOnCall(i int, result1 bool, result2 error)

func (*FakeMounter) Mount

func (fake *FakeMounter) Mount(partitionPath string, mountPoint string, mountOptions ...string) (err error)

func (*FakeMounter) MountArgsForCall

func (fake *FakeMounter) MountArgsForCall(i int) (string, string, []string)

func (*FakeMounter) MountCallCount

func (fake *FakeMounter) MountCallCount() int

func (*FakeMounter) MountFilesystem

func (fake *FakeMounter) MountFilesystem(partitionPath string, mountPoint string, fstype string, mountOptions ...string) (err error)

func (*FakeMounter) MountFilesystemArgsForCall

func (fake *FakeMounter) MountFilesystemArgsForCall(i int) (string, string, string, []string)

func (*FakeMounter) MountFilesystemCallCount

func (fake *FakeMounter) MountFilesystemCallCount() int

func (*FakeMounter) MountFilesystemReturns

func (fake *FakeMounter) MountFilesystemReturns(result1 error)

func (*FakeMounter) MountFilesystemReturnsOnCall

func (fake *FakeMounter) MountFilesystemReturnsOnCall(i int, result1 error)

func (*FakeMounter) MountReturns

func (fake *FakeMounter) MountReturns(result1 error)

func (*FakeMounter) MountReturnsOnCall

func (fake *FakeMounter) MountReturnsOnCall(i int, result1 error)

func (*FakeMounter) Remount

func (fake *FakeMounter) Remount(fromMountPoint string, toMountPoint string, mountOptions ...string) (err error)

func (*FakeMounter) RemountArgsForCall

func (fake *FakeMounter) RemountArgsForCall(i int) (string, string, []string)

func (*FakeMounter) RemountAsReadonly

func (fake *FakeMounter) RemountAsReadonly(mountPoint string) (err error)

func (*FakeMounter) RemountAsReadonlyArgsForCall

func (fake *FakeMounter) RemountAsReadonlyArgsForCall(i int) string

func (*FakeMounter) RemountAsReadonlyCallCount

func (fake *FakeMounter) RemountAsReadonlyCallCount() int

func (*FakeMounter) RemountAsReadonlyReturns

func (fake *FakeMounter) RemountAsReadonlyReturns(result1 error)

func (*FakeMounter) RemountAsReadonlyReturnsOnCall

func (fake *FakeMounter) RemountAsReadonlyReturnsOnCall(i int, result1 error)

func (*FakeMounter) RemountCallCount

func (fake *FakeMounter) RemountCallCount() int

func (*FakeMounter) RemountInPlace

func (fake *FakeMounter) RemountInPlace(mountPoint string, mountOptions ...string) (err error)

func (*FakeMounter) RemountInPlaceArgsForCall

func (fake *FakeMounter) RemountInPlaceArgsForCall(i int) (string, []string)

func (*FakeMounter) RemountInPlaceCallCount

func (fake *FakeMounter) RemountInPlaceCallCount() int

func (*FakeMounter) RemountInPlaceReturns

func (fake *FakeMounter) RemountInPlaceReturns(result1 error)

func (*FakeMounter) RemountInPlaceReturnsOnCall

func (fake *FakeMounter) RemountInPlaceReturnsOnCall(i int, result1 error)

func (*FakeMounter) RemountReturns

func (fake *FakeMounter) RemountReturns(result1 error)

func (*FakeMounter) RemountReturnsOnCall

func (fake *FakeMounter) RemountReturnsOnCall(i int, result1 error)

func (*FakeMounter) SwapOn

func (fake *FakeMounter) SwapOn(partitionPath string) (err error)

func (*FakeMounter) SwapOnArgsForCall

func (fake *FakeMounter) SwapOnArgsForCall(i int) string

func (*FakeMounter) SwapOnCallCount

func (fake *FakeMounter) SwapOnCallCount() int

func (*FakeMounter) SwapOnReturns

func (fake *FakeMounter) SwapOnReturns(result1 error)

func (*FakeMounter) SwapOnReturnsOnCall

func (fake *FakeMounter) SwapOnReturnsOnCall(i int, result1 error)

func (*FakeMounter) Unmount

func (fake *FakeMounter) Unmount(partitionOrMountPoint string) (didUnmount bool, err error)

func (*FakeMounter) UnmountArgsForCall

func (fake *FakeMounter) UnmountArgsForCall(i int) string

func (*FakeMounter) UnmountCallCount

func (fake *FakeMounter) UnmountCallCount() int

func (*FakeMounter) UnmountReturns

func (fake *FakeMounter) UnmountReturns(result1 bool, result2 error)

func (*FakeMounter) UnmountReturnsOnCall

func (fake *FakeMounter) UnmountReturnsOnCall(i int, result1 bool, result2 error)

Jump to

Keyboard shortcuts

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