scsi

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

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) 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

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) 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

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)
	GetDevicesByWWN(ctx context.Context, wwn string) ([]string, error)
	GetDMDeviceByChildren(ctx context.Context, devices []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
}

Jump to

Keyboard shortcuts

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