mocks

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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

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) Run

func (m *MockCommand) Run() error

Run mocks base method.

func (*MockCommand) SetDir

func (m *MockCommand) SetDir(dir string)

SetDir mocks base method.

func (*MockCommand) SetEnv

func (m *MockCommand) SetEnv(env []string)

SetEnv 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) Start

func (m *MockCommand) Start() error

Start 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.

func (*MockCommand) Stop

func (m *MockCommand) Stop()

Stop mocks base method.

func (*MockCommand) Wait

func (m *MockCommand) Wait() error

Wait 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

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

func (m *MockExecutor) CommandContext(ctx context.Context, cmd string, args ...string) exec.Cmd

CommandContext mocks base method.

func (*MockExecutor) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockExecutor) LookPath

func (m *MockExecutor) LookPath(file string) (string, error)

LookPath mocks base method.

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.

func (*MockExecutorMockRecorder) LookPath

func (mr *MockExecutorMockRecorder) LookPath(file any) *gomock.Call

LookPath indicates an expected call of LookPath.

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

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

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

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.

func (*MockFileSystem) Stat

func (m *MockFileSystem) Stat(name string) (fs.FileInfo, error)

Stat 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.

func (*MockFileSystemMockRecorder) Remove

func (mr *MockFileSystemMockRecorder) Remove(path any) *gomock.Call

Remove indicates an expected call of Remove.

func (*MockFileSystemMockRecorder) Stat

func (mr *MockFileSystemMockRecorder) Stat(name any) *gomock.Call

Stat indicates an expected call of Stat.

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.

func (*MockMounterMockRecorder) Unmount

func (mr *MockMounterMockRecorder) Unmount(target any) *gomock.Call

Unmount indicates an expected call of Unmount.

Jump to

Keyboard shortcuts

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