/
mocks.go
312 lines (267 loc) · 10.7 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/kubernetes (interfaces: Interface)
// Package kubernetes is a generated GoMock package.
package kubernetes
import (
context "context"
reflect "reflect"
chartrenderer "github.com/gardener/gardener/pkg/chartrenderer"
versioned "github.com/gardener/gardener/pkg/client/core/clientset/versioned"
kubernetes "github.com/gardener/gardener/pkg/client/kubernetes"
versioned0 "github.com/gardener/gardener/pkg/client/seedmanagement/clientset/versioned"
gomock "github.com/golang/mock/gomock"
clientset "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset"
version "k8s.io/apimachinery/pkg/version"
kubernetes0 "k8s.io/client-go/kubernetes"
rest "k8s.io/client-go/rest"
clientset0 "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset"
cache "sigs.k8s.io/controller-runtime/pkg/cache"
client "sigs.k8s.io/controller-runtime/pkg/client"
)
// MockInterface is a mock of Interface interface.
type MockInterface struct {
ctrl *gomock.Controller
recorder *MockInterfaceMockRecorder
}
// MockInterfaceMockRecorder is the mock recorder for MockInterface.
type MockInterfaceMockRecorder struct {
mock *MockInterface
}
// NewMockInterface creates a new mock instance.
func NewMockInterface(ctrl *gomock.Controller) *MockInterface {
mock := &MockInterface{ctrl: ctrl}
mock.recorder = &MockInterfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder {
return m.recorder
}
// APIExtension mocks base method.
func (m *MockInterface) APIExtension() clientset.Interface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "APIExtension")
ret0, _ := ret[0].(clientset.Interface)
return ret0
}
// APIExtension indicates an expected call of APIExtension.
func (mr *MockInterfaceMockRecorder) APIExtension() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "APIExtension", reflect.TypeOf((*MockInterface)(nil).APIExtension))
}
// APIRegistration mocks base method.
func (m *MockInterface) APIRegistration() clientset0.Interface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "APIRegistration")
ret0, _ := ret[0].(clientset0.Interface)
return ret0
}
// APIRegistration indicates an expected call of APIRegistration.
func (mr *MockInterfaceMockRecorder) APIRegistration() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "APIRegistration", reflect.TypeOf((*MockInterface)(nil).APIRegistration))
}
// Applier mocks base method.
func (m *MockInterface) Applier() kubernetes.Applier {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Applier")
ret0, _ := ret[0].(kubernetes.Applier)
return ret0
}
// Applier indicates an expected call of Applier.
func (mr *MockInterfaceMockRecorder) Applier() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Applier", reflect.TypeOf((*MockInterface)(nil).Applier))
}
// Cache mocks base method.
func (m *MockInterface) Cache() cache.Cache {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Cache")
ret0, _ := ret[0].(cache.Cache)
return ret0
}
// Cache indicates an expected call of Cache.
func (mr *MockInterfaceMockRecorder) Cache() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cache", reflect.TypeOf((*MockInterface)(nil).Cache))
}
// ChartApplier mocks base method.
func (m *MockInterface) ChartApplier() kubernetes.ChartApplier {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ChartApplier")
ret0, _ := ret[0].(kubernetes.ChartApplier)
return ret0
}
// ChartApplier indicates an expected call of ChartApplier.
func (mr *MockInterfaceMockRecorder) ChartApplier() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChartApplier", reflect.TypeOf((*MockInterface)(nil).ChartApplier))
}
// ChartRenderer mocks base method.
func (m *MockInterface) ChartRenderer() chartrenderer.Interface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ChartRenderer")
ret0, _ := ret[0].(chartrenderer.Interface)
return ret0
}
// ChartRenderer indicates an expected call of ChartRenderer.
func (mr *MockInterfaceMockRecorder) ChartRenderer() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChartRenderer", reflect.TypeOf((*MockInterface)(nil).ChartRenderer))
}
// CheckForwardPodPort mocks base method.
func (m *MockInterface) CheckForwardPodPort(arg0, arg1 string, arg2, arg3 int) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CheckForwardPodPort", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(error)
return ret0
}
// CheckForwardPodPort indicates an expected call of CheckForwardPodPort.
func (mr *MockInterfaceMockRecorder) CheckForwardPodPort(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckForwardPodPort", reflect.TypeOf((*MockInterface)(nil).CheckForwardPodPort), arg0, arg1, arg2, arg3)
}
// Client mocks base method.
func (m *MockInterface) Client() client.Client {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Client")
ret0, _ := ret[0].(client.Client)
return ret0
}
// Client indicates an expected call of Client.
func (mr *MockInterfaceMockRecorder) Client() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Client", reflect.TypeOf((*MockInterface)(nil).Client))
}
// DirectClient mocks base method.
func (m *MockInterface) DirectClient() client.Client {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DirectClient")
ret0, _ := ret[0].(client.Client)
return ret0
}
// DirectClient indicates an expected call of DirectClient.
func (mr *MockInterfaceMockRecorder) DirectClient() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DirectClient", reflect.TypeOf((*MockInterface)(nil).DirectClient))
}
// DiscoverVersion mocks base method.
func (m *MockInterface) DiscoverVersion() (*version.Info, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DiscoverVersion")
ret0, _ := ret[0].(*version.Info)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DiscoverVersion indicates an expected call of DiscoverVersion.
func (mr *MockInterfaceMockRecorder) DiscoverVersion() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DiscoverVersion", reflect.TypeOf((*MockInterface)(nil).DiscoverVersion))
}
// ForwardPodPort mocks base method.
func (m *MockInterface) ForwardPodPort(arg0, arg1 string, arg2, arg3 int) (chan struct{}, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ForwardPodPort", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(chan struct{})
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ForwardPodPort indicates an expected call of ForwardPodPort.
func (mr *MockInterfaceMockRecorder) ForwardPodPort(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ForwardPodPort", reflect.TypeOf((*MockInterface)(nil).ForwardPodPort), arg0, arg1, arg2, arg3)
}
// GardenCore mocks base method.
func (m *MockInterface) GardenCore() versioned.Interface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GardenCore")
ret0, _ := ret[0].(versioned.Interface)
return ret0
}
// GardenCore indicates an expected call of GardenCore.
func (mr *MockInterfaceMockRecorder) GardenCore() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GardenCore", reflect.TypeOf((*MockInterface)(nil).GardenCore))
}
// GardenSeedManagement mocks base method.
func (m *MockInterface) GardenSeedManagement() versioned0.Interface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GardenSeedManagement")
ret0, _ := ret[0].(versioned0.Interface)
return ret0
}
// GardenSeedManagement indicates an expected call of GardenSeedManagement.
func (mr *MockInterfaceMockRecorder) GardenSeedManagement() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GardenSeedManagement", reflect.TypeOf((*MockInterface)(nil).GardenSeedManagement))
}
// Kubernetes mocks base method.
func (m *MockInterface) Kubernetes() kubernetes0.Interface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Kubernetes")
ret0, _ := ret[0].(kubernetes0.Interface)
return ret0
}
// Kubernetes indicates an expected call of Kubernetes.
func (mr *MockInterfaceMockRecorder) Kubernetes() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Kubernetes", reflect.TypeOf((*MockInterface)(nil).Kubernetes))
}
// RESTClient mocks base method.
func (m *MockInterface) 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 *MockInterfaceMockRecorder) RESTClient() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockInterface)(nil).RESTClient))
}
// RESTConfig mocks base method.
func (m *MockInterface) RESTConfig() *rest.Config {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RESTConfig")
ret0, _ := ret[0].(*rest.Config)
return ret0
}
// RESTConfig indicates an expected call of RESTConfig.
func (mr *MockInterfaceMockRecorder) RESTConfig() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTConfig", reflect.TypeOf((*MockInterface)(nil).RESTConfig))
}
// Start mocks base method.
func (m *MockInterface) Start(arg0 context.Context) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Start", arg0)
}
// Start indicates an expected call of Start.
func (mr *MockInterfaceMockRecorder) Start(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockInterface)(nil).Start), arg0)
}
// Version mocks base method.
func (m *MockInterface) Version() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Version")
ret0, _ := ret[0].(string)
return ret0
}
// Version indicates an expected call of Version.
func (mr *MockInterfaceMockRecorder) Version() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Version", reflect.TypeOf((*MockInterface)(nil).Version))
}
// WaitForCacheSync mocks base method.
func (m *MockInterface) WaitForCacheSync(arg0 context.Context) bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "WaitForCacheSync", arg0)
ret0, _ := ret[0].(bool)
return ret0
}
// WaitForCacheSync indicates an expected call of WaitForCacheSync.
func (mr *MockInterfaceMockRecorder) WaitForCacheSync(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitForCacheSync", reflect.TypeOf((*MockInterface)(nil).WaitForCacheSync), arg0)
}