mock_iscsi

package
v0.0.0-...-58f6e79 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock_iscsi is a generated GoMock package.

Package mock_iscsi is a generated GoMock package.

Package mock_iscsi is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockISCSI

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

MockISCSI is a mock of ISCSI interface.

func NewMockISCSI

func NewMockISCSI(ctrl *gomock.Controller) *MockISCSI

NewMockISCSI creates a new mock instance.

func (*MockISCSI) AddSession

func (m *MockISCSI) AddSession(arg0 context.Context, arg1 *models.ISCSISessions, arg2 *models.VolumePublishInfo, arg3, arg4 string, arg5 models.PortalInvalid)

AddSession mocks base method.

func (*MockISCSI) AttachVolumeRetry

func (m *MockISCSI) AttachVolumeRetry(arg0 context.Context, arg1, arg2 string, arg3 *models.VolumePublishInfo, arg4 map[string]string, arg5 time.Duration) (int64, error)

AttachVolumeRetry mocks base method.

func (*MockISCSI) EXPECT

func (m *MockISCSI) EXPECT() *MockISCSIMockRecorder

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

func (*MockISCSI) EnsureISCSISessionWithPortalDiscovery

func (m *MockISCSI) EnsureISCSISessionWithPortalDiscovery(arg0 context.Context, arg1 string) error

EnsureISCSISessionWithPortalDiscovery mocks base method.

func (*MockISCSI) EnsureISCSISessionsWithPortalDiscovery

func (m *MockISCSI) EnsureISCSISessionsWithPortalDiscovery(arg0 context.Context, arg1 []string) error

EnsureISCSISessionsWithPortalDiscovery mocks base method.

func (*MockISCSI) GetDeviceInfoForLUN

func (m *MockISCSI) GetDeviceInfoForLUN(arg0 context.Context, arg1 map[int]int, arg2 int, arg3 string, arg4 bool) (*models.ScsiDeviceInfo, error)

GetDeviceInfoForLUN mocks base method.

func (*MockISCSI) ISCSIActiveOnHost

func (m *MockISCSI) ISCSIActiveOnHost(arg0 context.Context, arg1 models.HostSystem) (bool, error)

ISCSIActiveOnHost mocks base method.

func (*MockISCSI) ISCSIDiscovery

func (m *MockISCSI) ISCSIDiscovery(arg0 context.Context, arg1 string) ([]models.ISCSIDiscoveryInfo, error)

ISCSIDiscovery mocks base method.

func (*MockISCSI) InspectAllISCSISessions

func (m *MockISCSI) InspectAllISCSISessions(arg0 context.Context, arg1, arg2 *models.ISCSISessions, arg3 time.Duration) ([]string, []string)

InspectAllISCSISessions mocks base method.

func (*MockISCSI) IsAlreadyAttached

func (m *MockISCSI) IsAlreadyAttached(arg0 context.Context, arg1 int, arg2 string) bool

IsAlreadyAttached mocks base method.

func (*MockISCSI) Logout

func (m *MockISCSI) Logout(arg0 context.Context, arg1, arg2 string) error

Logout mocks base method.

func (*MockISCSI) PopulateCurrentSessions

func (m *MockISCSI) PopulateCurrentSessions(arg0 context.Context, arg1 *models.ISCSISessions) error

PopulateCurrentSessions mocks base method.

func (*MockISCSI) PreChecks

func (m *MockISCSI) PreChecks(arg0 context.Context) error

PreChecks mocks base method.

func (*MockISCSI) PrepareDeviceForRemoval

func (m *MockISCSI) PrepareDeviceForRemoval(arg0 context.Context, arg1 *models.ScsiDeviceInfo, arg2 *models.VolumePublishInfo, arg3 []models.VolumePublishInfo, arg4, arg5 bool) (string, error)

PrepareDeviceForRemoval mocks base method.

func (*MockISCSI) RemoveLUNFromSessions

func (m *MockISCSI) RemoveLUNFromSessions(arg0 context.Context, arg1 *models.VolumePublishInfo, arg2 *models.ISCSISessions)

RemoveLUNFromSessions mocks base method.

func (*MockISCSI) RemovePortalsFromSession

func (m *MockISCSI) RemovePortalsFromSession(arg0 context.Context, arg1 *models.VolumePublishInfo, arg2 *models.ISCSISessions)

RemovePortalsFromSession mocks base method.

func (*MockISCSI) RescanDevices

func (m *MockISCSI) RescanDevices(arg0 context.Context, arg1 string, arg2 int32, arg3 int64) error

RescanDevices mocks base method.

func (*MockISCSI) SafeToLogOut

func (m *MockISCSI) SafeToLogOut(arg0 context.Context, arg1, arg2 int) bool

SafeToLogOut mocks base method.

func (*MockISCSI) Supported

func (m *MockISCSI) Supported(arg0 context.Context) bool

Supported mocks base method.

func (*MockISCSI) TargetHasMountedDevice

