mocks

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

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 MockCryptSetupClient added in v1.0.0

type MockCryptSetupClient struct {
	// contains filtered or unexported fields
}

MockCryptSetupClient is a mock of CryptSetupClient interface.

func NewMockCryptSetupClient added in v1.0.0

func NewMockCryptSetupClient(ctrl *gomock.Controller) *MockCryptSetupClient

NewMockCryptSetupClient creates a new mock instance.

func (*MockCryptSetupClient) EXPECT added in v1.0.0

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

func (*MockCryptSetupClient) Init added in v1.0.0

Init mocks base method.

func (*MockCryptSetupClient) InitByName added in v1.0.0

func (m *MockCryptSetupClient) InitByName(arg0 string) (cryptsetupclient.Device, error)

InitByName mocks base method.

type MockCryptSetupClientMockRecorder added in v1.0.0

type MockCryptSetupClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockCryptSetupClientMockRecorder is the mock recorder for MockCryptSetupClient.

func (*MockCryptSetupClientMockRecorder) Init added in v1.0.0

Init indicates an expected call of Init.

func (*MockCryptSetupClientMockRecorder) InitByName added in v1.0.0

func (mr *MockCryptSetupClientMockRecorder) InitByName(arg0 any) *gomock.Call

InitByName indicates an expected call of InitByName.

type MockDevice added in v1.0.0

type MockDevice struct {
	// contains filtered or unexported fields
}

MockDevice is a mock of Device interface.

func NewMockDevice added in v1.0.0

func NewMockDevice(ctrl *gomock.Controller) *MockDevice

NewMockDevice creates a new mock instance.

func (*MockDevice) ActivateByPassphrase added in v1.0.0

func (m *MockDevice) ActivateByPassphrase(deviceName string, keyslot int, passphrase string, flags int) error

ActivateByPassphrase mocks base method.

func (*MockDevice) ActivateByVolumeKey added in v1.0.0

func (m *MockDevice) ActivateByVolumeKey(deviceName, volumeKey string, volumeKeySize, flags int) error

ActivateByVolumeKey mocks base method.

func (*MockDevice) Deactivate added in v1.0.0

func (m *MockDevice) Deactivate(arg0 string) error

Deactivate mocks base method.

func (*MockDevice) Dump added in v1.0.0

func (m *MockDevice) Dump() int

Dump mocks base method.

func (*MockDevice) EXPECT added in v1.0.0

func (m *MockDevice) EXPECT() *MockDeviceMockRecorder

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

func (*MockDevice) Format added in v1.0.0

Format mocks base method.

func (*MockDevice) Free added in v1.0.0

func (m *MockDevice) Free() bool

Free mocks base method.

func (*MockDevice) KeyslotAddByVolumeKey added in v1.0.0

func (m *MockDevice) KeyslotAddByVolumeKey(arg0 int, arg1, arg2 string) error

KeyslotAddByVolumeKey mocks base method.

func (*MockDevice) Load added in v1.0.0

func (m *MockDevice) Load(arg0 cryptsetup.DeviceType) error

Load mocks base method.

func (*MockDevice) Type added in v1.0.0

func (m *MockDevice) Type() string

Type mocks base method.

func (*MockDevice) VolumeKeyGet added in v1.0.0

func (m *MockDevice) VolumeKeyGet(keyslot int, passphrase string) ([]byte, int, error)

VolumeKeyGet mocks base method.

type MockDeviceMockRecorder added in v1.0.0

type MockDeviceMockRecorder struct {
	// contains filtered or unexported fields
}

MockDeviceMockRecorder is the mock recorder for MockDevice.

func (*MockDeviceMockRecorder) ActivateByPassphrase added in v1.0.0

func (mr *MockDeviceMockRecorder) ActivateByPassphrase(deviceName, keyslot, passphrase, flags any) *gomock.Call

ActivateByPassphrase indicates an expected call of ActivateByPassphrase.

func (*MockDeviceMockRecorder) ActivateByVolumeKey added in v1.0.0

func (mr *MockDeviceMockRecorder) ActivateByVolumeKey(deviceName, volumeKey, volumeKeySize, flags any) *gomock.Call

ActivateByVolumeKey indicates an expected call of ActivateByVolumeKey.

func (*MockDeviceMockRecorder) Deactivate added in v1.0.0

func (mr *MockDeviceMockRecorder) Deactivate(arg0 any) *gomock.Call

