Versions in this module Expand all Collapse all v1 v1.99.0 Oct 22, 2024 Changes in this version + type FilepathWrapper struct + func (io *FilepathWrapper) EvalSymlinks(path string) (string, error) + func (io *FilepathWrapper) Glob(pattern string) (matches []string, err error) + type ISCSILib interface + CreateOrUpdateNode func(target goiscsi.ISCSITarget, options map[string]string) error + GetInitiators func(filename string) ([]string, error) + GetSessions func() ([]goiscsi.ISCSISession, error) + PerformLogin func(target goiscsi.ISCSITarget) error + type LimitedFile interface + Close func() error + WriteString func(s string) (n int, err error) + type LimitedFileInfo interface + IsDir func() bool + type LimitedFilepath interface + EvalSymlinks func(path string) (string, error) + Glob func(pattern string) (matches []string, err error) + type LimitedOS interface + IsNotExist func(err error) bool + Mkdir func(name string, perm os.FileMode) error + OpenFile func(name string, flag int, perm os.FileMode) (LimitedFile, error) + ReadFile func(filename string) ([]byte, error) + Remove func(name string) error + Stat func(name string) (LimitedFileInfo, error) + type LimitedOSExec interface + CommandContext func(ctx context.Context, name string, arg ...string) LimitedOSExecCmd + type LimitedOSExecCmd interface + CombinedOutput func() ([]byte, error) + type MockISCSILib struct + func NewMockISCSILib(ctrl *gomock.Controller) *MockISCSILib + func (m *MockISCSILib) CreateOrUpdateNode(target goiscsi.ISCSITarget, options map[string]string) error + func (m *MockISCSILib) DeleteNode(target goiscsi.ISCSITarget) error + func (m *MockISCSILib) DiscoverTargets(address string, login bool) ([]goiscsi.ISCSITarget, error) + func (m *MockISCSILib) EXPECT() *MockISCSILibMockRecorder + func (m *MockISCSILib) GetInitiators(filename string) ([]string, error) + func (m *MockISCSILib) GetNodes() ([]goiscsi.ISCSINode, error) + func (m *MockISCSILib) GetSessions() ([]goiscsi.ISCSISession, error) + func (m *MockISCSILib) PerformLogin(target goiscsi.ISCSITarget) error + func (m *MockISCSILib) PerformLogout(target goiscsi.ISCSITarget) error + func (m *MockISCSILib) PerformRescan() error + type MockISCSILibMockRecorder struct + func (mr *MockISCSILibMockRecorder) CreateOrUpdateNode(target, options interface{}) *gomock.Call + func (mr *MockISCSILibMockRecorder) DeleteNode(target interface{}) *gomock.Call + func (mr *MockISCSILibMockRecorder) DiscoverTargets(address, login interface{}) *gomock.Call + func (mr *MockISCSILibMockRecorder) GetInitiators(filename interface{}) *gomock.Call + func (mr *MockISCSILibMockRecorder) GetNodes() *gomock.Call + func (mr *MockISCSILibMockRecorder) GetSessions() *gomock.Call + func (mr *MockISCSILibMockRecorder) PerformLogin(target interface{}) *gomock.Call + func (mr *MockISCSILibMockRecorder) PerformLogout(target interface{}) *gomock.Call + func (mr *MockISCSILibMockRecorder) PerformRescan() *gomock.Call + type MockLimitedFile struct + func NewMockLimitedFile(ctrl *gomock.Controller) *MockLimitedFile + func (m *MockLimitedFile) Close() error + func (m *MockLimitedFile) EXPECT() *MockLimitedFileMockRecorder + func (m *MockLimitedFile) WriteString(s string) (int, error) + type MockLimitedFileInfo struct + func NewMockLimitedFileInfo(ctrl *gomock.Controller) *MockLimitedFileInfo + func (m *MockLimitedFileInfo) EXPECT() *MockLimitedFileInfoMockRecorder + func (m *MockLimitedFileInfo) IsDir() bool + type MockLimitedFileInfoMockRecorder struct + func (mr *MockLimitedFileInfoMockRecorder) IsDir() *gomock.Call + type MockLimitedFileMockRecorder struct + func (mr *MockLimitedFileMockRecorder) Close() *gomock.Call + func (mr *MockLimitedFileMockRecorder) WriteString(s interface{}) *gomock.Call + type MockLimitedFilepath struct + func NewMockLimitedFilepath(ctrl *gomock.Controller) *MockLimitedFilepath + func (m *MockLimitedFilepath) EXPECT() *MockLimitedFilepathMockRecorder + func (m *MockLimitedFilepath) EvalSymlinks(path string) (string, error) + func (m *MockLimitedFilepath) Glob(pattern string) ([]string, error) + type MockLimitedFilepathMockRecorder struct + func (mr *MockLimitedFilepathMockRecorder) EvalSymlinks(path interface{}) *gomock.Call + func (mr *MockLimitedFilepathMockRecorder) Glob(pattern interface{}) *gomock.Call + type MockLimitedIOUtil struct + func NewMockLimitedIOUtil(ctrl *gomock.Controller) *MockLimitedIOUtil + func (m *MockLimitedIOUtil) EXPECT() *MockLimitedIOUtilMockRecorder + type MockLimitedIOUtilMockRecorder struct + type MockLimitedOS struct + func NewMockLimitedOS(ctrl *gomock.Controller) *MockLimitedOS + func (m *MockLimitedOS) EXPECT() *MockLimitedOSMockRecorder + func (m *MockLimitedOS) IsNotExist(err error) bool + func (m *MockLimitedOS) Mkdir(name string, perm os.FileMode) error + func (m *MockLimitedOS) OpenFile(name string, flag int, perm os.FileMode) (LimitedFile, error) + func (m *MockLimitedOS) ReadFile(filename string) ([]byte, error) + func (m *MockLimitedOS) Remove(name string) error + func (m *MockLimitedOS) Stat(name string) (LimitedFileInfo, error) + type MockLimitedOSExec struct + func NewMockLimitedOSExec(ctrl *gomock.Controller) *MockLimitedOSExec + func (m *MockLimitedOSExec) CommandContext(ctx context.Context, name string, arg ...string) LimitedOSExecCmd + func (m *MockLimitedOSExec) EXPECT() *MockLimitedOSExecMockRecorder + type MockLimitedOSExecCmd struct + func NewMockLimitedOSExecCmd(ctrl *gomock.Controller) *MockLimitedOSExecCmd + func (m *MockLimitedOSExecCmd) CombinedOutput() ([]byte, error) + func (m *MockLimitedOSExecCmd) EXPECT() *MockLimitedOSExecCmdMockRecorder + type MockLimitedOSExecCmdMockRecorder struct + func (mr *MockLimitedOSExecCmdMockRecorder) CombinedOutput() *gomock.Call + type MockLimitedOSExecMockRecorder struct + func (mr *MockLimitedOSExecMockRecorder) CommandContext(ctx, name interface{}, arg ...interface{}) *gomock.Call + type MockLimitedOSMockRecorder struct + func (mr *MockLimitedOSMockRecorder) IsNotExist(err interface{}) *gomock.Call + func (mr *MockLimitedOSMockRecorder) Mkdir(name, perm interface{}) *gomock.Call + func (mr *MockLimitedOSMockRecorder) OpenFile(name, flag, perm interface{}) *gomock.Call + func (mr *MockLimitedOSMockRecorder) ReadFile(filename interface{}) *gomock.Call + func (mr *MockLimitedOSMockRecorder) Remove(name interface{}) *gomock.Call + func (mr *MockLimitedOSMockRecorder) Stat(name interface{}) *gomock.Call + type NVMe interface + DiscoverNVMeFCTargets func(address string, login bool) ([]gonvme.NVMeTarget, error) + DiscoverNVMeTCPTargets func(address string, login bool) ([]gonvme.NVMeTarget, error) + GetInitiators func(filename string) ([]string, error) + GetNVMeDeviceData func(path string) (string, string, error) + GetSessions func() ([]gonvme.NVMESession, error) + ListNVMeDeviceAndNamespace func() ([]gonvme.DevicePathAndNamespace, error) + NVMeDisconnect func(target gonvme.NVMeTarget) error + NVMeFCConnect func(target gonvme.NVMeTarget, duplicateConnect bool) error + NVMeTCPConnect func(target gonvme.NVMeTarget, duplicateConnect bool) error + type OSExecWrapper struct + func (w *OSExecWrapper) CommandContext(ctx context.Context, name string, arg ...string) LimitedOSExecCmd + type OSWrapper struct + func (io *OSWrapper) IsNotExist(err error) bool + func (io *OSWrapper) Mkdir(name string, perm os.FileMode) error + func (io *OSWrapper) OpenFile(name string, flag int, perm os.FileMode) (LimitedFile, error) + func (io *OSWrapper) ReadFile(filename string) ([]byte, error) + func (io *OSWrapper) Remove(name string) error + func (io *OSWrapper) Stat(name string) (LimitedFileInfo, error)