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.
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 MockCryptSetupClient
- type MockCryptSetupClientMockRecorder
- type MockDevice
- func (m *MockDevice) ActivateByPassphrase(deviceName string, keyslot int, passphrase string, flags int) error
- func (m *MockDevice) ActivateByVolumeKey(deviceName, volumeKey string, volumeKeySize, flags int) error
- func (m *MockDevice) Deactivate(arg0 string) error
- func (m *MockDevice) Dump() int
- func (m *MockDevice) EXPECT() *MockDeviceMockRecorder
- func (m *MockDevice) Format(arg0 cryptsetup.DeviceType, arg1 cryptsetup.GenericParams) error
- func (m *MockDevice) Free() bool
- func (m *MockDevice) KeyslotAddByVolumeKey(arg0 int, arg1, arg2 string) error
- func (m *MockDevice) Load(arg0 cryptsetup.DeviceType) error
- func (m *MockDevice) Type() string
- func (m *MockDevice) VolumeKeyGet(keyslot int, passphrase string) ([]byte, int, error)
- type MockDeviceMockRecorder
- func (mr *MockDeviceMockRecorder) ActivateByPassphrase(deviceName, keyslot, passphrase, flags any) *gomock.Call
- func (mr *MockDeviceMockRecorder) ActivateByVolumeKey(deviceName, volumeKey, volumeKeySize, flags any) *gomock.Call
- func (mr *MockDeviceMockRecorder) Deactivate(arg0 any) *gomock.Call
- func (mr *MockDeviceMockRecorder) Dump() *gomock.Call
- func (mr *MockDeviceMockRecorder) Format(arg0, arg1 any) *gomock.Call
- func (mr *MockDeviceMockRecorder) Free() *gomock.Call
- func (mr *MockDeviceMockRecorder) KeyslotAddByVolumeKey(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockDeviceMockRecorder) Load(arg0 any) *gomock.Call
- func (mr *MockDeviceMockRecorder) Type() *gomock.Call
- func (mr *MockDeviceMockRecorder) VolumeKeyGet(keyslot, passphrase any) *gomock.Call
- type MockDeviceUtils
- type MockDeviceUtilsMockRecorder
- type MockExecutor
- type MockExecutorMockRecorder
- type MockFileInterface
- type MockFileInterfaceMockRecorder
- type MockFileSystem
- func (m *MockFileSystem) EXPECT() *MockFileSystemMockRecorder
- func (m *MockFileSystem) EvalSymlinks(path string) (string, error)
- func (m *MockFileSystem) Glob(pattern string) ([]string, error)
- func (m *MockFileSystem) IsNotExist(err error) bool
- func (m *MockFileSystem) MkdirAll(path string, perm os.FileMode) error
- func (m *MockFileSystem) Open(name string) (filesystem.FileInterface, error)
- func (m *MockFileSystem) OpenFile(name string, flag int, perm os.FileMode) (filesystem.FileInterface, error)
- func (m *MockFileSystem) Remove(path string) error
- func (m *MockFileSystem) Stat(name string) (fs.FileInfo, error)
- type MockFileSystemMockRecorder
- func (mr *MockFileSystemMockRecorder) EvalSymlinks(path any) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Glob(pattern any) *gomock.Call
- func (mr *MockFileSystemMockRecorder) IsNotExist(err any) *gomock.Call
- func (mr *MockFileSystemMockRecorder) MkdirAll(path, perm any) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Open(name 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 MockLinodeClient
- func (m *MockLinodeClient) AttachVolume(arg0 context.Context, arg1 int, arg2 *linodego.VolumeAttachOptions) (*linodego.Volume, error)
- func (m *MockLinodeClient) CloneVolume(arg0 context.Context, arg1 int, arg2 string) (*linodego.Volume, error)
- func (m *MockLinodeClient) CreateVolume(arg0 context.Context, arg1 linodego.VolumeCreateOptions) (*linodego.Volume, error)
- func (m *MockLinodeClient) DeleteVolume(arg0 context.Context, arg1 int) error
- func (m *MockLinodeClient) DetachVolume(arg0 context.Context, arg1 int) error
- func (m *MockLinodeClient) EXPECT() *MockLinodeClientMockRecorder
- func (m *MockLinodeClient) GetInstance(arg0 context.Context, arg1 int) (*linodego.Instance, error)
- func (m *MockLinodeClient) GetRegion(ctx context.Context, regionID string) (*linodego.Region, error)
- func (m *MockLinodeClient) GetVolume(arg0 context.Context, arg1 int) (*linodego.Volume, error)
- func (m *MockLinodeClient) ListInstanceDisks(ctx context.Context, instanceID int, options *linodego.ListOptions) ([]linodego.InstanceDisk, error)
- func (m *MockLinodeClient) ListInstanceVolumes(ctx context.Context, instanceID int, options *linodego.ListOptions) ([]linodego.Volume, error)
- func (m *MockLinodeClient) ListInstances(arg0 context.Context, arg1 *linodego.ListOptions) ([]linodego.Instance, error)
- func (m *MockLinodeClient) ListVolumes(arg0 context.Context, arg1 *linodego.ListOptions) ([]linodego.Volume, error)
- func (m *MockLinodeClient) NewEventPoller(arg0 context.Context, arg1 any, arg2 linodego.EntityType, ...) (*linodego.EventPoller, error)
- func (m *MockLinodeClient) ResizeVolume(arg0 context.Context, arg1, arg2 int) error
- func (m *MockLinodeClient) WaitForVolumeLinodeID(arg0 context.Context, arg1 int, arg2 *int, arg3 int) (*linodego.Volume, error)
- func (m *MockLinodeClient) WaitForVolumeStatus(arg0 context.Context, arg1 int, arg2 linodego.VolumeStatus, arg3 int) (*linodego.Volume, error)
- type MockLinodeClientMockRecorder
- func (mr *MockLinodeClientMockRecorder) AttachVolume(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockLinodeClientMockRecorder) CloneVolume(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockLinodeClientMockRecorder) CreateVolume(arg0, arg1 any) *gomock.Call
- func (mr *MockLinodeClientMockRecorder) DeleteVolume(arg0, arg1 any) *gomock.Call
- func (mr *MockLinodeClientMockRecorder) DetachVolume(arg0, arg1 any) *gomock.Call
- func (mr *MockLinodeClientMockRecorder) GetInstance(arg0, arg1 any) *gomock.Call
- func (mr *MockLinodeClientMockRecorder) GetRegion(ctx, regionID any) *gomock.Call
- func (mr *MockLinodeClientMockRecorder) GetVolume(arg0, arg1 any) *gomock.Call
- func (mr *MockLinodeClientMockRecorder) ListInstanceDisks(ctx, instanceID, options any) *gomock.Call
- func (mr *MockLinodeClientMockRecorder) ListInstanceVolumes(ctx, instanceID, options any) *gomock.Call
- func (mr *MockLinodeClientMockRecorder) ListInstances(arg0, arg1 any) *gomock.Call
- func (mr *MockLinodeClientMockRecorder) ListVolumes(arg0, arg1 any) *gomock.Call
- func (mr *MockLinodeClientMockRecorder) NewEventPoller(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockLinodeClientMockRecorder) ResizeVolume(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockLinodeClientMockRecorder) WaitForVolumeLinodeID(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockLinodeClientMockRecorder) WaitForVolumeStatus(arg0, arg1, arg2, arg3 any) *gomock.Call
- type MockMetadataClient
- type MockMetadataClientMockRecorder
- 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 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
func (m *MockCryptSetupClient) EXPECT() *MockCryptSetupClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCryptSetupClient) Init ¶ added in v1.0.0
func (m *MockCryptSetupClient) Init(arg0 string) (cryptsetupclient.Device, error)
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
func (mr *MockCryptSetupClientMockRecorder) Init(arg0 any) *gomock.Call
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) 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
func (m *MockDevice) Format(arg0 cryptsetup.DeviceType, arg1 cryptsetup.GenericParams) error
Format 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
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 ¶
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) EvalSymlinks ¶ added in v1.0.0
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
func (m *MockFileSystem) Open(name string) (filesystem.FileInterface, error)
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.
type MockFileSystemMockRecorder ¶
type MockFileSystemMockRecorder struct {
// contains filtered or unexported fields
}
MockFileSystemMockRecorder is the mock recorder for MockFileSystem.
func (*MockFileSystemMockRecorder) EvalSymlinks ¶ added in v1.0.0
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.
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 string) (*linodego.Volume, error)
CloneVolume mocks base method.
func (*MockLinodeClient) CreateVolume ¶ added in v1.0.0
func (m *MockLinodeClient) CreateVolume(arg0 context.Context, arg1 linodego.VolumeCreateOptions) (*linodego.Volume, error)
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
func (m *MockLinodeClient) EXPECT() *MockLinodeClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLinodeClient) GetInstance ¶ added in v1.0.0
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) 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, arg2 int) error
ResizeVolume mocks base method.
func (*MockLinodeClient) WaitForVolumeLinodeID ¶ added in v1.0.0
func (m *MockLinodeClient) WaitForVolumeLinodeID(arg0 context.Context, arg1 int, arg2 *int, arg3 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, arg3 int) (*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, arg3 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, arg3 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
func (m *MockMetadataClient) EXPECT() *MockMetadataClientMockRecorder
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.