Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockCommand
- func (m *MockCommand) CombinedOutput() ([]byte, error)
- func (m *MockCommand) EXPECT() *MockCommandMockRecorder
- func (m *MockCommand) Output() ([]byte, error)
- func (m *MockCommand) Run() error
- func (m *MockCommand) SetDir(dir string)
- func (m *MockCommand) SetEnv(env []string)
- func (m *MockCommand) SetStderr(out io.Writer)
- func (m *MockCommand) SetStdin(in io.Reader)
- func (m *MockCommand) SetStdout(out io.Writer)
- func (m *MockCommand) Start() error
- func (m *MockCommand) StderrPipe() (io.ReadCloser, error)
- func (m *MockCommand) StdoutPipe() (io.ReadCloser, error)
- func (m *MockCommand) Stop()
- func (m *MockCommand) Wait() error
- type MockCommandMockRecorder
- func (mr *MockCommandMockRecorder) CombinedOutput() *gomock.Call
- func (mr *MockCommandMockRecorder) Output() *gomock.Call
- func (mr *MockCommandMockRecorder) Run() *gomock.Call
- func (mr *MockCommandMockRecorder) SetDir(dir any) *gomock.Call
- func (mr *MockCommandMockRecorder) SetEnv(env any) *gomock.Call
- func (mr *MockCommandMockRecorder) SetStderr(out any) *gomock.Call
- func (mr *MockCommandMockRecorder) SetStdin(in any) *gomock.Call
- func (mr *MockCommandMockRecorder) SetStdout(out any) *gomock.Call
- func (mr *MockCommandMockRecorder) Start() *gomock.Call
- func (mr *MockCommandMockRecorder) StderrPipe() *gomock.Call
- func (mr *MockCommandMockRecorder) StdoutPipe() *gomock.Call
- func (mr *MockCommandMockRecorder) Stop() *gomock.Call
- func (mr *MockCommandMockRecorder) Wait() *gomock.Call
- type MockDeviceUtils
- type MockDeviceUtilsMockRecorder
- type MockExecutor
- type MockExecutorMockRecorder
- type MockFileInterface
- type MockFileInterfaceMockRecorder
- type MockFileSystem
- func (m *MockFileSystem) EXPECT() *MockFileSystemMockRecorder
- func (m *MockFileSystem) IsNotExist(err error) bool
- func (m *MockFileSystem) MkdirAll(path string, perm os.FileMode) error
- func (m *MockFileSystem) OpenFile(name string, flag int, perm os.FileMode) (mountmanager.FileInterface, error)
- func (m *MockFileSystem) Remove(path string) error
- func (m *MockFileSystem) Stat(name string) (fs.FileInfo, error)
- type MockFileSystemMockRecorder
- func (mr *MockFileSystemMockRecorder) IsNotExist(err any) *gomock.Call
- func (mr *MockFileSystemMockRecorder) MkdirAll(path, perm any) *gomock.Call
- func (mr *MockFileSystemMockRecorder) OpenFile(name, flag, perm any) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Remove(path any) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Stat(name any) *gomock.Call
- type MockMounter
- func (m *MockMounter) CanSafelySkipMountPointCheck() bool
- func (m *MockMounter) EXPECT() *MockMounterMockRecorder
- func (m *MockMounter) GetMountRefs(pathname string) ([]string, error)
- func (m *MockMounter) IsLikelyNotMountPoint(file string) (bool, error)
- func (m *MockMounter) IsMountPoint(file string) (bool, error)
- func (m *MockMounter) List() ([]mount.MountPoint, error)
- func (m *MockMounter) Mount(source, target, fstype string, options []string) error
- func (m *MockMounter) MountSensitive(source, target, fstype string, options, sensitiveOptions []string) error
- func (m *MockMounter) MountSensitiveWithoutSystemd(source, target, fstype string, options, sensitiveOptions []string) error
- func (m *MockMounter) MountSensitiveWithoutSystemdWithMountFlags(source, target, fstype string, options, sensitiveOptions, mountFlags []string) error
- func (m *MockMounter) Unmount(target string) error
- type MockMounterMockRecorder
- func (mr *MockMounterMockRecorder) CanSafelySkipMountPointCheck() *gomock.Call
- func (mr *MockMounterMockRecorder) GetMountRefs(pathname any) *gomock.Call
- func (mr *MockMounterMockRecorder) IsLikelyNotMountPoint(file any) *gomock.Call
- func (mr *MockMounterMockRecorder) IsMountPoint(file any) *gomock.Call
- func (mr *MockMounterMockRecorder) List() *gomock.Call
- func (mr *MockMounterMockRecorder) Mount(source, target, fstype, options any) *gomock.Call
- func (mr *MockMounterMockRecorder) MountSensitive(source, target, fstype, options, sensitiveOptions any) *gomock.Call
- func (mr *MockMounterMockRecorder) MountSensitiveWithoutSystemd(source, target, fstype, options, sensitiveOptions any) *gomock.Call
- func (mr *MockMounterMockRecorder) MountSensitiveWithoutSystemdWithMountFlags(source, target, fstype, options, sensitiveOptions, mountFlags any) *gomock.Call
- func (mr *MockMounterMockRecorder) Unmount(target any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCommand ¶
type MockCommand struct {
// contains filtered or unexported fields
}
MockCommand is a mock of Command interface.
func NewMockCommand ¶
func NewMockCommand(ctrl *gomock.Controller) *MockCommand
NewMockCommand creates a new mock instance.
func (*MockCommand) CombinedOutput ¶
func (m *MockCommand) CombinedOutput() ([]byte, error)
CombinedOutput mocks base method.
func (*MockCommand) EXPECT ¶
func (m *MockCommand) EXPECT() *MockCommandMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCommand) Output ¶
func (m *MockCommand) Output() ([]byte, error)
Output mocks base method.
func (*MockCommand) SetStderr ¶
func (m *MockCommand) SetStderr(out io.Writer)
SetStderr mocks base method.
func (*MockCommand) SetStdin ¶
func (m *MockCommand) SetStdin(in io.Reader)
SetStdin mocks base method.
func (*MockCommand) SetStdout ¶
func (m *MockCommand) SetStdout(out io.Writer)
SetStdout mocks base method.
func (*MockCommand) StderrPipe ¶
func (m *MockCommand) StderrPipe() (io.ReadCloser, error)
StderrPipe mocks base method.
func (*MockCommand) StdoutPipe ¶
func (m *MockCommand) StdoutPipe() (io.ReadCloser, error)
StdoutPipe mocks base method.
type MockCommandMockRecorder ¶
type MockCommandMockRecorder struct {
// contains filtered or unexported fields
}
MockCommandMockRecorder is the mock recorder for MockCommand.
func (*MockCommandMockRecorder) CombinedOutput ¶
func (mr *MockCommandMockRecorder) CombinedOutput() *gomock.Call
CombinedOutput indicates an expected call of CombinedOutput.
func (*MockCommandMockRecorder) Output ¶
func (mr *MockCommandMockRecorder) Output() *gomock.Call
Output indicates an expected call of Output.
func (*MockCommandMockRecorder) Run ¶
func (mr *MockCommandMockRecorder) Run() *gomock.Call
Run indicates an expected call of Run.
func (*MockCommandMockRecorder) SetDir ¶
func (mr *MockCommandMockRecorder) SetDir(dir any) *gomock.Call
SetDir indicates an expected call of SetDir.
func (*MockCommandMockRecorder) SetEnv ¶
func (mr *MockCommandMockRecorder) SetEnv(env any) *gomock.Call
SetEnv indicates an expected call of SetEnv.
func (*MockCommandMockRecorder) SetStderr ¶
func (mr *MockCommandMockRecorder) SetStderr(out any) *gomock.Call
SetStderr indicates an expected call of SetStderr.
func (*MockCommandMockRecorder) SetStdin ¶
func (mr *MockCommandMockRecorder) SetStdin(in any) *gomock.Call
SetStdin indicates an expected call of SetStdin.
func (*MockCommandMockRecorder) SetStdout ¶
func (mr *MockCommandMockRecorder) SetStdout(out any) *gomock.Call
SetStdout indicates an expected call of SetStdout.
func (*MockCommandMockRecorder) Start ¶
func (mr *MockCommandMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockCommandMockRecorder) StderrPipe ¶
func (mr *MockCommandMockRecorder) StderrPipe() *gomock.Call
StderrPipe indicates an expected call of StderrPipe.
func (*MockCommandMockRecorder) StdoutPipe ¶
func (mr *MockCommandMockRecorder) StdoutPipe() *gomock.Call
StdoutPipe indicates an expected call of StdoutPipe.
func (*MockCommandMockRecorder) Stop ¶
func (mr *MockCommandMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
func (*MockCommandMockRecorder) Wait ¶
func (mr *MockCommandMockRecorder) Wait() *gomock.Call
Wait indicates an expected call of Wait.
type MockDeviceUtils ¶
type MockDeviceUtils struct {
// contains filtered or unexported fields
}
MockDeviceUtils is a mock of DeviceUtils interface.
func NewMockDeviceUtils ¶
func NewMockDeviceUtils(ctrl *gomock.Controller) *MockDeviceUtils
NewMockDeviceUtils creates a new mock instance.
func (*MockDeviceUtils) EXPECT ¶
func (m *MockDeviceUtils) EXPECT() *MockDeviceUtilsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDeviceUtils) GetDiskByIdPaths ¶
func (m *MockDeviceUtils) GetDiskByIdPaths(deviceName, partition string) []string
GetDiskByIdPaths mocks base method.
func (*MockDeviceUtils) VerifyDevicePath ¶
func (m *MockDeviceUtils) VerifyDevicePath(devicePaths []string) (string, error)
VerifyDevicePath mocks base method.
type MockDeviceUtilsMockRecorder ¶
type MockDeviceUtilsMockRecorder struct {
// contains filtered or unexported fields
}
MockDeviceUtilsMockRecorder is the mock recorder for MockDeviceUtils.
func (*MockDeviceUtilsMockRecorder) GetDiskByIdPaths ¶
func (mr *MockDeviceUtilsMockRecorder) GetDiskByIdPaths(deviceName, partition any) *gomock.Call
GetDiskByIdPaths indicates an expected call of GetDiskByIdPaths.
func (*MockDeviceUtilsMockRecorder) VerifyDevicePath ¶
func (mr *MockDeviceUtilsMockRecorder) VerifyDevicePath(devicePaths any) *gomock.Call
VerifyDevicePath indicates an expected call of VerifyDevicePath.
type MockExecutor ¶
type MockExecutor struct {
// contains filtered or unexported fields
}
MockExecutor is a mock of Executor interface.
func NewMockExecutor ¶
func NewMockExecutor(ctrl *gomock.Controller) *MockExecutor
NewMockExecutor creates a new mock instance.
func (*MockExecutor) Command ¶
func (m *MockExecutor) Command(cmd string, args ...string) exec.Cmd
Command mocks base method.
func (*MockExecutor) CommandContext ¶
CommandContext mocks base method.
func (*MockExecutor) EXPECT ¶
func (m *MockExecutor) EXPECT() *MockExecutorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockExecutorMockRecorder ¶
type MockExecutorMockRecorder struct {
// contains filtered or unexported fields
}
MockExecutorMockRecorder is the mock recorder for MockExecutor.
func (*MockExecutorMockRecorder) Command ¶
func (mr *MockExecutorMockRecorder) Command(cmd any, args ...any) *gomock.Call
Command indicates an expected call of Command.
func (*MockExecutorMockRecorder) CommandContext ¶
func (mr *MockExecutorMockRecorder) CommandContext(ctx, cmd any, args ...any) *gomock.Call
CommandContext indicates an expected call of CommandContext.
type MockFileInterface ¶
type MockFileInterface struct {
// contains filtered or unexported fields
}
MockFileInterface is a mock of FileInterface interface.
func NewMockFileInterface ¶
func NewMockFileInterface(ctrl *gomock.Controller) *MockFileInterface
NewMockFileInterface creates a new mock instance.
func (*MockFileInterface) Close ¶
func (m *MockFileInterface) Close() error
Close mocks base method.
func (*MockFileInterface) EXPECT ¶
func (m *MockFileInterface) EXPECT() *MockFileInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockFileInterfaceMockRecorder ¶
type MockFileInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockFileInterfaceMockRecorder is the mock recorder for MockFileInterface.
func (*MockFileInterfaceMockRecorder) Close ¶
func (mr *MockFileInterfaceMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
type MockFileSystem ¶
type MockFileSystem struct {
// contains filtered or unexported fields
}
MockFileSystem is a mock of FileSystem interface.
func NewMockFileSystem ¶
func NewMockFileSystem(ctrl *gomock.Controller) *MockFileSystem
NewMockFileSystem creates a new mock instance.
func (*MockFileSystem) EXPECT ¶
func (m *MockFileSystem) EXPECT() *MockFileSystemMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFileSystem) IsNotExist ¶
func (m *MockFileSystem) IsNotExist(err error) bool
IsNotExist mocks base method.
func (*MockFileSystem) MkdirAll ¶
func (m *MockFileSystem) MkdirAll(path string, perm os.FileMode) error
MkdirAll mocks base method.
func (*MockFileSystem) OpenFile ¶
func (m *MockFileSystem) OpenFile(name string, flag int, perm os.FileMode) (mountmanager.FileInterface, error)
OpenFile mocks base method.
func (*MockFileSystem) Remove ¶
func (m *MockFileSystem) Remove(path string) error
Remove mocks base method.
type MockFileSystemMockRecorder ¶
type MockFileSystemMockRecorder struct {
// contains filtered or unexported fields
}
MockFileSystemMockRecorder is the mock recorder for MockFileSystem.
func (*MockFileSystemMockRecorder) IsNotExist ¶
func (mr *MockFileSystemMockRecorder) IsNotExist(err any) *gomock.Call
IsNotExist indicates an expected call of IsNotExist.
func (*MockFileSystemMockRecorder) MkdirAll ¶
func (mr *MockFileSystemMockRecorder) MkdirAll(path, perm any) *gomock.Call
MkdirAll indicates an expected call of MkdirAll.
func (*MockFileSystemMockRecorder) OpenFile ¶
func (mr *MockFileSystemMockRecorder) OpenFile(name, flag, perm any) *gomock.Call
OpenFile indicates an expected call of OpenFile.
type MockMounter ¶
type MockMounter struct {
// contains filtered or unexported fields
}
MockMounter is a mock of Mounter interface.
func NewMockMounter ¶
func NewMockMounter(ctrl *gomock.Controller) *MockMounter
NewMockMounter creates a new mock instance.
func (*MockMounter) CanSafelySkipMountPointCheck ¶
func (m *MockMounter) CanSafelySkipMountPointCheck() bool
CanSafelySkipMountPointCheck mocks base method.
func (*MockMounter) EXPECT ¶
func (m *MockMounter) EXPECT() *MockMounterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMounter) GetMountRefs ¶
func (m *MockMounter) GetMountRefs(pathname string) ([]string, error)
GetMountRefs mocks base method.
func (*MockMounter) IsLikelyNotMountPoint ¶
func (m *MockMounter) IsLikelyNotMountPoint(file string) (bool, error)
IsLikelyNotMountPoint mocks base method.
func (*MockMounter) IsMountPoint ¶
func (m *MockMounter) IsMountPoint(file string) (bool, error)
IsMountPoint mocks base method.
func (*MockMounter) List ¶
func (m *MockMounter) List() ([]mount.MountPoint, error)
List mocks base method.
func (*MockMounter) Mount ¶
func (m *MockMounter) Mount(source, target, fstype string, options []string) error
Mount mocks base method.
func (*MockMounter) MountSensitive ¶
func (m *MockMounter) MountSensitive(source, target, fstype string, options, sensitiveOptions []string) error
MountSensitive mocks base method.
func (*MockMounter) MountSensitiveWithoutSystemd ¶
func (m *MockMounter) MountSensitiveWithoutSystemd(source, target, fstype string, options, sensitiveOptions []string) error
MountSensitiveWithoutSystemd mocks base method.
func (*MockMounter) MountSensitiveWithoutSystemdWithMountFlags ¶
func (m *MockMounter) MountSensitiveWithoutSystemdWithMountFlags(source, target, fstype string, options, sensitiveOptions, mountFlags []string) error
MountSensitiveWithoutSystemdWithMountFlags mocks base method.
func (*MockMounter) Unmount ¶
func (m *MockMounter) Unmount(target string) error
Unmount mocks base method.
type MockMounterMockRecorder ¶
type MockMounterMockRecorder struct {
// contains filtered or unexported fields
}
MockMounterMockRecorder is the mock recorder for MockMounter.
func (*MockMounterMockRecorder) CanSafelySkipMountPointCheck ¶
func (mr *MockMounterMockRecorder) CanSafelySkipMountPointCheck() *gomock.Call
CanSafelySkipMountPointCheck indicates an expected call of CanSafelySkipMountPointCheck.
func (*MockMounterMockRecorder) GetMountRefs ¶
func (mr *MockMounterMockRecorder) GetMountRefs(pathname any) *gomock.Call
GetMountRefs indicates an expected call of GetMountRefs.
func (*MockMounterMockRecorder) IsLikelyNotMountPoint ¶
func (mr *MockMounterMockRecorder) IsLikelyNotMountPoint(file any) *gomock.Call
IsLikelyNotMountPoint indicates an expected call of IsLikelyNotMountPoint.
func (*MockMounterMockRecorder) IsMountPoint ¶
func (mr *MockMounterMockRecorder) IsMountPoint(file any) *gomock.Call
IsMountPoint indicates an expected call of IsMountPoint.
func (*MockMounterMockRecorder) List ¶
func (mr *MockMounterMockRecorder) List() *gomock.Call
List indicates an expected call of List.
func (*MockMounterMockRecorder) Mount ¶
func (mr *MockMounterMockRecorder) Mount(source, target, fstype, options any) *gomock.Call
Mount indicates an expected call of Mount.
func (*MockMounterMockRecorder) MountSensitive ¶
func (mr *MockMounterMockRecorder) MountSensitive(source, target, fstype, options, sensitiveOptions any) *gomock.Call
MountSensitive indicates an expected call of MountSensitive.
func (*MockMounterMockRecorder) MountSensitiveWithoutSystemd ¶
func (mr *MockMounterMockRecorder) MountSensitiveWithoutSystemd(source, target, fstype, options, sensitiveOptions any) *gomock.Call
MountSensitiveWithoutSystemd indicates an expected call of MountSensitiveWithoutSystemd.
func (*MockMounterMockRecorder) MountSensitiveWithoutSystemdWithMountFlags ¶
func (mr *MockMounterMockRecorder) MountSensitiveWithoutSystemdWithMountFlags(source, target, fstype, options, sensitiveOptions, mountFlags any) *gomock.Call
MountSensitiveWithoutSystemdWithMountFlags indicates an expected call of MountSensitiveWithoutSystemdWithMountFlags.