-
Notifications
You must be signed in to change notification settings - Fork 472
/
mocks.go
247 lines (208 loc) · 9.08 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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/gardener/gardener/pkg/component/kubeapiserver (interfaces: Interface)
// Package mock is a generated GoMock package.
package mock
import (
context "context"
reflect "reflect"
kubeapiserver "github.com/gardener/gardener/pkg/component/kubeapiserver"
gomock "github.com/golang/mock/gomock"
v1 "k8s.io/api/core/v1"
)
// 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
}
// AlertingRules mocks base method.
func (m *MockInterface) AlertingRules() (map[string]string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AlertingRules")
ret0, _ := ret[0].(map[string]string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// AlertingRules indicates an expected call of AlertingRules.
func (mr *MockInterfaceMockRecorder) AlertingRules() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AlertingRules", reflect.TypeOf((*MockInterface)(nil).AlertingRules))
}
// Deploy mocks base method.
func (m *MockInterface) Deploy(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Deploy", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Deploy indicates an expected call of Deploy.
func (mr *MockInterfaceMockRecorder) Deploy(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Deploy", reflect.TypeOf((*MockInterface)(nil).Deploy), arg0)
}
// Destroy mocks base method.
func (m *MockInterface) Destroy(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Destroy", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Destroy indicates an expected call of Destroy.
func (mr *MockInterfaceMockRecorder) Destroy(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Destroy", reflect.TypeOf((*MockInterface)(nil).Destroy), arg0)
}
// GetAutoscalingReplicas mocks base method.
func (m *MockInterface) GetAutoscalingReplicas() *int32 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetAutoscalingReplicas")
ret0, _ := ret[0].(*int32)
return ret0
}
// GetAutoscalingReplicas indicates an expected call of GetAutoscalingReplicas.
func (mr *MockInterfaceMockRecorder) GetAutoscalingReplicas() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAutoscalingReplicas", reflect.TypeOf((*MockInterface)(nil).GetAutoscalingReplicas))
}
// GetValues mocks base method.
func (m *MockInterface) GetValues() kubeapiserver.Values {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetValues")
ret0, _ := ret[0].(kubeapiserver.Values)
return ret0
}
// GetValues indicates an expected call of GetValues.
func (mr *MockInterfaceMockRecorder) GetValues() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetValues", reflect.TypeOf((*MockInterface)(nil).GetValues))
}
// ScrapeConfigs mocks base method.
func (m *MockInterface) ScrapeConfigs() ([]string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ScrapeConfigs")
ret0, _ := ret[0].([]string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ScrapeConfigs indicates an expected call of ScrapeConfigs.
func (mr *MockInterfaceMockRecorder) ScrapeConfigs() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScrapeConfigs", reflect.TypeOf((*MockInterface)(nil).ScrapeConfigs))
}
// SetAutoscalingAPIServerResources mocks base method.
func (m *MockInterface) SetAutoscalingAPIServerResources(arg0 v1.ResourceRequirements) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetAutoscalingAPIServerResources", arg0)
}
// SetAutoscalingAPIServerResources indicates an expected call of SetAutoscalingAPIServerResources.
func (mr *MockInterfaceMockRecorder) SetAutoscalingAPIServerResources(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetAutoscalingAPIServerResources", reflect.TypeOf((*MockInterface)(nil).SetAutoscalingAPIServerResources), arg0)
}
// SetAutoscalingReplicas mocks base method.
func (m *MockInterface) SetAutoscalingReplicas(arg0 *int32) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetAutoscalingReplicas", arg0)
}
// SetAutoscalingReplicas indicates an expected call of SetAutoscalingReplicas.
func (mr *MockInterfaceMockRecorder) SetAutoscalingReplicas(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetAutoscalingReplicas", reflect.TypeOf((*MockInterface)(nil).SetAutoscalingReplicas), arg0)
}
// SetETCDEncryptionConfig mocks base method.
func (m *MockInterface) SetETCDEncryptionConfig(arg0 kubeapiserver.ETCDEncryptionConfig) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetETCDEncryptionConfig", arg0)
}
// SetETCDEncryptionConfig indicates an expected call of SetETCDEncryptionConfig.
func (mr *MockInterfaceMockRecorder) SetETCDEncryptionConfig(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetETCDEncryptionConfig", reflect.TypeOf((*MockInterface)(nil).SetETCDEncryptionConfig), arg0)
}
// SetExternalHostname mocks base method.
func (m *MockInterface) SetExternalHostname(arg0 string) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetExternalHostname", arg0)
}
// SetExternalHostname indicates an expected call of SetExternalHostname.
func (mr *MockInterfaceMockRecorder) SetExternalHostname(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetExternalHostname", reflect.TypeOf((*MockInterface)(nil).SetExternalHostname), arg0)
}
// SetExternalServer mocks base method.
func (m *MockInterface) SetExternalServer(arg0 string) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetExternalServer", arg0)
}
// SetExternalServer indicates an expected call of SetExternalServer.
func (mr *MockInterfaceMockRecorder) SetExternalServer(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetExternalServer", reflect.TypeOf((*MockInterface)(nil).SetExternalServer), arg0)
}
// SetSNIConfig mocks base method.
func (m *MockInterface) SetSNIConfig(arg0 kubeapiserver.SNIConfig) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetSNIConfig", arg0)
}
// SetSNIConfig indicates an expected call of SetSNIConfig.
func (mr *MockInterfaceMockRecorder) SetSNIConfig(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSNIConfig", reflect.TypeOf((*MockInterface)(nil).SetSNIConfig), arg0)
}
// SetServerCertificateConfig mocks base method.
func (m *MockInterface) SetServerCertificateConfig(arg0 kubeapiserver.ServerCertificateConfig) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetServerCertificateConfig", arg0)
}
// SetServerCertificateConfig indicates an expected call of SetServerCertificateConfig.
func (mr *MockInterfaceMockRecorder) SetServerCertificateConfig(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetServerCertificateConfig", reflect.TypeOf((*MockInterface)(nil).SetServerCertificateConfig), arg0)
}
// SetServiceAccountConfig mocks base method.
func (m *MockInterface) SetServiceAccountConfig(arg0 kubeapiserver.ServiceAccountConfig) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetServiceAccountConfig", arg0)
}
// SetServiceAccountConfig indicates an expected call of SetServiceAccountConfig.
func (mr *MockInterfaceMockRecorder) SetServiceAccountConfig(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetServiceAccountConfig", reflect.TypeOf((*MockInterface)(nil).SetServiceAccountConfig), arg0)
}
// Wait mocks base method.
func (m *MockInterface) Wait(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Wait", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Wait indicates an expected call of Wait.
func (mr *MockInterfaceMockRecorder) Wait(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Wait", reflect.TypeOf((*MockInterface)(nil).Wait), arg0)
}
// WaitCleanup mocks base method.
func (m *MockInterface) WaitCleanup(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "WaitCleanup", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// WaitCleanup indicates an expected call of WaitCleanup.
func (mr *MockInterfaceMockRecorder) WaitCleanup(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitCleanup", reflect.TypeOf((*MockInterface)(nil).WaitCleanup), arg0)
}