scsi

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package scsi is a generated GoMock package.

Package scsi is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSCSI

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

MockSCSI is a mock of SCSI interface.

func NewMockSCSI

func NewMockSCSI(ctrl *gomock.Controller) *MockSCSI

NewMockSCSI creates a new mock instance.

func (*MockSCSI) CheckDeviceIsValid

func (m *MockSCSI) CheckDeviceIsValid(ctx context.Context, device string) bool

CheckDeviceIsValid mocks base method.

func (*MockSCSI) DeleteSCSIDeviceByHCTL

func (m *MockSCSI) DeleteSCSIDeviceByHCTL(ctx context.Context, h scsi.HCTL) error

DeleteSCSIDeviceByHCTL mocks base method.

func (*MockSCSI) DeleteSCSIDeviceByName

func (m *MockSCSI) DeleteSCSIDeviceByName(ctx context.Context, name string) error

DeleteSCSIDeviceByName mocks base method.

func (*MockSCSI) DeleteSCSIDeviceByPath

func (m *MockSCSI) DeleteSCSIDeviceByPath(ctx context.Context, devPath string) error

DeleteSCSIDeviceByPath mocks base method.

func (*MockSCSI) EXPECT

func (m *MockSCSI) EXPECT() *MockSCSIMockRecorder

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

func (*MockSCSI) GetDMChildren

func (m *MockSCSI) GetDMChildren(ctx context.Context, dmPath string) ([]string, error)

GetDMChildren mocks base method.

func (*MockSCSI) GetDMDeviceByChildren

func (m *MockSCSI) GetDMDeviceByChildren(ctx context.Context, devices []string) (string, error)

GetDMDeviceByChildren mocks base method.

func (*MockSCSI) GetDeviceNameByHCTL

func (m *MockSCSI) GetDeviceNameByHCTL(ctx context.Context, h scsi.HCTL) (string, error)

GetDeviceNameByHCTL mocks base method.

func (*MockSCSI) GetDeviceWWN

func (m *MockSCSI) GetDeviceWWN(ctx context.Context, devices []string) (string, error)

GetDeviceWWN mocks base method.

func (*MockSCSI) GetDevicesByWWN

func (m *MockSCSI) GetDevicesByWWN(ctx context.Context, wwn string) ([]string, error)

GetDevicesByWWN mocks base method.

func (*MockSCSI) GetNVMEDMDeviceByChildren added in v1.3.0

func (m *MockSCSI) GetNVMEDMDeviceByChildren(ctx context.Context, devices []string) (string, error)

GetNVMEDMDeviceByChildren mocks base method.

func (*MockSCSI) GetNVMEDeviceWWN added in v1.3.0

func (m *MockSCSI) GetNVMEDeviceWWN(ctx context.Context, devices []string) (string, error)

GetNVMEDeviceWWN mocks base method.

func (*MockSCSI) GetNVMEMultipathDMName added in v1.3.0

func (m *MockSCSI) GetNVMEMultipathDMName(device, pattern string) ([]string, error)

GetNVMEMultipathDMName mocks base method.

func (m *MockSCSI) GetNVMESymlink(checkPath string) (string, error)

GetNVMESymlink mocks base method.

func (*MockSCSI) IsDeviceExist

func (m *MockSCSI) IsDeviceExist(ctx context.Context, device string) bool

IsDeviceExist mocks base method.

func (*MockSCSI) RescanSCSIDeviceByHCTL

func (m *MockSCSI) RescanSCSIDeviceByHCTL(ctx context.Context, h scsi.HCTL) error

RescanSCSIDeviceByHCTL mocks base method.

func (*MockSCSI) RescanSCSIHostByHCTL

func (m *MockSCSI) RescanSCSIHostByHCTL(ctx context.Context, h scsi.HCTL) error

RescanSCSIHostByHCTL mocks base method.

func (m *MockSCSI) WaitUdevSymlink(ctx context.Context, deviceName, wwn string) error

WaitUdevSymlink mocks base method.

func (*MockSCSI) WaitUdevSymlinkNVMe added in v1.3.0

func (m *MockSCSI) WaitUdevSymlinkNVMe(ctx context.Context, deviceName, wwn string) error

WaitUdevSymlinkNVMe mocks base method.

type MockSCSIMockRecorder

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

MockSCSIMockRecorder is the mock recorder for MockSCSI.

func (*MockSCSIMockRecorder) CheckDeviceIsValid

func (mr *MockSCSIMockRecorder) CheckDeviceIsValid(ctx, device interface{}) *gomock.Call

CheckDeviceIsValid indicates an expected call of CheckDeviceIsValid.

func (*MockSCSIMockRecorder) DeleteSCSIDeviceByHCTL

func (mr *MockSCSIMockRecorder) DeleteSCSIDeviceByHCTL(ctx, h interface{}) *gomock.Call

DeleteSCSIDeviceByHCTL indicates an expected call of DeleteSCSIDeviceByHCTL.

func (*MockSCSIMockRecorder) DeleteSCSIDeviceByName

func (mr *MockSCSIMockRecorder) DeleteSCSIDeviceByName(ctx, name interface{}) *gomock.Call

DeleteSCSIDeviceByName indicates an expected call of DeleteSCSIDeviceByName.

func (*MockSCSIMockRecorder) DeleteSCSIDeviceByPath

func (mr *MockSCSIMockRecorder) DeleteSCSIDeviceByPath(ctx, devPath interface{}) *gomock.Call

DeleteSCSIDeviceByPath indicates an expected call of DeleteSCSIDeviceByPath.

