forked from gardener/gardener
/
mocks.go
312 lines (268 loc) · 11.4 KB
/
mocks.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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/gardener/gardener/pkg/client/garden/clientset/versioned/typed/garden/v1beta1 (interfaces: GardenV1beta1Interface,ShootInterface)
// Package v1beta1 is a generated GoMock package.
package v1beta1
import (
v1beta1 "github.com/gardener/gardener/pkg/apis/garden/v1beta1"
v1beta10 "github.com/gardener/gardener/pkg/client/garden/clientset/versioned/typed/garden/v1beta1"
gomock "github.com/golang/mock/gomock"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
rest "k8s.io/client-go/rest"
reflect "reflect"
)
// MockGardenV1beta1Interface is a mock of GardenV1beta1Interface interface
type MockGardenV1beta1Interface struct {
ctrl *gomock.Controller
recorder *MockGardenV1beta1InterfaceMockRecorder
}
// MockGardenV1beta1InterfaceMockRecorder is the mock recorder for MockGardenV1beta1Interface
type MockGardenV1beta1InterfaceMockRecorder struct {
mock *MockGardenV1beta1Interface
}
// NewMockGardenV1beta1Interface creates a new mock instance
func NewMockGardenV1beta1Interface(ctrl *gomock.Controller) *MockGardenV1beta1Interface {
mock := &MockGardenV1beta1Interface{ctrl: ctrl}
mock.recorder = &MockGardenV1beta1InterfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockGardenV1beta1Interface) EXPECT() *MockGardenV1beta1InterfaceMockRecorder {
return m.recorder
}
// BackupInfrastructures mocks base method
func (m *MockGardenV1beta1Interface) BackupInfrastructures(arg0 string) v1beta10.BackupInfrastructureInterface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "BackupInfrastructures", arg0)
ret0, _ := ret[0].(v1beta10.BackupInfrastructureInterface)
return ret0
}
// BackupInfrastructures indicates an expected call of BackupInfrastructures
func (mr *MockGardenV1beta1InterfaceMockRecorder) BackupInfrastructures(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BackupInfrastructures", reflect.TypeOf((*MockGardenV1beta1Interface)(nil).BackupInfrastructures), arg0)
}
// CloudProfiles mocks base method
func (m *MockGardenV1beta1Interface) CloudProfiles() v1beta10.CloudProfileInterface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CloudProfiles")
ret0, _ := ret[0].(v1beta10.CloudProfileInterface)
return ret0
}
// CloudProfiles indicates an expected call of CloudProfiles
func (mr *MockGardenV1beta1InterfaceMockRecorder) CloudProfiles() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloudProfiles", reflect.TypeOf((*MockGardenV1beta1Interface)(nil).CloudProfiles))
}
// Projects mocks base method
func (m *MockGardenV1beta1Interface) Projects() v1beta10.ProjectInterface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Projects")
ret0, _ := ret[0].(v1beta10.ProjectInterface)
return ret0
}
// Projects indicates an expected call of Projects
func (mr *MockGardenV1beta1InterfaceMockRecorder) Projects() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Projects", reflect.TypeOf((*MockGardenV1beta1Interface)(nil).Projects))
}
// Quotas mocks base method
func (m *MockGardenV1beta1Interface) Quotas(arg0 string) v1beta10.QuotaInterface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Quotas", arg0)
ret0, _ := ret[0].(v1beta10.QuotaInterface)
return ret0
}
// Quotas indicates an expected call of Quotas
func (mr *MockGardenV1beta1InterfaceMockRecorder) Quotas(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Quotas", reflect.TypeOf((*MockGardenV1beta1Interface)(nil).Quotas), arg0)
}
// RESTClient mocks base method
func (m *MockGardenV1beta1Interface) RESTClient() rest.Interface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RESTClient")
ret0, _ := ret[0].(rest.Interface)
return ret0
}
// RESTClient indicates an expected call of RESTClient
func (mr *MockGardenV1beta1InterfaceMockRecorder) RESTClient() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockGardenV1beta1Interface)(nil).RESTClient))
}
// SecretBindings mocks base method
func (m *MockGardenV1beta1Interface) SecretBindings(arg0 string) v1beta10.SecretBindingInterface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SecretBindings", arg0)
ret0, _ := ret[0].(v1beta10.SecretBindingInterface)
return ret0
}
// SecretBindings indicates an expected call of SecretBindings
func (mr *MockGardenV1beta1InterfaceMockRecorder) SecretBindings(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SecretBindings", reflect.TypeOf((*MockGardenV1beta1Interface)(nil).SecretBindings), arg0)
}
// Seeds mocks base method
func (m *MockGardenV1beta1Interface) Seeds() v1beta10.SeedInterface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Seeds")
ret0, _ := ret[0].(v1beta10.SeedInterface)
return ret0
}
// Seeds indicates an expected call of Seeds
func (mr *MockGardenV1beta1InterfaceMockRecorder) Seeds() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Seeds", reflect.TypeOf((*MockGardenV1beta1Interface)(nil).Seeds))
}
// Shoots mocks base method
func (m *MockGardenV1beta1Interface) Shoots(arg0 string) v1beta10.ShootInterface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Shoots", arg0)
ret0, _ := ret[0].(v1beta10.ShootInterface)
return ret0
}
// Shoots indicates an expected call of Shoots
func (mr *MockGardenV1beta1InterfaceMockRecorder) Shoots(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Shoots", reflect.TypeOf((*MockGardenV1beta1Interface)(nil).Shoots), arg0)
}
// MockShootInterface is a mock of ShootInterface interface
type MockShootInterface struct {
ctrl *gomock.Controller
recorder *MockShootInterfaceMockRecorder
}
// MockShootInterfaceMockRecorder is the mock recorder for MockShootInterface
type MockShootInterfaceMockRecorder struct {
mock *MockShootInterface
}
// NewMockShootInterface creates a new mock instance
func NewMockShootInterface(ctrl *gomock.Controller) *MockShootInterface {
mock := &MockShootInterface{ctrl: ctrl}
mock.recorder = &MockShootInterfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockShootInterface) EXPECT() *MockShootInterfaceMockRecorder {
return m.recorder
}
// Create mocks base method
func (m *MockShootInterface) Create(arg0 *v1beta1.Shoot) (*v1beta1.Shoot, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Create", arg0)
ret0, _ := ret[0].(*v1beta1.Shoot)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Create indicates an expected call of Create
func (mr *MockShootInterfaceMockRecorder) Create(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockShootInterface)(nil).Create), arg0)
}
// Delete mocks base method
func (m *MockShootInterface) Delete(arg0 string, arg1 *v1.DeleteOptions) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Delete", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// Delete indicates an expected call of Delete
func (mr *MockShootInterfaceMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockShootInterface)(nil).Delete), arg0, arg1)
}
// DeleteCollection mocks base method
func (m *MockShootInterface) DeleteCollection(arg0 *v1.DeleteOptions, arg1 v1.ListOptions) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteCollection indicates an expected call of DeleteCollection
func (mr *MockShootInterfaceMockRecorder) DeleteCollection(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockShootInterface)(nil).DeleteCollection), arg0, arg1)
}
// Get mocks base method
func (m *MockShootInterface) Get(arg0 string, arg1 v1.GetOptions) (*v1beta1.Shoot, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Get", arg0, arg1)
ret0, _ := ret[0].(*v1beta1.Shoot)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Get indicates an expected call of Get
func (mr *MockShootInterfaceMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockShootInterface)(nil).Get), arg0, arg1)
}
// List mocks base method
func (m *MockShootInterface) List(arg0 v1.ListOptions) (*v1beta1.ShootList, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "List", arg0)
ret0, _ := ret[0].(*v1beta1.ShootList)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// List indicates an expected call of List
func (mr *MockShootInterfaceMockRecorder) List(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockShootInterface)(nil).List), arg0)
}
// Patch mocks base method
func (m *MockShootInterface) Patch(arg0 string, arg1 types.PatchType, arg2 []byte, arg3 ...string) (*v1beta1.Shoot, error) {
m.ctrl.T.Helper()
varargs := []interface{}{arg0, arg1, arg2}
for _, a := range arg3 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "Patch", varargs...)
ret0, _ := ret[0].(*v1beta1.Shoot)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Patch indicates an expected call of Patch
func (mr *MockShootInterfaceMockRecorder) Patch(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{arg0, arg1, arg2}, arg3...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockShootInterface)(nil).Patch), varargs...)
}
// Update mocks base method
func (m *MockShootInterface) Update(arg0 *v1beta1.Shoot) (*v1beta1.Shoot, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Update", arg0)
ret0, _ := ret[0].(*v1beta1.Shoot)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Update indicates an expected call of Update
func (mr *MockShootInterfaceMockRecorder) Update(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockShootInterface)(nil).Update), arg0)
}
// UpdateStatus mocks base method
func (m *MockShootInterface) UpdateStatus(arg0 *v1beta1.Shoot) (*v1beta1.Shoot, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpdateStatus", arg0)
ret0, _ := ret[0].(*v1beta1.Shoot)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// UpdateStatus indicates an expected call of UpdateStatus
func (mr *MockShootInterfaceMockRecorder) UpdateStatus(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockShootInterface)(nil).UpdateStatus), arg0)
}
// Watch mocks base method
func (m *MockShootInterface) Watch(arg0 v1.ListOptions) (watch.Interface, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Watch", arg0)
ret0, _ := ret[0].(watch.Interface)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Watch indicates an expected call of Watch
func (mr *MockShootInterfaceMockRecorder) Watch(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockShootInterface)(nil).Watch), arg0)
}