Deactivate indicates an expected call of Deactivate.

func (*MockDeviceMockRecorder) Dump added in v1.0.0

func (mr *MockDeviceMockRecorder) Dump() *gomock.Call

Dump indicates an expected call of Dump.

func (*MockDeviceMockRecorder) Format added in v1.0.0

func (mr *MockDeviceMockRecorder) Format(arg0, arg1 any) *gomock.Call

Format indicates an expected call of Format.

func (*MockDeviceMockRecorder) Free added in v1.0.0

func (mr *MockDeviceMockRecorder) Free() *gomock.Call

Free indicates an expected call of Free.

func (*MockDeviceMockRecorder) KeyslotAddByVolumeKey added in v1.0.0

func (mr *MockDeviceMockRecorder) KeyslotAddByVolumeKey(arg0, arg1, arg2 any) *gomock.Call

KeyslotAddByVolumeKey indicates an expected call of KeyslotAddByVolumeKey.

func (*MockDeviceMockRecorder) Load added in v1.0.0

func (mr *MockDeviceMockRecorder) Load(arg0 any) *gomock.Call

Load indicates an expected call of Load.

func (*MockDeviceMockRecorder) Type added in v1.0.0

func (mr *MockDeviceMockRecorder) Type() *gomock.Call

Type indicates an expected call of Type.

func (*MockDeviceMockRecorder) VolumeKeyGet added in v1.0.0

func (mr *MockDeviceMockRecorder) VolumeKeyGet(keyslot, passphrase any) *gomock.Call

VolumeKeyGet indicates an expected call of VolumeKeyGet.

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.

func (*MockFileInterface) Read added in v1.0.0

func (m *MockFileInterface) Read(arg0 []byte) (int, error)

Read mocks base method.

func (*MockFileInterface) Write added in v1.0.0

func (m *MockFileInterface) Write(arg0 []byte) (int, error)

Write mocks base method.

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.

func (*MockFileInterfaceMockRecorder) Read added in v1.0.0

func (mr *MockFileInterfaceMockRecorder) Read(arg0 any) *gomock.Call

Read indicates an expected call of Read.

func (*MockFileInterfaceMockRecorder) Write added in v1.0.0

func (mr *MockFileInterfaceMockRecorder) Write(arg0 any) *gomock.Call

Write indicates an expected call of Write.

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 (m *MockFileSystem) EvalSymlinks(path string) (string, error)

EvalSymlinks mocks base method.

func (*MockFileSystem) Glob added in v1.0.0

func (m *MockFileSystem) Glob(pattern string) ([]string, error)

Glob mocks base method.

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) Open added in v1.0.0

Open mocks base method.

func (*MockFileSystem) OpenFile

func (m *MockFileSystem) OpenFile(name string, flag int, perm os.FileMode) (filesystem.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 (mr *MockFileSystemMockRecorder) EvalSymlinks(path any) *gomock.Call

EvalSymlinks indicates an expected call of EvalSymlinks.

func (*MockFileSystemMockRecorder) Glob added in v1.0.0

func (mr *MockFileSystemMockRecorder) Glob(pattern any) *gomock.Call

Glob indicates an expected call of Glob.

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) Open added in v1.0.0

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

Open indicates an expected call of Open.

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 MockFormater added in v1.0.5

type MockFormater struct {
	// contains filtered or unexported fields
}

MockFormater is a mock of Formater interface.

func NewMockFormater added in v1.0.5

func NewMockFormater(ctrl *gomock.Controller) *MockFormater

NewMockFormater creates a new mock instance.

func (*MockFormater) EXPECT added in v1.0.5

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

func (*MockFormater) FormatAndMount added in v1.0.5

func (m *MockFormater) FormatAndMount(source, target, fstype string, options []string) error

FormatAndMount mocks base method.

type MockFormaterMockRecorder added in v1.0.5

type MockFormaterMockRecorder struct {
	// contains filtered or unexported fields
}

MockFormaterMockRecorder is the mock recorder for MockFormater.

func (*MockFormaterMockRecorder) FormatAndMount added in v1.0.5

func (mr *MockFormaterMockRecorder) FormatAndMount(source, target, fstype, options any) *gomock.Call

FormatAndMount indicates an expected call of FormatAndMount.

type MockHardwareInfo added in v1.0.6

type MockHardwareInfo struct {
	// contains filtered or unexported fields
}