func (m *MockISCSI) TargetHasMountedDevice(arg0 context.Context, arg1 string) (bool, error)

TargetHasMountedDevice mocks base method.

type MockISCSIMockRecorder

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

MockISCSIMockRecorder is the mock recorder for MockISCSI.

func (*MockISCSIMockRecorder) AddSession

func (mr *MockISCSIMockRecorder) AddSession(arg0, arg1, arg2, arg3, arg4, arg5 any) *gomock.Call

AddSession indicates an expected call of AddSession.

func (*MockISCSIMockRecorder) AttachVolumeRetry

func (mr *MockISCSIMockRecorder) AttachVolumeRetry(arg0, arg1, arg2, arg3, arg4, arg5 any) *gomock.Call

AttachVolumeRetry indicates an expected call of AttachVolumeRetry.

func (*MockISCSIMockRecorder) EnsureISCSISessionWithPortalDiscovery

func (mr *MockISCSIMockRecorder) EnsureISCSISessionWithPortalDiscovery(arg0, arg1 any) *gomock.Call

EnsureISCSISessionWithPortalDiscovery indicates an expected call of EnsureISCSISessionWithPortalDiscovery.

func (*MockISCSIMockRecorder) EnsureISCSISessionsWithPortalDiscovery

func (mr *MockISCSIMockRecorder) EnsureISCSISessionsWithPortalDiscovery(arg0, arg1 any) *gomock.Call

EnsureISCSISessionsWithPortalDiscovery indicates an expected call of EnsureISCSISessionsWithPortalDiscovery.

func (*MockISCSIMockRecorder) GetDeviceInfoForLUN

