-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmount_mock.go
More file actions
171 lines (146 loc) · 5.57 KB
/
mount_mock.go
File metadata and controls
171 lines (146 loc) · 5.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
// Code generated by MockGen. DO NOT EDIT.
// Source: ./pkg/csi/util/mount (interfaces: IMount)
//
// Generated by this command:
//
// mockgen -destination ./pkg/csi/util/mount/mount_mock.go -package mount ./pkg/csi/util/mount IMount
//
// Package mount is a generated GoMock package.
package mount
import (
reflect "reflect"
gomock "go.uber.org/mock/gomock"
mount0 "k8s.io/mount-utils"
)
// MockIMount is a mock of IMount interface.
type MockIMount struct {
ctrl *gomock.Controller
recorder *MockIMountMockRecorder
isgomock struct{}
}
// MockIMountMockRecorder is the mock recorder for MockIMount.
type MockIMountMockRecorder struct {
mock *MockIMount
}
// NewMockIMount creates a new mock instance.
func NewMockIMount(ctrl *gomock.Controller) *MockIMount {
mock := &MockIMount{ctrl: ctrl}
mock.recorder = &MockIMountMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockIMount) EXPECT() *MockIMountMockRecorder {
return m.recorder
}
// GetDevicePath mocks base method.
func (m *MockIMount) GetDevicePath(volumeID string) (string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetDevicePath", volumeID)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetDevicePath indicates an expected call of GetDevicePath.
func (mr *MockIMountMockRecorder) GetDevicePath(volumeID any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDevicePath", reflect.TypeOf((*MockIMount)(nil).GetDevicePath), volumeID)
}
// GetDeviceStats mocks base method.
func (m *MockIMount) GetDeviceStats(path string) (*DeviceStats, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetDeviceStats", path)
ret0, _ := ret[0].(*DeviceStats)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetDeviceStats indicates an expected call of GetDeviceStats.
func (mr *MockIMountMockRecorder) GetDeviceStats(path any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDeviceStats", reflect.TypeOf((*MockIMount)(nil).GetDeviceStats), path)
}
// GetMountFs mocks base method.
func (m *MockIMount) GetMountFs(path string) ([]byte, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetMountFs", path)
ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetMountFs indicates an expected call of GetMountFs.
func (mr *MockIMountMockRecorder) GetMountFs(path any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMountFs", reflect.TypeOf((*MockIMount)(nil).GetMountFs), path)
}
// IsLikelyNotMountPointAttach mocks base method.
func (m *MockIMount) IsLikelyNotMountPointAttach(targetpath string) (bool, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IsLikelyNotMountPointAttach", targetpath)
ret0, _ := ret[0].(bool)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// IsLikelyNotMountPointAttach indicates an expected call of IsLikelyNotMountPointAttach.
func (mr *MockIMountMockRecorder) IsLikelyNotMountPointAttach(targetpath any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsLikelyNotMountPointAttach", reflect.TypeOf((*MockIMount)(nil).IsLikelyNotMountPointAttach), targetpath)
}
// MakeDir mocks base method.
func (m *MockIMount) MakeDir(pathname string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "MakeDir", pathname)
ret0, _ := ret[0].(error)
return ret0
}
// MakeDir indicates an expected call of MakeDir.
func (mr *MockIMountMockRecorder) MakeDir(pathname any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MakeDir", reflect.TypeOf((*MockIMount)(nil).MakeDir), pathname)
}
// MakeFile mocks base method.
func (m *MockIMount) MakeFile(pathname string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "MakeFile", pathname)
ret0, _ := ret[0].(error)
return ret0
}
// MakeFile indicates an expected call of MakeFile.
func (mr *MockIMountMockRecorder) MakeFile(pathname any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MakeFile", reflect.TypeOf((*MockIMount)(nil).MakeFile), pathname)
}
// Mounter mocks base method.
func (m *MockIMount) Mounter() *mount0.SafeFormatAndMount {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Mounter")
ret0, _ := ret[0].(*mount0.SafeFormatAndMount)
return ret0
}
// Mounter indicates an expected call of Mounter.
func (mr *MockIMountMockRecorder) Mounter() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Mounter", reflect.TypeOf((*MockIMount)(nil).Mounter))
}
// ScanForAttach mocks base method.
func (m *MockIMount) ScanForAttach(devicePath string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ScanForAttach", devicePath)
ret0, _ := ret[0].(error)
return ret0
}
// ScanForAttach indicates an expected call of ScanForAttach.
func (mr *MockIMountMockRecorder) ScanForAttach(devicePath any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScanForAttach", reflect.TypeOf((*MockIMount)(nil).ScanForAttach), devicePath)
}
// UnmountPath mocks base method.
func (m *MockIMount) UnmountPath(mountPath string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UnmountPath", mountPath)
ret0, _ := ret[0].(error)
return ret0
}
// UnmountPath indicates an expected call of UnmountPath.
func (mr *MockIMountMockRecorder) UnmountPath(mountPath any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnmountPath", reflect.TypeOf((*MockIMount)(nil).UnmountPath), mountPath)
}