MockHardwareInfo is a mock of HardwareInfo interface.

func NewMockHardwareInfo added in v1.0.6

func NewMockHardwareInfo(ctrl *gomock.Controller) *MockHardwareInfo

NewMockHardwareInfo creates a new mock instance.

func (*MockHardwareInfo) Block added in v1.0.6

func (m *MockHardwareInfo) Block() (*ghw.BlockInfo, error)

Block mocks base method.

func (*MockHardwareInfo) EXPECT added in v1.0.6

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

type MockHardwareInfoMockRecorder added in v1.0.6

type MockHardwareInfoMockRecorder struct {
	// contains filtered or unexported fields
}

MockHardwareInfoMockRecorder is the mock recorder for MockHardwareInfo.

func (*MockHardwareInfoMockRecorder) Block added in v1.0.6

Block indicates an expected call of Block.

type MockKubeClient added in v1.0.4

type MockKubeClient struct {
	// contains filtered or unexported fields
}

MockKubeClient is a mock of KubeClient interface.

func NewMockKubeClient added in v1.0.4

func NewMockKubeClient(ctrl *gomock.Controller) *MockKubeClient

NewMockKubeClient creates a new mock instance.

func (*MockKubeClient) EXPECT added in v1.0.4

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

func (*MockKubeClient) GetNode added in v1.0.4

func (m *MockKubeClient) GetNode(ctx context.Context, name string) (*v1.Node, error)

GetNode mocks base method.

type MockKubeClientMockRecorder added in v1.0.4

type MockKubeClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockKubeClientMockRecorder is the mock recorder for MockKubeClient.

func (*MockKubeClientMockRecorder) GetNode added in v1.0.4

func (mr *MockKubeClientMockRecorder) GetNode(ctx, name any) *gomock.Call

GetNode indicates an expected call of GetNode.

type MockLinodeClient added in v1.0.0

type MockLinodeClient struct {
	// contains filtered or unexported fields
}

MockLinodeClient is a mock of LinodeClient interface.

func NewMockLinodeClient added in v1.0.0

func NewMockLinodeClient(ctrl *gomock.Controller) *MockLinodeClient

NewMockLinodeClient creates a new mock instance.

func (*MockLinodeClient) AttachVolume added in v1.0.0

func (m *MockLinodeClient) AttachVolume(arg0 context.Context, arg1 int, arg2 *linodego.VolumeAttachOptions) (*linodego.Volume, error)

AttachVolume mocks base method.

func (*MockLinodeClient) CloneVolume added in v1.0.0

func (m *MockLinodeClient) CloneVolume(arg0 context.Context, arg1 int, arg2 linodego.VolumeCloneOptions) (*linodego.Volume, error)

CloneVolume mocks base method.

func (*MockLinodeClient) CreateVolume added in v1.0.0

CreateVolume mocks base method.

func (*MockLinodeClient) DeleteVolume added in v1.0.0

func (m *MockLinodeClient) DeleteVolume(arg0 context.Context, arg1 int) error

DeleteVolume mocks base method.

func (*MockLinodeClient) DetachVolume added in v1.0.0

func (m *MockLinodeClient) DetachVolume(arg0 context.Context, arg1 int) error

DetachVolume mocks base method.

func (*MockLinodeClient) EXPECT added in v1.0.0

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

func (*MockLinodeClient) GetInstance added in v1.0.0

func (m *MockLinodeClient) GetInstance(arg0 context.Context, arg1 int) (*linodego.Instance, error)

GetInstance mocks base method.

func (*MockLinodeClient) GetRegion added in v1.0.1

func (m *MockLinodeClient) GetRegion(ctx context.Context, regionID string) (*linodego.Region, error)

GetRegion mocks base method.

func (*MockLinodeClient) GetVolume added in v1.0.0

func (m *MockLinodeClient) GetVolume(arg0 context.Context, arg1 int) (*linodego.Volume, error)

GetVolume mocks base method.

func (*MockLinodeClient) ListInstanceDisks added in v1.0.0

func (m *MockLinodeClient) ListInstanceDisks(ctx context.Context, instanceID int, options *linodego.ListOptions) ([]linodego.InstanceDisk, error)

ListInstanceDisks mocks base method.

func (*MockLinodeClient) ListInstanceVolumes added in v1.0.0

func (m *MockLinodeClient) ListInstanceVolumes(ctx context.Context, instanceID int, options *linodego.ListOptions) ([]linodego.Volume, error)

