-
Notifications
You must be signed in to change notification settings - Fork 8
/
sets.go
240 lines (205 loc) · 9.72 KB
/
sets.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
// Code generated by MockGen. DO NOT EDIT.
// Source: ./sets.go
// Package mock_v1sets is a generated GoMock package.
package mock_v1sets
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
sets "github.com/solo-io/skv2/contrib/pkg/sets"
ezkube "github.com/solo-io/skv2/pkg/ezkube"
v1sets "github.com/solo-io/skv2/pkg/multicluster/internal/k8s/admissionregistration.k8s.io/v1/sets"
v1 "k8s.io/api/admissionregistration/v1"
sets0 "k8s.io/apimachinery/pkg/util/sets"
)
// MockValidatingWebhookConfigurationSet is a mock of ValidatingWebhookConfigurationSet interface
type MockValidatingWebhookConfigurationSet struct {
ctrl *gomock.Controller
recorder *MockValidatingWebhookConfigurationSetMockRecorder
}
// MockValidatingWebhookConfigurationSetMockRecorder is the mock recorder for MockValidatingWebhookConfigurationSet
type MockValidatingWebhookConfigurationSetMockRecorder struct {
mock *MockValidatingWebhookConfigurationSet
}
// NewMockValidatingWebhookConfigurationSet creates a new mock instance
func NewMockValidatingWebhookConfigurationSet(ctrl *gomock.Controller) *MockValidatingWebhookConfigurationSet {
mock := &MockValidatingWebhookConfigurationSet{ctrl: ctrl}
mock.recorder = &MockValidatingWebhookConfigurationSetMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockValidatingWebhookConfigurationSet) EXPECT() *MockValidatingWebhookConfigurationSetMockRecorder {
return m.recorder
}
// Keys mocks base method
func (m *MockValidatingWebhookConfigurationSet) Keys() sets0.String {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Keys")
ret0, _ := ret[0].(sets0.String)
return ret0
}
// Keys indicates an expected call of Keys
func (mr *MockValidatingWebhookConfigurationSetMockRecorder) Keys() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Keys", reflect.TypeOf((*MockValidatingWebhookConfigurationSet)(nil).Keys))
}
// List mocks base method
func (m *MockValidatingWebhookConfigurationSet) List(filterResource ...func(*v1.ValidatingWebhookConfiguration) bool) []*v1.ValidatingWebhookConfiguration {
m.ctrl.T.Helper()
varargs := []interface{}{}
for _, a := range filterResource {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "List", varargs...)
ret0, _ := ret[0].([]*v1.ValidatingWebhookConfiguration)
return ret0
}
// List indicates an expected call of List
func (mr *MockValidatingWebhookConfigurationSetMockRecorder) List(filterResource ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockValidatingWebhookConfigurationSet)(nil).List), filterResource...)
}
// Map mocks base method
func (m *MockValidatingWebhookConfigurationSet) Map() map[string]*v1.ValidatingWebhookConfiguration {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Map")
ret0, _ := ret[0].(map[string]*v1.ValidatingWebhookConfiguration)
return ret0
}
// Map indicates an expected call of Map
func (mr *MockValidatingWebhookConfigurationSetMockRecorder) Map() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Map", reflect.TypeOf((*MockValidatingWebhookConfigurationSet)(nil).Map))
}
// Insert mocks base method
func (m *MockValidatingWebhookConfigurationSet) Insert(validatingWebhookConfiguration ...*v1.ValidatingWebhookConfiguration) {
m.ctrl.T.Helper()
varargs := []interface{}{}
for _, a := range validatingWebhookConfiguration {
varargs = append(varargs, a)
}
m.ctrl.Call(m, "Insert", varargs...)
}
// Insert indicates an expected call of Insert
func (mr *MockValidatingWebhookConfigurationSetMockRecorder) Insert(validatingWebhookConfiguration ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insert", reflect.TypeOf((*MockValidatingWebhookConfigurationSet)(nil).Insert), validatingWebhookConfiguration...)
}
// Equal mocks base method
func (m *MockValidatingWebhookConfigurationSet) Equal(validatingWebhookConfigurationSet v1sets.ValidatingWebhookConfigurationSet) bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Equal", validatingWebhookConfigurationSet)
ret0, _ := ret[0].(bool)
return ret0
}
// Equal indicates an expected call of Equal
func (mr *MockValidatingWebhookConfigurationSetMockRecorder) Equal(validatingWebhookConfigurationSet interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Equal", reflect.TypeOf((*MockValidatingWebhookConfigurationSet)(nil).Equal), validatingWebhookConfigurationSet)
}
// Has mocks base method
func (m *MockValidatingWebhookConfigurationSet) Has(validatingWebhookConfiguration ezkube.ResourceId) bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Has", validatingWebhookConfiguration)
ret0, _ := ret[0].(bool)
return ret0
}
// Has indicates an expected call of Has
func (mr *MockValidatingWebhookConfigurationSetMockRecorder) Has(validatingWebhookConfiguration interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Has", reflect.TypeOf((*MockValidatingWebhookConfigurationSet)(nil).Has), validatingWebhookConfiguration)
}
// Delete mocks base method
func (m *MockValidatingWebhookConfigurationSet) Delete(validatingWebhookConfiguration ezkube.ResourceId) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Delete", validatingWebhookConfiguration)
}
// Delete indicates an expected call of Delete
func (mr *MockValidatingWebhookConfigurationSetMockRecorder) Delete(validatingWebhookConfiguration interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockValidatingWebhookConfigurationSet)(nil).Delete), validatingWebhookConfiguration)
}
// Union mocks base method
func (m *MockValidatingWebhookConfigurationSet) Union(set v1sets.ValidatingWebhookConfigurationSet) v1sets.ValidatingWebhookConfigurationSet {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Union", set)
ret0, _ := ret[0].(v1sets.ValidatingWebhookConfigurationSet)
return ret0
}
// Union indicates an expected call of Union
func (mr *MockValidatingWebhookConfigurationSetMockRecorder) Union(set interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Union", reflect.TypeOf((*MockValidatingWebhookConfigurationSet)(nil).Union), set)
}
// Difference mocks base method
func (m *MockValidatingWebhookConfigurationSet) Difference(set v1sets.ValidatingWebhookConfigurationSet) v1sets.ValidatingWebhookConfigurationSet {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Difference", set)
ret0, _ := ret[0].(v1sets.ValidatingWebhookConfigurationSet)
return ret0
}
// Difference indicates an expected call of Difference
func (mr *MockValidatingWebhookConfigurationSetMockRecorder) Difference(set interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Difference", reflect.TypeOf((*MockValidatingWebhookConfigurationSet)(nil).Difference), set)
}
// Intersection mocks base method
func (m *MockValidatingWebhookConfigurationSet) Intersection(set v1sets.ValidatingWebhookConfigurationSet) v1sets.ValidatingWebhookConfigurationSet {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Intersection", set)
ret0, _ := ret[0].(v1sets.ValidatingWebhookConfigurationSet)
return ret0
}
// Intersection indicates an expected call of Intersection
func (mr *MockValidatingWebhookConfigurationSetMockRecorder) Intersection(set interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Intersection", reflect.TypeOf((*MockValidatingWebhookConfigurationSet)(nil).Intersection), set)
}
// Find mocks base method
func (m *MockValidatingWebhookConfigurationSet) Find(id ezkube.ResourceId) (*v1.ValidatingWebhookConfiguration, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Find", id)
ret0, _ := ret[0].(*v1.ValidatingWebhookConfiguration)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Find indicates an expected call of Find
func (mr *MockValidatingWebhookConfigurationSetMockRecorder) Find(id interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Find", reflect.TypeOf((*MockValidatingWebhookConfigurationSet)(nil).Find), id)
}
// Length mocks base method
func (m *MockValidatingWebhookConfigurationSet) Length() int {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Length")
ret0, _ := ret[0].(int)
return ret0
}
// Length indicates an expected call of Length
func (mr *MockValidatingWebhookConfigurationSetMockRecorder) Length() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Length", reflect.TypeOf((*MockValidatingWebhookConfigurationSet)(nil).Length))
}
// Generic mocks base method
func (m *MockValidatingWebhookConfigurationSet) Generic() sets.ResourceSet {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Generic")
ret0, _ := ret[0].(sets.ResourceSet)
return ret0
}
// Generic indicates an expected call of Generic
func (mr *MockValidatingWebhookConfigurationSetMockRecorder) Generic() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Generic", reflect.TypeOf((*MockValidatingWebhookConfigurationSet)(nil).Generic))
}
// Delta mocks base method
func (m *MockValidatingWebhookConfigurationSet) Delta(newSet v1sets.ValidatingWebhookConfigurationSet) sets.ResourceDelta {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Delta", newSet)
ret0, _ := ret[0].(sets.ResourceDelta)
return ret0
}
// Delta indicates an expected call of Delta
func (mr *MockValidatingWebhookConfigurationSetMockRecorder) Delta(newSet interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delta", reflect.TypeOf((*MockValidatingWebhookConfigurationSet)(nil).Delta), newSet)
}