-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathPoolService_mock.go
325 lines (283 loc) · 13.4 KB
/
PoolService_mock.go
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
//
// Code generated by MockGen. DO NOT EDIT.
// Source: ./cloudstack/PoolService.go
//
// Generated by this command:
//
// mockgen -destination=./cloudstack/PoolService_mock.go -package=cloudstack -copyright_file=header.txt -source=./cloudstack/PoolService.go
//
// Package cloudstack is a generated GoMock package.
package cloudstack
import (
reflect "reflect"
gomock "go.uber.org/mock/gomock"
)
// MockPoolServiceIface is a mock of PoolServiceIface interface.
type MockPoolServiceIface struct {
ctrl *gomock.Controller
recorder *MockPoolServiceIfaceMockRecorder
isgomock struct{}
}
// MockPoolServiceIfaceMockRecorder is the mock recorder for MockPoolServiceIface.
type MockPoolServiceIfaceMockRecorder struct {
mock *MockPoolServiceIface
}
// NewMockPoolServiceIface creates a new mock instance.
func NewMockPoolServiceIface(ctrl *gomock.Controller) *MockPoolServiceIface {
mock := &MockPoolServiceIface{ctrl: ctrl}
mock.recorder = &MockPoolServiceIfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockPoolServiceIface) EXPECT() *MockPoolServiceIfaceMockRecorder {
return m.recorder
}
// CreateStoragePool mocks base method.
func (m *MockPoolServiceIface) CreateStoragePool(p *CreateStoragePoolParams) (*CreateStoragePoolResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateStoragePool", p)
ret0, _ := ret[0].(*CreateStoragePoolResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CreateStoragePool indicates an expected call of CreateStoragePool.
func (mr *MockPoolServiceIfaceMockRecorder) CreateStoragePool(p any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateStoragePool", reflect.TypeOf((*MockPoolServiceIface)(nil).CreateStoragePool), p)
}
// DeleteStoragePool mocks base method.
func (m *MockPoolServiceIface) DeleteStoragePool(p *DeleteStoragePoolParams) (*DeleteStoragePoolResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteStoragePool", p)
ret0, _ := ret[0].(*DeleteStoragePoolResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DeleteStoragePool indicates an expected call of DeleteStoragePool.
func (mr *MockPoolServiceIfaceMockRecorder) DeleteStoragePool(p any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteStoragePool", reflect.TypeOf((*MockPoolServiceIface)(nil).DeleteStoragePool), p)
}
// FindStoragePoolsForMigration mocks base method.
func (m *MockPoolServiceIface) FindStoragePoolsForMigration(p *FindStoragePoolsForMigrationParams) (*FindStoragePoolsForMigrationResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "FindStoragePoolsForMigration", p)
ret0, _ := ret[0].(*FindStoragePoolsForMigrationResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// FindStoragePoolsForMigration indicates an expected call of FindStoragePoolsForMigration.
func (mr *MockPoolServiceIfaceMockRecorder) FindStoragePoolsForMigration(p any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindStoragePoolsForMigration", reflect.TypeOf((*MockPoolServiceIface)(nil).FindStoragePoolsForMigration), p)
}
// GetStoragePoolByID mocks base method.
func (m *MockPoolServiceIface) GetStoragePoolByID(id string, opts ...OptionFunc) (*StoragePool, int, error) {
m.ctrl.T.Helper()
varargs := []any{id}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "GetStoragePoolByID", varargs...)
ret0, _ := ret[0].(*StoragePool)
ret1, _ := ret[1].(int)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// GetStoragePoolByID indicates an expected call of GetStoragePoolByID.
func (mr *MockPoolServiceIfaceMockRecorder) GetStoragePoolByID(id any, opts ...any) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]any{id}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStoragePoolByID", reflect.TypeOf((*MockPoolServiceIface)(nil).GetStoragePoolByID), varargs...)
}
// GetStoragePoolByName mocks base method.
func (m *MockPoolServiceIface) GetStoragePoolByName(name string, opts ...OptionFunc) (*StoragePool, int, error) {
m.ctrl.T.Helper()
varargs := []any{name}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "GetStoragePoolByName", varargs...)
ret0, _ := ret[0].(*StoragePool)
ret1, _ := ret[1].(int)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// GetStoragePoolByName indicates an expected call of GetStoragePoolByName.
func (mr *MockPoolServiceIfaceMockRecorder) GetStoragePoolByName(name any, opts ...any) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]any{name}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStoragePoolByName", reflect.TypeOf((*MockPoolServiceIface)(nil).GetStoragePoolByName), varargs...)
}
// GetStoragePoolID mocks base method.
func (m *MockPoolServiceIface) GetStoragePoolID(name string, opts ...OptionFunc) (string, int, error) {
m.ctrl.T.Helper()
varargs := []any{name}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "GetStoragePoolID", varargs...)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(int)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// GetStoragePoolID indicates an expected call of GetStoragePoolID.
func (mr *MockPoolServiceIfaceMockRecorder) GetStoragePoolID(name any, opts ...any) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]any{name}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStoragePoolID", reflect.TypeOf((*MockPoolServiceIface)(nil).GetStoragePoolID), varargs...)
}
// ListElastistorPool mocks base method.
func (m *MockPoolServiceIface) ListElastistorPool(p *ListElastistorPoolParams) (*ListElastistorPoolResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListElastistorPool", p)
ret0, _ := ret[0].(*ListElastistorPoolResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListElastistorPool indicates an expected call of ListElastistorPool.
func (mr *MockPoolServiceIfaceMockRecorder) ListElastistorPool(p any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListElastistorPool", reflect.TypeOf((*MockPoolServiceIface)(nil).ListElastistorPool), p)
}
// ListStoragePools mocks base method.
func (m *MockPoolServiceIface) ListStoragePools(p *ListStoragePoolsParams) (*ListStoragePoolsResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListStoragePools", p)
ret0, _ := ret[0].(*ListStoragePoolsResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListStoragePools indicates an expected call of ListStoragePools.
func (mr *MockPoolServiceIfaceMockRecorder) ListStoragePools(p any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStoragePools", reflect.TypeOf((*MockPoolServiceIface)(nil).ListStoragePools), p)
}
// NewCreateStoragePoolParams mocks base method.
func (m *MockPoolServiceIface) NewCreateStoragePoolParams(name, url, zoneid string) *CreateStoragePoolParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewCreateStoragePoolParams", name, url, zoneid)
ret0, _ := ret[0].(*CreateStoragePoolParams)
return ret0
}
// NewCreateStoragePoolParams indicates an expected call of NewCreateStoragePoolParams.
func (mr *MockPoolServiceIfaceMockRecorder) NewCreateStoragePoolParams(name, url, zoneid any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewCreateStoragePoolParams", reflect.TypeOf((*MockPoolServiceIface)(nil).NewCreateStoragePoolParams), name, url, zoneid)
}
// NewDeleteStoragePoolParams mocks base method.
func (m *MockPoolServiceIface) NewDeleteStoragePoolParams(id string) *DeleteStoragePoolParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewDeleteStoragePoolParams", id)
ret0, _ := ret[0].(*DeleteStoragePoolParams)
return ret0
}
// NewDeleteStoragePoolParams indicates an expected call of NewDeleteStoragePoolParams.
func (mr *MockPoolServiceIfaceMockRecorder) NewDeleteStoragePoolParams(id any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewDeleteStoragePoolParams", reflect.TypeOf((*MockPoolServiceIface)(nil).NewDeleteStoragePoolParams), id)
}
// NewFindStoragePoolsForMigrationParams mocks base method.
func (m *MockPoolServiceIface) NewFindStoragePoolsForMigrationParams(id string) *FindStoragePoolsForMigrationParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewFindStoragePoolsForMigrationParams", id)
ret0, _ := ret[0].(*FindStoragePoolsForMigrationParams)
return ret0
}
// NewFindStoragePoolsForMigrationParams indicates an expected call of NewFindStoragePoolsForMigrationParams.
func (mr *MockPoolServiceIfaceMockRecorder) NewFindStoragePoolsForMigrationParams(id any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewFindStoragePoolsForMigrationParams", reflect.TypeOf((*MockPoolServiceIface)(nil).NewFindStoragePoolsForMigrationParams), id)
}
// NewListElastistorPoolParams mocks base method.
func (m *MockPoolServiceIface) NewListElastistorPoolParams() *ListElastistorPoolParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewListElastistorPoolParams")
ret0, _ := ret[0].(*ListElastistorPoolParams)
return ret0
}
// NewListElastistorPoolParams indicates an expected call of NewListElastistorPoolParams.
func (mr *MockPoolServiceIfaceMockRecorder) NewListElastistorPoolParams() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewListElastistorPoolParams", reflect.TypeOf((*MockPoolServiceIface)(nil).NewListElastistorPoolParams))
}
// NewListStoragePoolsParams mocks base method.
func (m *MockPoolServiceIface) NewListStoragePoolsParams() *ListStoragePoolsParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewListStoragePoolsParams")
ret0, _ := ret[0].(*ListStoragePoolsParams)
return ret0
}
// NewListStoragePoolsParams indicates an expected call of NewListStoragePoolsParams.
func (mr *MockPoolServiceIfaceMockRecorder) NewListStoragePoolsParams() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewListStoragePoolsParams", reflect.TypeOf((*MockPoolServiceIface)(nil).NewListStoragePoolsParams))
}
// NewSyncStoragePoolParams mocks base method.
func (m *MockPoolServiceIface) NewSyncStoragePoolParams(id string) *SyncStoragePoolParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewSyncStoragePoolParams", id)
ret0, _ := ret[0].(*SyncStoragePoolParams)
return ret0
}
// NewSyncStoragePoolParams indicates an expected call of NewSyncStoragePoolParams.
func (mr *MockPoolServiceIfaceMockRecorder) NewSyncStoragePoolParams(id any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewSyncStoragePoolParams", reflect.TypeOf((*MockPoolServiceIface)(nil).NewSyncStoragePoolParams), id)
}
// NewUpdateStoragePoolParams mocks base method.
func (m *MockPoolServiceIface) NewUpdateStoragePoolParams(id string) *UpdateStoragePoolParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewUpdateStoragePoolParams", id)
ret0, _ := ret[0].(*UpdateStoragePoolParams)
return ret0
}
// NewUpdateStoragePoolParams indicates an expected call of NewUpdateStoragePoolParams.
func (mr *MockPoolServiceIfaceMockRecorder) NewUpdateStoragePoolParams(id any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewUpdateStoragePoolParams", reflect.TypeOf((*MockPoolServiceIface)(nil).NewUpdateStoragePoolParams), id)
}
// SyncStoragePool mocks base method.
func (m *MockPoolServiceIface) SyncStoragePool(p *SyncStoragePoolParams) (*SyncStoragePoolResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SyncStoragePool", p)
ret0, _ := ret[0].(*SyncStoragePoolResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// SyncStoragePool indicates an expected call of SyncStoragePool.
func (mr *MockPoolServiceIfaceMockRecorder) SyncStoragePool(p any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SyncStoragePool", reflect.TypeOf((*MockPoolServiceIface)(nil).SyncStoragePool), p)
}
// UpdateStoragePool mocks base method.
func (m *MockPoolServiceIface) UpdateStoragePool(p *UpdateStoragePoolParams) (*UpdateStoragePoolResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpdateStoragePool", p)
ret0, _ := ret[0].(*UpdateStoragePoolResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// UpdateStoragePool indicates an expected call of UpdateStoragePool.
func (mr *MockPoolServiceIfaceMockRecorder) UpdateStoragePool(p any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStoragePool", reflect.TypeOf((*MockPoolServiceIface)(nil).UpdateStoragePool), p)
}