ListInstanceVolumes mocks base method.

func (*MockLinodeClient) ListInstances added in v1.0.0

func (m *MockLinodeClient) ListInstances(arg0 context.Context, arg1 *linodego.ListOptions) ([]linodego.Instance, error)

ListInstances mocks base method.

func (*MockLinodeClient) ListVolumes added in v1.0.0

func (m *MockLinodeClient) ListVolumes(arg0 context.Context, arg1 *linodego.ListOptions) ([]linodego.Volume, error)

ListVolumes mocks base method.

func (*MockLinodeClient) NewEventPoller added in v1.0.0

func (m *MockLinodeClient) NewEventPoller(arg0 context.Context, arg1 any, arg2 linodego.EntityType, arg3 linodego.EventAction) (*linodego.EventPoller, error)

NewEventPoller mocks base method.

func (*MockLinodeClient) ResizeVolume added in v1.0.0

func (m *MockLinodeClient) ResizeVolume(arg0 context.Context, arg1 int, arg2 linodego.VolumeResizeOptions) error

ResizeVolume mocks base method.

func (*MockLinodeClient) WaitForVolumeLinodeID added in v1.0.0

func (m *MockLinodeClient) WaitForVolumeLinodeID(arg0 context.Context, arg1 int, arg2 *int) (*linodego.Volume, error)

WaitForVolumeLinodeID mocks base method.

func (*MockLinodeClient) WaitForVolumeStatus added in v1.0.0

func (m *MockLinodeClient) WaitForVolumeStatus(arg0 context.Context, arg1 int, arg2 linodego.VolumeStatus) (*linodego.Volume, error)

WaitForVolumeStatus mocks base method.

type MockLinodeClientMockRecorder added in v1.0.0

type MockLinodeClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockLinodeClientMockRecorder is the mock recorder for MockLinodeClient.

func (*MockLinodeClientMockRecorder) AttachVolume added in v1.0.0

func (mr *MockLinodeClientMockRecorder) AttachVolume(arg0, arg1, arg2 any) *gomock.Call

AttachVolume indicates an expected call of AttachVolume.

func (*MockLinodeClientMockRecorder) CloneVolume added in v1.0.0

func (mr *MockLinodeClientMockRecorder) CloneVolume(arg0, arg1, arg2 any) *gomock.Call

CloneVolume indicates an expected call of CloneVolume.

func (*MockLinodeClientMockRecorder) CreateVolume added in v1.0.0

func (mr *MockLinodeClientMockRecorder) CreateVolume(arg0, arg1 any) *gomock.Call

CreateVolume indicates an expected call of CreateVolume.

func (*MockLinodeClientMockRecorder) DeleteVolume added in v1.0.0

func (mr *MockLinodeClientMockRecorder) DeleteVolume(arg0, arg1 any) *gomock.Call

DeleteVolume indicates an expected call of DeleteVolume.

func (*MockLinodeClientMockRecorder) DetachVolume added in v1.0.0

func (mr *MockLinodeClientMockRecorder) DetachVolume(arg0, arg1 any) *gomock.Call

DetachVolume indicates an expected call of DetachVolume.

func (*MockLinodeClientMockRecorder) GetInstance added in v1.0.0

func (mr *MockLinodeClientMockRecorder) GetInstance(arg0, arg1 any) *gomock.Call

GetInstance indicates an expected call of GetInstance.

func (*MockLinodeClientMockRecorder) GetRegion added in v1.0.1

func (mr *MockLinodeClientMockRecorder) GetRegion(ctx, regionID any) *gomock.Call

GetRegion indicates an expected call of GetRegion.

func (*MockLinodeClientMockRecorder) GetVolume added in v1.0.0

func (mr *MockLinodeClientMockRecorder) GetVolume(arg0, arg1 any) *gomock.Call

GetVolume indicates an expected call of GetVolume.

func (*MockLinodeClientMockRecorder) ListInstanceDisks added in v1.0.0

func (mr *MockLinodeClientMockRecorder) ListInstanceDisks(ctx, instanceID, options any) *gomock.Call

ListInstanceDisks indicates an expected call of ListInstanceDisks.

func (*MockLinodeClientMockRecorder) ListInstanceVolumes added in v1.0.0

func (mr *MockLinodeClientMockRecorder) ListInstanceVolumes(ctx, instanceID, options any) *gomock.Call