func (mr *MockISCSIMockRecorder) GetDeviceInfoForLUN(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call

GetDeviceInfoForLUN indicates an expected call of GetDeviceInfoForLUN.

func (*MockISCSIMockRecorder) ISCSIActiveOnHost

func (mr *MockISCSIMockRecorder) ISCSIActiveOnHost(arg0, arg1 any) *gomock.Call

ISCSIActiveOnHost indicates an expected call of ISCSIActiveOnHost.

func (*MockISCSIMockRecorder) ISCSIDiscovery

func (mr *MockISCSIMockRecorder) ISCSIDiscovery(arg0, arg1 any) *gomock.Call

ISCSIDiscovery indicates an expected call of ISCSIDiscovery.

func (*MockISCSIMockRecorder) InspectAllISCSISessions

func (mr *MockISCSIMockRecorder) InspectAllISCSISessions(arg0, arg1, arg2, arg3 any) *gomock.Call

InspectAllISCSISessions indicates an expected call of InspectAllISCSISessions.

func (*MockISCSIMockRecorder) IsAlreadyAttached

func (mr *MockISCSIMockRecorder) IsAlreadyAttached(arg0, arg1, arg2 any) *gomock.Call

IsAlreadyAttached indicates an expected call of IsAlreadyAttached.

func (*MockISCSIMockRecorder) Logout

func (mr *MockISCSIMockRecorder) Logout(arg0, arg1, arg2 any) *gomock.Call

Logout indicates an expected call of Logout.

func (*MockISCSIMockRecorder) PopulateCurrentSessions

func (mr *MockISCSIMockRecorder) PopulateCurrentSessions(arg0, arg1 any) *gomock.Call

PopulateCurrentSessions indicates an expected call of PopulateCurrentSessions.

func (*MockISCSIMockRecorder) PreChecks

func (mr *MockISCSIMockRecorder) PreChecks(arg0 any) *gomock.Call

PreChecks indicates an expected call of PreChecks.

func (*MockISCSIMockRecorder) PrepareDeviceForRemoval

func (mr *MockISCSIMockRecorder) PrepareDeviceForRemoval(arg0, arg1, arg2, arg3, arg4, arg5 any) *gomock.Call

PrepareDeviceForRemoval indicates an expected call of PrepareDeviceForRemoval.

func (*MockISCSIMockRecorder) RemoveLUNFromSessions

func (mr *MockISCSIMockRecorder) RemoveLUNFromSessions(arg0, arg1, arg2 any) *gomock.Call

RemoveLUNFromSessions indicates an expected call of RemoveLUNFromSessions.

func (*MockISCSIMockRecorder) RemovePortalsFromSession

func (mr *MockISCSIMockRecorder) RemovePortalsFromSession(arg0, arg1, arg2 any) *gomock.Call

RemovePortalsFromSession indicates an expected call of RemovePortalsFromSession.

func (*MockISCSIMockRecorder) RescanDevices

func (mr *MockISCSIMockRecorder) RescanDevices(arg0, arg1, arg2, arg3 any) *gomock.Call

RescanDevices indicates an expected call of RescanDevices.

func (*MockISCSIMockRecorder) SafeToLogOut

func (mr *MockISCSIMockRecorder) SafeToLogOut(arg0, arg1, arg2 any) *gomock.Call

SafeToLogOut indicates an expected call of SafeToLogOut.

func (*MockISCSIMockRecorder) Supported

func (mr *MockISCSIMockRecorder) Supported(arg0 any) *gomock.Call

Supported indicates an expected call of Supported.

func (*MockISCSIMockRecorder) TargetHasMountedDevice

func (mr *MockISCSIMockRecorder) TargetHasMountedDevice(arg0, arg1 any) *gomock.Call

TargetHasMountedDevice indicates an expected call of TargetHasMountedDevice.

type MockIscsiReconcileUtils

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

MockIscsiReconcileUtils is a mock of IscsiReconcileUtils interface.

func NewMockIscsiReconcileUtils

func NewMockIscsiReconcileUtils(ctrl *gomock.Controller) *MockIscsiReconcileUtils

NewMockIscsiReconcileUtils creates a new mock instance.

func (*MockIscsiReconcileUtils) DiscoverSCSIAddressMapForTarget

func (m *MockIscsiReconcileUtils) DiscoverSCSIAddressMapForTarget(arg0 context.Context, arg1 string) (map[string]models.ScsiDeviceAddress, error)

DiscoverSCSIAddressMapForTarget mocks base method.

func (*MockIscsiReconcileUtils) EXPECT

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

func (*MockIscsiReconcileUtils) GetDevicesForLUN

func (m *MockIscsiReconcileUtils) GetDevicesForLUN(arg0 []string) ([]string, error)

GetDevicesForLUN mocks base method.

func (*MockIscsiReconcileUtils) GetISCSIHostSessionMapForTarget

func (m *MockIscsiReconcileUtils) GetISCSIHostSessionMapForTarget(arg0 context.Context, arg1 string) map[int]int

GetISCSIHostSessionMapForTarget mocks base method.

func (*MockIscsiReconcileUtils) GetSysfsBlockDirsForLUN

func (m *MockIscsiReconcileUtils) GetSysfsBlockDirsForLUN(arg0 int, arg1 map[int]int) []string

GetSysfsBlockDirsForLUN mocks base method.

func (*MockIscsiReconcileUtils) ReconcileISCSIVolumeInfo

func (m *MockIscsiReconcileUtils) ReconcileISCSIVolumeInfo(arg0 context.Context, arg1 *models.VolumeTrackingInfo) (bool, error)

ReconcileISCSIVolumeInfo mocks base method.

type MockIscsiReconcileUtilsMockRecorder

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

MockIscsiReconcileUtilsMockRecorder is the mock recorder for MockIscsiReconcileUtils.

func (*MockIscsiReconcileUtilsMockRecorder) DiscoverSCSIAddressMapForTarget

func (mr *MockIscsiReconcileUtilsMockRecorder) DiscoverSCSIAddressMapForTarget(arg0, arg1 any) *gomock.Call

DiscoverSCSIAddressMapForTarget indicates an expected call of DiscoverSCSIAddressMapForTarget.

func (*MockIscsiReconcileUtilsMockRecorder) GetDevicesForLUN

func (mr *MockIscsiReconcileUtilsMockRecorder) GetDevicesForLUN(arg0 any) *gomock.Call

GetDevicesForLUN indicates an expected call of GetDevicesForLUN.

func (*MockIscsiReconcileUtilsMockRecorder) GetISCSIHostSessionMapForTarget

func (mr *MockIscsiReconcileUtilsMockRecorder) GetISCSIHostSessionMapForTarget(arg0, arg1 any) *gomock.Call

GetISCSIHostSessionMapForTarget indicates an expected call of GetISCSIHostSessionMapForTarget.

func (*MockIscsiReconcileUtilsMockRecorder) GetSysfsBlockDirsForLUN

func (mr *MockIscsiReconcileUtilsMockRecorder) GetSysfsBlockDirsForLUN(arg0, arg1 any) *gomock.Call

GetSysfsBlockDirsForLUN indicates an expected call of GetSysfsBlockDirsForLUN.

func (*MockIscsiReconcileUtilsMockRecorder) ReconcileISCSIVolumeInfo

func (mr *MockIscsiReconcileUtilsMockRecorder) ReconcileISCSIVolumeInfo(arg0, arg1 any) *gomock.Call

ReconcileISCSIVolumeInfo indicates an expected call of ReconcileISCSIVolumeInfo.

type MockOS

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

MockOS is a mock of OS interface.

func NewMockOS

func NewMockOS(ctrl *gomock.Controller) *MockOS

NewMockOS creates a new mock instance.

func (*MockOS) EXPECT

func (m *MockOS) EXPECT() *MockOSMockRecorder

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

func (*MockOS) PathExists

func (m *MockOS) PathExists(arg0 string) (bool, error)

PathExists mocks base method.

type MockOSMockRecorder

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

MockOSMockRecorder is the mock recorder for MockOS.

func (*MockOSMockRecorder) PathExists

func (mr *MockOSMockRecorder) PathExists(arg0 any) *gomock.Call

PathExists indicates an expected call of PathExists.

Jump to

Keyboard shortcuts

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