multipath

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package multipath is a generated GoMock package.

Package multipath is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockMultipath

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

MockMultipath is a mock of Multipath interface.

func NewMockMultipath

func NewMockMultipath(ctrl *gomock.Controller) *MockMultipath

NewMockMultipath creates a new mock instance.

func (*MockMultipath) AddPath

func (m *MockMultipath) AddPath(ctx context.Context, path string) error

AddPath mocks base method.

func (*MockMultipath) AddWWID

func (m *MockMultipath) AddWWID(ctx context.Context, wwid string) error

AddWWID mocks base method.

func (*MockMultipath) DelPath

func (m *MockMultipath) DelPath(ctx context.Context, path string) error

DelPath mocks base method.

func (*MockMultipath) EXPECT

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

func (*MockMultipath) FlushDevice

func (m *MockMultipath) FlushDevice(ctx context.Context, deviceMapName string) error

FlushDevice mocks base method.

func (*MockMultipath) GetDMWWID

func (m *MockMultipath) GetDMWWID(ctx context.Context, deviceMapName string) (string, error)

GetDMWWID mocks base method.

func (*MockMultipath) GetMpathMinorByMpathName added in v1.15.0

func (m *MockMultipath) GetMpathMinorByMpathName(ctx context.Context, mpath string) (string, bool, error)

GetMpathMinorByMpathName mocks base method.

func (*MockMultipath) GetMultipathNameAndPaths added in v1.15.0

func (m *MockMultipath) GetMultipathNameAndPaths(ctx context.Context, wwid string) (string, []string, error)

GetMultipathNameAndPaths mocks base method.

func (*MockMultipath) IsDaemonRunning

func (m *MockMultipath) IsDaemonRunning(ctx context.Context) bool

IsDaemonRunning mocks base method.

func (*MockMultipath) RemoveDeviceFromWWIDSFile added in v1.12.0

func (m *MockMultipath) RemoveDeviceFromWWIDSFile(ctx context.Context, wwid string) error

RemoveDeviceFromWWIDSFile mocks base method.

type MockMultipathMockRecorder

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

MockMultipathMockRecorder is the mock recorder for MockMultipath.

func (*MockMultipathMockRecorder) AddPath

func (mr *MockMultipathMockRecorder) AddPath(ctx, path interface{}) *gomock.Call

AddPath indicates an expected call of AddPath.

func (*MockMultipathMockRecorder) AddWWID

func (mr *MockMultipathMockRecorder) AddWWID(ctx, wwid interface{}) *gomock.Call

AddWWID indicates an expected call of AddWWID.

func (*MockMultipathMockRecorder) DelPath

func (mr *MockMultipathMockRecorder) DelPath(ctx, path interface{}) *gomock.Call

DelPath indicates an expected call of DelPath.

func (*MockMultipathMockRecorder) FlushDevice

func (mr *MockMultipathMockRecorder) FlushDevice(ctx, deviceMapName interface{}) *gomock.Call

FlushDevice indicates an expected call of FlushDevice.

func (*MockMultipathMockRecorder) GetDMWWID

func (mr *MockMultipathMockRecorder) GetDMWWID(ctx, deviceMapName interface{}) *gomock.Call

GetDMWWID indicates an expected call of GetDMWWID.

func (*MockMultipathMockRecorder) GetMpathMinorByMpathName added in v1.15.0

func (mr *MockMultipathMockRecorder) GetMpathMinorByMpathName(ctx, mpath interface{}) *gomock.Call

GetMpathMinorByMpathName indicates an expected call of GetMpathMinorByMpathName.

func (*MockMultipathMockRecorder) GetMultipathNameAndPaths added in v1.15.0

func (mr *MockMultipathMockRecorder) GetMultipathNameAndPaths(ctx, wwid interface{}) *gomock.Call

GetMultipathNameAndPaths indicates an expected call of GetMultipathNameAndPaths.

func (*MockMultipathMockRecorder) IsDaemonRunning

func (mr *MockMultipathMockRecorder) IsDaemonRunning(ctx interface{}) *gomock.Call

IsDaemonRunning indicates an expected call of IsDaemonRunning.

func (*MockMultipathMockRecorder) RemoveDeviceFromWWIDSFile added in v1.12.0

func (mr *MockMultipathMockRecorder) RemoveDeviceFromWWIDSFile(ctx, wwid interface{}) *gomock.Call

RemoveDeviceFromWWIDSFile indicates an expected call of RemoveDeviceFromWWIDSFile.

type Multipath

type Multipath interface {
	AddWWID(ctx context.Context, wwid string) error
	AddPath(ctx context.Context, path string) error
	DelPath(ctx context.Context, path string) error
	FlushDevice(ctx context.Context, deviceMapName string) error
	RemoveDeviceFromWWIDSFile(ctx context.Context, wwid string) error
	IsDaemonRunning(ctx context.Context) bool
	GetDMWWID(ctx context.Context, deviceMapName string) (string, error)
	GetMultipathNameAndPaths(ctx context.Context, wwid string) (string, []string, error)
	GetMpathMinorByMpathName(ctx context.Context, mpath string) (string, bool, error)
}

Multipath defines methods for multipath related operations

Jump to

Keyboard shortcuts

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