ListInstanceVolumes indicates an expected call of ListInstanceVolumes.

func (*MockLinodeClientMockRecorder) ListInstances added in v1.0.0

func (mr *MockLinodeClientMockRecorder) ListInstances(arg0, arg1 any) *gomock.Call

ListInstances indicates an expected call of ListInstances.

func (*MockLinodeClientMockRecorder) ListVolumes added in v1.0.0

func (mr *MockLinodeClientMockRecorder) ListVolumes(arg0, arg1 any) *gomock.Call

ListVolumes indicates an expected call of ListVolumes.

func (*MockLinodeClientMockRecorder) NewEventPoller added in v1.0.0

func (mr *MockLinodeClientMockRecorder) NewEventPoller(arg0, arg1, arg2, arg3 any) *gomock.Call

NewEventPoller indicates an expected call of NewEventPoller.

func (*MockLinodeClientMockRecorder) ResizeVolume added in v1.0.0

func (mr *MockLinodeClientMockRecorder) ResizeVolume(arg0, arg1, arg2 any) *gomock.Call

ResizeVolume indicates an expected call of ResizeVolume.

func (*MockLinodeClientMockRecorder) WaitForVolumeLinodeID added in v1.0.0

func (mr *MockLinodeClientMockRecorder) WaitForVolumeLinodeID(arg0, arg1, arg2 any) *gomock.Call

WaitForVolumeLinodeID indicates an expected call of WaitForVolumeLinodeID.

func (*MockLinodeClientMockRecorder) WaitForVolumeStatus added in v1.0.0

func (mr *MockLinodeClientMockRecorder) WaitForVolumeStatus(arg0, arg1, arg2 any) *gomock.Call

WaitForVolumeStatus indicates an expected call of WaitForVolumeStatus.

type MockMetadataClient added in v1.0.0

type MockMetadataClient struct {
	// contains filtered or unexported fields
}

MockMetadataClient is a mock of MetadataClient interface.

func NewMockMetadataClient added in v1.0.0

func NewMockMetadataClient(ctrl *gomock.Controller) *MockMetadataClient

NewMockMetadataClient creates a new mock instance.

func (*MockMetadataClient) EXPECT added in v1.0.0

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

func (*MockMetadataClient) GetInstance added in v1.0.0

func (m *MockMetadataClient) GetInstance(ctx context.Context) (*metadata.InstanceData, error)

GetInstance mocks base method.

type MockMetadataClientMockRecorder added in v1.0.0

type MockMetadataClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockMetadataClientMockRecorder is the mock recorder for MockMetadataClient.

func (*MockMetadataClientMockRecorder) GetInstance added in v1.0.0

func (mr *MockMetadataClientMockRecorder) GetInstance(ctx any) *gomock.Call

GetInstance indicates an expected call of GetInstance.

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.

type MockResizeFSer added in v1.0.5

type MockResizeFSer struct {
	// contains filtered or unexported fields
}

MockResizeFSer is a mock of ResizeFSer interface.

func NewMockResizeFSer added in v1.0.5

func NewMockResizeFSer(ctrl *gomock.Controller) *MockResizeFSer

NewMockResizeFSer creates a new mock instance.

func (*MockResizeFSer) EXPECT added in v1.0.5

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

func (*MockResizeFSer) NeedResize added in v1.0.5

func (m *MockResizeFSer) NeedResize(devicePath, deviceMountPath string) (bool, error)

NeedResize mocks base method.

func (*MockResizeFSer) Resize added in v1.0.5

func (m *MockResizeFSer) Resize(devicePath, deviceMountPath string) (bool, error)

Resize mocks base method.

type MockResizeFSerMockRecorder added in v1.0.5

type MockResizeFSerMockRecorder struct {
	// contains filtered or unexported fields
}

MockResizeFSerMockRecorder is the mock recorder for MockResizeFSer.

func (*MockResizeFSerMockRecorder) NeedResize added in v1.0.5

func (mr *MockResizeFSerMockRecorder) NeedResize(devicePath, deviceMountPath any) *gomock.Call

NeedResize indicates an expected call of NeedResize.

func (*MockResizeFSerMockRecorder) Resize added in v1.0.5

func (mr *MockResizeFSerMockRecorder) Resize(devicePath, deviceMountPath any) *gomock.Call

Resize indicates an expected call of Resize.

Jump to

Keyboard shortcuts

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