func (*MockSCSIMockRecorder) GetDMChildren

func (mr *MockSCSIMockRecorder) GetDMChildren(ctx, dmPath interface{}) *gomock.Call

GetDMChildren indicates an expected call of GetDMChildren.

func (*MockSCSIMockRecorder) GetDMDeviceByChildren

func (mr *MockSCSIMockRecorder) GetDMDeviceByChildren(ctx, devices interface{}) *gomock.Call

GetDMDeviceByChildren indicates an expected call of GetDMDeviceByChildren.

func (*MockSCSIMockRecorder) GetDeviceNameByHCTL

func (mr *MockSCSIMockRecorder) GetDeviceNameByHCTL(ctx, h interface{}) *gomock.Call

GetDeviceNameByHCTL indicates an expected call of GetDeviceNameByHCTL.

func (*MockSCSIMockRecorder) GetDeviceWWN

func (mr *MockSCSIMockRecorder) GetDeviceWWN(ctx, devices interface{}) *gomock.Call

GetDeviceWWN indicates an expected call of GetDeviceWWN.

func (*MockSCSIMockRecorder) GetDevicesByWWN

func (mr *MockSCSIMockRecorder) GetDevicesByWWN(ctx, wwn interface{}) *gomock.Call

GetDevicesByWWN indicates an expected call of GetDevicesByWWN.

func (*MockSCSIMockRecorder) GetNVMEDMDeviceByChildren added in v1.3.0

func (mr *MockSCSIMockRecorder) GetNVMEDMDeviceByChildren(ctx, devices interface{}) *gomock.Call

GetNVMEDMDeviceByChildren indicates an expected call of GetNVMEDMDeviceByChildren.

func (*MockSCSIMockRecorder) GetNVMEDeviceWWN added in v1.3.0

func (mr *MockSCSIMockRecorder) GetNVMEDeviceWWN(ctx, devices interface{}) *gomock.Call

GetNVMEDeviceWWN indicates an expected call of GetNVMEDeviceWWN.

func (*MockSCSIMockRecorder) GetNVMEMultipathDMName added in v1.3.0

func (mr *MockSCSIMockRecorder) GetNVMEMultipathDMName(device, pattern interface{}) *gomock.Call

GetNVMEMultipathDMName indicates an expected call of GetNVMEMultipathDMName.

func (mr *MockSCSIMockRecorder) GetNVMESymlink(checkPath interface{}) *gomock.Call

GetNVMESymlink indicates an expected call of GetNVMESymlink.

func (*MockSCSIMockRecorder) IsDeviceExist

func (mr *MockSCSIMockRecorder) IsDeviceExist(ctx, device interface{}) *gomock.Call

IsDeviceExist indicates an expected call of IsDeviceExist.

func (*MockSCSIMockRecorder) RescanSCSIDeviceByHCTL

func (mr *MockSCSIMockRecorder) RescanSCSIDeviceByHCTL(ctx, h interface{}) *gomock.Call

RescanSCSIDeviceByHCTL indicates an expected call of RescanSCSIDeviceByHCTL.

func (*MockSCSIMockRecorder) RescanSCSIHostByHCTL

func (mr *MockSCSIMockRecorder) RescanSCSIHostByHCTL(ctx, h interface{}) *gomock.Call

RescanSCSIHostByHCTL indicates an expected call of RescanSCSIHostByHCTL.

func (mr *MockSCSIMockRecorder) WaitUdevSymlink(ctx, deviceName, wwn interface{}) *gomock.Call

WaitUdevSymlink indicates an expected call of WaitUdevSymlink.

func (*MockSCSIMockRecorder) WaitUdevSymlinkNVMe added in v1.3.0

func (mr *MockSCSIMockRecorder) WaitUdevSymlinkNVMe(ctx, deviceName, wwn interface{}) *gomock.Call

WaitUdevSymlinkNVMe indicates an expected call of WaitUdevSymlinkNVMe.

type SCSI

type SCSI interface {
	IsDeviceExist(ctx context.Context, device string) bool
	RescanSCSIHostByHCTL(ctx context.Context, h scsi.HCTL) error
	RescanSCSIDeviceByHCTL(ctx context.Context, h scsi.HCTL) error
	DeleteSCSIDeviceByHCTL(ctx context.Context, h scsi.HCTL) error
	DeleteSCSIDeviceByName(ctx context.Context, name string) error
	DeleteSCSIDeviceByPath(ctx context.Context, devPath string) error
	GetDeviceWWN(ctx context.Context, devices []string) (string, error)
	GetNVMEDeviceWWN(ctx context.Context, devices []string) (string, error)
	GetDevicesByWWN(ctx context.Context, wwn string) ([]string, error)
	GetDMDeviceByChildren(ctx context.Context, devices []string) (string, error)
	GetNVMEDMDeviceByChildren(ctx context.Context, devices []string) (string, error)
	GetNVMEMultipathDMName(device string, pattern string) ([]string, error)
	GetDMChildren(ctx context.Context, dmPath string) ([]string, error)
	CheckDeviceIsValid(ctx context.Context, device string) bool
	GetDeviceNameByHCTL(ctx context.Context, h scsi.HCTL) (string, error)
	WaitUdevSymlink(ctx context.Context, deviceName string, wwn string) error
	WaitUdevSymlinkNVMe(ctx context.Context, deviceName string, wwn string) error
	GetNVMESymlink(checkPath string) (string, error)
}

SCSI defines methods for scsi operations

Jump to

Keyboard shortcuts

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