Documentation
¶
Overview ¶
Package mock_devices is a generated GoMock package.
Package mock_devices is a generated GoMock package.
Index ¶
- type MockDevices
- func (m *MockDevices) CloseLUKSDevice(arg0 context.Context, arg1 string) error
- func (m *MockDevices) EXPECT() *MockDevicesMockRecorder
- func (m *MockDevices) EnsureDeviceReadable(arg0 context.Context, arg1 string) error
- func (m *MockDevices) EnsureLUKSDeviceClosed(arg0 context.Context, arg1 string) error
- func (m *MockDevices) EnsureLUKSDeviceClosedWithMaxWaitLimit(arg0 context.Context, arg1 string) error
- func (m *MockDevices) FindDevicesForMultipathDevice(arg0 context.Context, arg1 string) []string
- func (m *MockDevices) FindMultipathDeviceForDevice(arg0 context.Context, arg1 string) string
- func (m *MockDevices) FlushDevice(arg0 context.Context, arg1 *models.ScsiDeviceInfo, arg2 bool) error
- func (m *MockDevices) FlushOneDevice(arg0 context.Context, arg1 string) error
- func (m *MockDevices) GetDeviceFSType(arg0 context.Context, arg1 string) (string, error)
- func (m *MockDevices) GetDiskSize(arg0 context.Context, arg1 string) (int64, error)
- func (m *MockDevices) GetLUKSDeviceForMultipathDevice(arg0 string) (string, error)
- func (m *MockDevices) GetLunSerial(arg0 context.Context, arg1 string) (string, error)
- func (m *MockDevices) GetMultipathDeviceUUID(arg0 string) (string, error)
- func (m *MockDevices) IsDeviceUnformatted(arg0 context.Context, arg1 string) (bool, error)
- func (m *MockDevices) ListAllDevices(arg0 context.Context)
- func (m *MockDevices) MultipathFlushDevice(arg0 context.Context, arg1 *models.ScsiDeviceInfo) error
- func (m *MockDevices) RemoveDevice(arg0 context.Context, arg1 []string, arg2 bool) error
- func (m *MockDevices) RemoveMultipathDeviceMapping(arg0 context.Context, arg1 string) error
- func (m *MockDevices) RemoveMultipathDeviceMappingWithRetries(arg0 context.Context, arg1 string, arg2 uint64, arg3 time.Duration) error
- func (m *MockDevices) ScanTargetLUN(arg0 context.Context, arg1 []models.ScsiDeviceAddress) error
- func (m *MockDevices) VerifyMultipathDevice(arg0 context.Context, arg1 *models.VolumePublishInfo, ...) (bool, error)
- func (m *MockDevices) VerifyMultipathDeviceSize(arg0 context.Context, arg1, arg2 string) (int64, bool, error)
- func (m *MockDevices) WaitForDevice(arg0 context.Context, arg1 string) error
- func (m *MockDevices) WaitForDevicesRemoval(arg0 context.Context, arg1 string, arg2 []string, arg3 time.Duration) error
- type MockDevicesMockRecorder
- func (mr *MockDevicesMockRecorder) CloseLUKSDevice(arg0, arg1 any) *gomock.Call
- func (mr *MockDevicesMockRecorder) EnsureDeviceReadable(arg0, arg1 any) *gomock.Call
- func (mr *MockDevicesMockRecorder) EnsureLUKSDeviceClosed(arg0, arg1 any) *gomock.Call
- func (mr *MockDevicesMockRecorder) EnsureLUKSDeviceClosedWithMaxWaitLimit(arg0, arg1 any) *gomock.Call
- func (mr *MockDevicesMockRecorder) FindDevicesForMultipathDevice(arg0, arg1 any) *gomock.Call
- func (mr *MockDevicesMockRecorder) FindMultipathDeviceForDevice(arg0, arg1 any) *gomock.Call
- func (mr *MockDevicesMockRecorder) FlushDevice(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockDevicesMockRecorder) FlushOneDevice(arg0, arg1 any) *gomock.Call
- func (mr *MockDevicesMockRecorder) GetDeviceFSType(arg0, arg1 any) *gomock.Call
- func (mr *MockDevicesMockRecorder) GetDiskSize(arg0, arg1 any) *gomock.Call
- func (mr *MockDevicesMockRecorder) GetLUKSDeviceForMultipathDevice(arg0 any) *gomock.Call
- func (mr *MockDevicesMockRecorder) GetLunSerial(arg0, arg1 any) *gomock.Call
- func (mr *MockDevicesMockRecorder) GetMultipathDeviceUUID(arg0 any) *gomock.Call
- func (mr *MockDevicesMockRecorder) IsDeviceUnformatted(arg0, arg1 any) *gomock.Call
- func (mr *MockDevicesMockRecorder) ListAllDevices(arg0 any) *gomock.Call
- func (mr *MockDevicesMockRecorder) MultipathFlushDevice(arg0, arg1 any) *gomock.Call
- func (mr *MockDevicesMockRecorder) RemoveDevice(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockDevicesMockRecorder) RemoveMultipathDeviceMapping(arg0, arg1 any) *gomock.Call
- func (mr *MockDevicesMockRecorder) RemoveMultipathDeviceMappingWithRetries(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockDevicesMockRecorder) ScanTargetLUN(arg0, arg1 any) *gomock.Call
- func (mr *MockDevicesMockRecorder) VerifyMultipathDevice(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockDevicesMockRecorder) VerifyMultipathDeviceSize(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockDevicesMockRecorder) WaitForDevice(arg0, arg1 any) *gomock.Call
- func (mr *MockDevicesMockRecorder) WaitForDevicesRemoval(arg0, arg1, arg2, arg3 any) *gomock.Call
- type MockSizeGetter
- type MockSizeGetterMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDevices ¶
type MockDevices struct {
// contains filtered or unexported fields
}
MockDevices is a mock of Devices interface.
func NewMockDevices ¶
func NewMockDevices(ctrl *gomock.Controller) *MockDevices
NewMockDevices creates a new mock instance.
func (*MockDevices) CloseLUKSDevice ¶
func (m *MockDevices) CloseLUKSDevice(arg0 context.Context, arg1 string) error
CloseLUKSDevice mocks base method.
func (*MockDevices) EXPECT ¶
func (m *MockDevices) EXPECT() *MockDevicesMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDevices) EnsureDeviceReadable ¶
func (m *MockDevices) EnsureDeviceReadable(arg0 context.Context, arg1 string) error
EnsureDeviceReadable mocks base method.
func (*MockDevices) EnsureLUKSDeviceClosed ¶
func (m *MockDevices) EnsureLUKSDeviceClosed(arg0 context.Context, arg1 string) error
EnsureLUKSDeviceClosed mocks base method.
func (*MockDevices) EnsureLUKSDeviceClosedWithMaxWaitLimit ¶
func (m *MockDevices) EnsureLUKSDeviceClosedWithMaxWaitLimit(arg0 context.Context, arg1 string) error
EnsureLUKSDeviceClosedWithMaxWaitLimit mocks base method.
func (*MockDevices) FindDevicesForMultipathDevice ¶
func (m *MockDevices) FindDevicesForMultipathDevice(arg0 context.Context, arg1 string) []string
FindDevicesForMultipathDevice mocks base method.
func (*MockDevices) FindMultipathDeviceForDevice ¶
func (m *MockDevices) FindMultipathDeviceForDevice(arg0 context.Context, arg1 string) string
FindMultipathDeviceForDevice mocks base method.
func (*MockDevices) FlushDevice ¶
func (m *MockDevices) FlushDevice(arg0 context.Context, arg1 *models.ScsiDeviceInfo, arg2 bool) error
FlushDevice mocks base method.
func (*MockDevices) FlushOneDevice ¶
func (m *MockDevices) FlushOneDevice(arg0 context.Context, arg1 string) error
FlushOneDevice mocks base method.
func (*MockDevices) GetDeviceFSType ¶
GetDeviceFSType mocks base method.
func (*MockDevices) GetDiskSize ¶
GetDiskSize mocks base method.
func (*MockDevices) GetLUKSDeviceForMultipathDevice ¶
func (m *MockDevices) GetLUKSDeviceForMultipathDevice(arg0 string) (string, error)
GetLUKSDeviceForMultipathDevice mocks base method.
func (*MockDevices) GetLunSerial ¶
GetLunSerial mocks base method.
func (*MockDevices) GetMultipathDeviceUUID ¶
func (m *MockDevices) GetMultipathDeviceUUID(arg0 string) (string, error)
GetMultipathDeviceUUID mocks base method.
func (*MockDevices) IsDeviceUnformatted ¶
IsDeviceUnformatted mocks base method.
func (*MockDevices) ListAllDevices ¶
func (m *MockDevices) ListAllDevices(arg0 context.Context)
ListAllDevices mocks base method.
func (*MockDevices) MultipathFlushDevice ¶
func (m *MockDevices) MultipathFlushDevice(arg0 context.Context, arg1 *models.ScsiDeviceInfo) error
MultipathFlushDevice mocks base method.
func (*MockDevices) RemoveDevice ¶
RemoveDevice mocks base method.
func (*MockDevices) RemoveMultipathDeviceMapping ¶
func (m *MockDevices) RemoveMultipathDeviceMapping(arg0 context.Context, arg1 string) error
RemoveMultipathDeviceMapping mocks base method.
func (*MockDevices) RemoveMultipathDeviceMappingWithRetries ¶
func (m *MockDevices) RemoveMultipathDeviceMappingWithRetries(arg0 context.Context, arg1 string, arg2 uint64, arg3 time.Duration) error
RemoveMultipathDeviceMappingWithRetries mocks base method.
func (*MockDevices) ScanTargetLUN ¶
func (m *MockDevices) ScanTargetLUN(arg0 context.Context, arg1 []models.ScsiDeviceAddress) error
ScanTargetLUN mocks base method.
func (*MockDevices) VerifyMultipathDevice ¶
func (m *MockDevices) VerifyMultipathDevice(arg0 context.Context, arg1 *models.VolumePublishInfo, arg2 []models.VolumePublishInfo, arg3 *models.ScsiDeviceInfo) (bool, error)
VerifyMultipathDevice mocks base method.
func (*MockDevices) VerifyMultipathDeviceSize ¶
func (m *MockDevices) VerifyMultipathDeviceSize(arg0 context.Context, arg1, arg2 string) (int64, bool, error)
VerifyMultipathDeviceSize mocks base method.
func (*MockDevices) WaitForDevice ¶
func (m *MockDevices) WaitForDevice(arg0 context.Context, arg1 string) error
WaitForDevice mocks base method.
func (*MockDevices) WaitForDevicesRemoval ¶
func (m *MockDevices) WaitForDevicesRemoval(arg0 context.Context, arg1 string, arg2 []string, arg3 time.Duration) error
WaitForDevicesRemoval mocks base method.
type MockDevicesMockRecorder ¶
type MockDevicesMockRecorder struct {
// contains filtered or unexported fields
}
MockDevicesMockRecorder is the mock recorder for MockDevices.
func (*MockDevicesMockRecorder) CloseLUKSDevice ¶
func (mr *MockDevicesMockRecorder) CloseLUKSDevice(arg0, arg1 any) *gomock.Call
CloseLUKSDevice indicates an expected call of CloseLUKSDevice.
func (*MockDevicesMockRecorder) EnsureDeviceReadable ¶
func (mr *MockDevicesMockRecorder) EnsureDeviceReadable(arg0, arg1 any) *gomock.Call
EnsureDeviceReadable indicates an expected call of EnsureDeviceReadable.
func (*MockDevicesMockRecorder) EnsureLUKSDeviceClosed ¶
func (mr *MockDevicesMockRecorder) EnsureLUKSDeviceClosed(arg0, arg1 any) *gomock.Call
EnsureLUKSDeviceClosed indicates an expected call of EnsureLUKSDeviceClosed.
func (*MockDevicesMockRecorder) EnsureLUKSDeviceClosedWithMaxWaitLimit ¶
func (mr *MockDevicesMockRecorder) EnsureLUKSDeviceClosedWithMaxWaitLimit(arg0, arg1 any) *gomock.Call
EnsureLUKSDeviceClosedWithMaxWaitLimit indicates an expected call of EnsureLUKSDeviceClosedWithMaxWaitLimit.
func (*MockDevicesMockRecorder) FindDevicesForMultipathDevice ¶
func (mr *MockDevicesMockRecorder) FindDevicesForMultipathDevice(arg0, arg1 any) *gomock.Call
FindDevicesForMultipathDevice indicates an expected call of FindDevicesForMultipathDevice.
func (*MockDevicesMockRecorder) FindMultipathDeviceForDevice ¶
func (mr *MockDevicesMockRecorder) FindMultipathDeviceForDevice(arg0, arg1 any) *gomock.Call
FindMultipathDeviceForDevice indicates an expected call of FindMultipathDeviceForDevice.
func (*MockDevicesMockRecorder) FlushDevice ¶
func (mr *MockDevicesMockRecorder) FlushDevice(arg0, arg1, arg2 any) *gomock.Call
FlushDevice indicates an expected call of FlushDevice.
func (*MockDevicesMockRecorder) FlushOneDevice ¶
func (mr *MockDevicesMockRecorder) FlushOneDevice(arg0, arg1 any) *gomock.Call
FlushOneDevice indicates an expected call of FlushOneDevice.
func (*MockDevicesMockRecorder) GetDeviceFSType ¶
func (mr *MockDevicesMockRecorder) GetDeviceFSType(arg0, arg1 any) *gomock.Call
GetDeviceFSType indicates an expected call of GetDeviceFSType.
func (*MockDevicesMockRecorder) GetDiskSize ¶
func (mr *MockDevicesMockRecorder) GetDiskSize(arg0, arg1 any) *gomock.Call
GetDiskSize indicates an expected call of GetDiskSize.
func (*MockDevicesMockRecorder) GetLUKSDeviceForMultipathDevice ¶
func (mr *MockDevicesMockRecorder) GetLUKSDeviceForMultipathDevice(arg0 any) *gomock.Call
GetLUKSDeviceForMultipathDevice indicates an expected call of GetLUKSDeviceForMultipathDevice.
func (*MockDevicesMockRecorder) GetLunSerial ¶
func (mr *MockDevicesMockRecorder) GetLunSerial(arg0, arg1 any) *gomock.Call
GetLunSerial indicates an expected call of GetLunSerial.
func (*MockDevicesMockRecorder) GetMultipathDeviceUUID ¶
func (mr *MockDevicesMockRecorder) GetMultipathDeviceUUID(arg0 any) *gomock.Call
GetMultipathDeviceUUID indicates an expected call of GetMultipathDeviceUUID.
func (*MockDevicesMockRecorder) IsDeviceUnformatted ¶
func (mr *MockDevicesMockRecorder) IsDeviceUnformatted(arg0, arg1 any) *gomock.Call
IsDeviceUnformatted indicates an expected call of IsDeviceUnformatted.
func (*MockDevicesMockRecorder) ListAllDevices ¶
func (mr *MockDevicesMockRecorder) ListAllDevices(arg0 any) *gomock.Call
ListAllDevices indicates an expected call of ListAllDevices.
func (*MockDevicesMockRecorder) MultipathFlushDevice ¶
func (mr *MockDevicesMockRecorder) MultipathFlushDevice(arg0, arg1 any) *gomock.Call
MultipathFlushDevice indicates an expected call of MultipathFlushDevice.
func (*MockDevicesMockRecorder) RemoveDevice ¶
func (mr *MockDevicesMockRecorder) RemoveDevice(arg0, arg1, arg2 any) *gomock.Call
RemoveDevice indicates an expected call of RemoveDevice.
func (*MockDevicesMockRecorder) RemoveMultipathDeviceMapping ¶
func (mr *MockDevicesMockRecorder) RemoveMultipathDeviceMapping(arg0, arg1 any) *gomock.Call
RemoveMultipathDeviceMapping indicates an expected call of RemoveMultipathDeviceMapping.
func (*MockDevicesMockRecorder) RemoveMultipathDeviceMappingWithRetries ¶
func (mr *MockDevicesMockRecorder) RemoveMultipathDeviceMappingWithRetries(arg0, arg1, arg2, arg3 any) *gomock.Call
RemoveMultipathDeviceMappingWithRetries indicates an expected call of RemoveMultipathDeviceMappingWithRetries.
func (*MockDevicesMockRecorder) ScanTargetLUN ¶
func (mr *MockDevicesMockRecorder) ScanTargetLUN(arg0, arg1 any) *gomock.Call
ScanTargetLUN indicates an expected call of ScanTargetLUN.
func (*MockDevicesMockRecorder) VerifyMultipathDevice ¶
func (mr *MockDevicesMockRecorder) VerifyMultipathDevice(arg0, arg1, arg2, arg3 any) *gomock.Call
VerifyMultipathDevice indicates an expected call of VerifyMultipathDevice.
func (*MockDevicesMockRecorder) VerifyMultipathDeviceSize ¶
func (mr *MockDevicesMockRecorder) VerifyMultipathDeviceSize(arg0, arg1, arg2 any) *gomock.Call
VerifyMultipathDeviceSize indicates an expected call of VerifyMultipathDeviceSize.
func (*MockDevicesMockRecorder) WaitForDevice ¶
func (mr *MockDevicesMockRecorder) WaitForDevice(arg0, arg1 any) *gomock.Call
WaitForDevice indicates an expected call of WaitForDevice.
func (*MockDevicesMockRecorder) WaitForDevicesRemoval ¶
func (mr *MockDevicesMockRecorder) WaitForDevicesRemoval(arg0, arg1, arg2, arg3 any) *gomock.Call
WaitForDevicesRemoval indicates an expected call of WaitForDevicesRemoval.
type MockSizeGetter ¶
type MockSizeGetter struct {
// contains filtered or unexported fields
}
MockSizeGetter is a mock of SizeGetter interface.
func NewMockSizeGetter ¶
func NewMockSizeGetter(ctrl *gomock.Controller) *MockSizeGetter
NewMockSizeGetter creates a new mock instance.
func (*MockSizeGetter) EXPECT ¶
func (m *MockSizeGetter) EXPECT() *MockSizeGetterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSizeGetter) GetDiskSize ¶
GetDiskSize mocks base method.
type MockSizeGetterMockRecorder ¶
type MockSizeGetterMockRecorder struct {
// contains filtered or unexported fields
}
MockSizeGetterMockRecorder is the mock recorder for MockSizeGetter.
func (*MockSizeGetterMockRecorder) GetDiskSize ¶
func (mr *MockSizeGetterMockRecorder) GetDiskSize(arg0, arg1 any) *gomock.Call
GetDiskSize indicates an expected call of GetDiskSize.