Documentation ¶
Overview ¶
Package scsi is a generated GoMock package.
Package scsi is a generated GoMock package.
Index ¶
- type MockSCSI
- func (m *MockSCSI) CheckDeviceIsValid(ctx context.Context, device string) bool
- func (m *MockSCSI) DeleteSCSIDeviceByHCTL(ctx context.Context, h scsi.HCTL) error
- func (m *MockSCSI) DeleteSCSIDeviceByName(ctx context.Context, name string) error
- func (m *MockSCSI) DeleteSCSIDeviceByPath(ctx context.Context, devPath string) error
- func (m *MockSCSI) EXPECT() *MockSCSIMockRecorder
- func (m *MockSCSI) GetDMChildren(ctx context.Context, dmPath string) ([]string, error)
- func (m *MockSCSI) GetDMDeviceByChildren(ctx context.Context, devices []string) (string, error)
- func (m *MockSCSI) GetDeviceNameByHCTL(ctx context.Context, h scsi.HCTL) (string, error)
- func (m *MockSCSI) GetDeviceWWN(ctx context.Context, devices []string) (string, error)
- func (m *MockSCSI) GetDevicesByWWN(ctx context.Context, wwn string) ([]string, error)
- func (m *MockSCSI) GetNVMEDMDeviceByChildren(ctx context.Context, devices []string) (string, error)
- func (m *MockSCSI) GetNVMEDeviceWWN(ctx context.Context, devices []string) (string, error)
- func (m *MockSCSI) GetNVMEMultipathDMName(device, pattern string) ([]string, error)
- func (m *MockSCSI) GetNVMESymlink(checkPath string) (string, error)
- func (m *MockSCSI) IsDeviceExist(ctx context.Context, device string) bool
- func (m *MockSCSI) RescanSCSIDeviceByHCTL(ctx context.Context, h scsi.HCTL) error
- func (m *MockSCSI) RescanSCSIHostByHCTL(ctx context.Context, h scsi.HCTL) error
- func (m *MockSCSI) WaitUdevSymlink(ctx context.Context, deviceName, wwn string) error
- func (m *MockSCSI) WaitUdevSymlinkNVMe(ctx context.Context, deviceName, wwn string) error
- type MockSCSIMockRecorder
- func (mr *MockSCSIMockRecorder) CheckDeviceIsValid(ctx, device interface{}) *gomock.Call
- func (mr *MockSCSIMockRecorder) DeleteSCSIDeviceByHCTL(ctx, h interface{}) *gomock.Call
- func (mr *MockSCSIMockRecorder) DeleteSCSIDeviceByName(ctx, name interface{}) *gomock.Call
- func (mr *MockSCSIMockRecorder) DeleteSCSIDeviceByPath(ctx, devPath interface{}) *gomock.Call
- func (mr *MockSCSIMockRecorder) GetDMChildren(ctx, dmPath interface{}) *gomock.Call
- func (mr *MockSCSIMockRecorder) GetDMDeviceByChildren(ctx, devices interface{}) *gomock.Call
- func (mr *MockSCSIMockRecorder) GetDeviceNameByHCTL(ctx, h interface{}) *gomock.Call
- func (mr *MockSCSIMockRecorder) GetDeviceWWN(ctx, devices interface{}) *gomock.Call
- func (mr *MockSCSIMockRecorder) GetDevicesByWWN(ctx, wwn interface{}) *gomock.Call
- func (mr *MockSCSIMockRecorder) GetNVMEDMDeviceByChildren(ctx, devices interface{}) *gomock.Call
- func (mr *MockSCSIMockRecorder) GetNVMEDeviceWWN(ctx, devices interface{}) *gomock.Call
- func (mr *MockSCSIMockRecorder) GetNVMEMultipathDMName(device, pattern interface{}) *gomock.Call
- func (mr *MockSCSIMockRecorder) GetNVMESymlink(checkPath interface{}) *gomock.Call
- func (mr *MockSCSIMockRecorder) IsDeviceExist(ctx, device interface{}) *gomock.Call
- func (mr *MockSCSIMockRecorder) RescanSCSIDeviceByHCTL(ctx, h interface{}) *gomock.Call
- func (mr *MockSCSIMockRecorder) RescanSCSIHostByHCTL(ctx, h interface{}) *gomock.Call
- func (mr *MockSCSIMockRecorder) WaitUdevSymlink(ctx, deviceName, wwn interface{}) *gomock.Call
- func (mr *MockSCSIMockRecorder) WaitUdevSymlinkNVMe(ctx, deviceName, wwn interface{}) *gomock.Call
- type SCSI
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 ¶
CheckDeviceIsValid mocks base method.
func (*MockSCSI) DeleteSCSIDeviceByHCTL ¶
DeleteSCSIDeviceByHCTL mocks base method.
func (*MockSCSI) DeleteSCSIDeviceByName ¶
DeleteSCSIDeviceByName mocks base method.
func (*MockSCSI) DeleteSCSIDeviceByPath ¶
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 ¶
GetDMChildren mocks base method.
func (*MockSCSI) GetDMDeviceByChildren ¶
GetDMDeviceByChildren mocks base method.
func (*MockSCSI) GetDeviceNameByHCTL ¶
GetDeviceNameByHCTL mocks base method.
func (*MockSCSI) GetDeviceWWN ¶
GetDeviceWWN mocks base method.
func (*MockSCSI) GetDevicesByWWN ¶
GetDevicesByWWN mocks base method.
func (*MockSCSI) GetNVMEDMDeviceByChildren ¶ added in v1.3.0
GetNVMEDMDeviceByChildren mocks base method.
func (*MockSCSI) GetNVMEDeviceWWN ¶ added in v1.3.0
GetNVMEDeviceWWN mocks base method.
func (*MockSCSI) GetNVMEMultipathDMName ¶ added in v1.3.0
GetNVMEMultipathDMName mocks base method.
func (*MockSCSI) GetNVMESymlink ¶ added in v1.3.0
GetNVMESymlink mocks base method.
func (*MockSCSI) IsDeviceExist ¶
IsDeviceExist mocks base method.
func (*MockSCSI) RescanSCSIDeviceByHCTL ¶
RescanSCSIDeviceByHCTL mocks base method.
func (*MockSCSI) RescanSCSIHostByHCTL ¶
RescanSCSIHostByHCTL mocks base method.
func (*MockSCSI) WaitUdevSymlink ¶
WaitUdevSymlink 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 (*MockSCSIMockRecorder) GetNVMESymlink ¶ added in v1.3.0
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 (*MockSCSIMockRecorder) WaitUdevSymlink ¶
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