This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
/
Meta.go
439 lines (342 loc) · 10.9 KB
/
Meta.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
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
// Code generated by mockery v1.0.1. DO NOT EDIT.
package mocks
import (
core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core"
mock "github.com/stretchr/testify/mock"
types "k8s.io/apimachinery/pkg/types"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
v1alpha1 "github.com/flyteorg/flytepropeller/pkg/apis/flyteworkflow/v1alpha1"
)
// Meta is an autogenerated mock type for the Meta type
type Meta struct {
mock.Mock
}
type Meta_GetAnnotations struct {
*mock.Call
}
func (_m Meta_GetAnnotations) Return(_a0 map[string]string) *Meta_GetAnnotations {
return &Meta_GetAnnotations{Call: _m.Call.Return(_a0)}
}
func (_m *Meta) OnGetAnnotations() *Meta_GetAnnotations {
c_call := _m.On("GetAnnotations")
return &Meta_GetAnnotations{Call: c_call}
}
func (_m *Meta) OnGetAnnotationsMatch(matchers ...interface{}) *Meta_GetAnnotations {
c_call := _m.On("GetAnnotations", matchers...)
return &Meta_GetAnnotations{Call: c_call}
}
// GetAnnotations provides a mock function with given fields:
func (_m *Meta) GetAnnotations() map[string]string {
ret := _m.Called()
var r0 map[string]string
if rf, ok := ret.Get(0).(func() map[string]string); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(map[string]string)
}
}
return r0
}
type Meta_GetCreationTimestamp struct {
*mock.Call
}
func (_m Meta_GetCreationTimestamp) Return(_a0 v1.Time) *Meta_GetCreationTimestamp {
return &Meta_GetCreationTimestamp{Call: _m.Call.Return(_a0)}
}
func (_m *Meta) OnGetCreationTimestamp() *Meta_GetCreationTimestamp {
c_call := _m.On("GetCreationTimestamp")
return &Meta_GetCreationTimestamp{Call: c_call}
}
func (_m *Meta) OnGetCreationTimestampMatch(matchers ...interface{}) *Meta_GetCreationTimestamp {
c_call := _m.On("GetCreationTimestamp", matchers...)
return &Meta_GetCreationTimestamp{Call: c_call}
}
// GetCreationTimestamp provides a mock function with given fields:
func (_m *Meta) GetCreationTimestamp() v1.Time {
ret := _m.Called()
var r0 v1.Time
if rf, ok := ret.Get(0).(func() v1.Time); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(v1.Time)
}
return r0
}
type Meta_GetEventVersion struct {
*mock.Call
}
func (_m Meta_GetEventVersion) Return(_a0 v1alpha1.EventVersion) *Meta_GetEventVersion {
return &Meta_GetEventVersion{Call: _m.Call.Return(_a0)}
}
func (_m *Meta) OnGetEventVersion() *Meta_GetEventVersion {
c_call := _m.On("GetEventVersion")
return &Meta_GetEventVersion{Call: c_call}
}
func (_m *Meta) OnGetEventVersionMatch(matchers ...interface{}) *Meta_GetEventVersion {
c_call := _m.On("GetEventVersion", matchers...)
return &Meta_GetEventVersion{Call: c_call}
}
// GetEventVersion provides a mock function with given fields:
func (_m *Meta) GetEventVersion() v1alpha1.EventVersion {
ret := _m.Called()
var r0 v1alpha1.EventVersion
if rf, ok := ret.Get(0).(func() v1alpha1.EventVersion); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(v1alpha1.EventVersion)
}
return r0
}
type Meta_GetExecutionID struct {
*mock.Call
}
func (_m Meta_GetExecutionID) Return(_a0 v1alpha1.WorkflowExecutionIdentifier) *Meta_GetExecutionID {
return &Meta_GetExecutionID{Call: _m.Call.Return(_a0)}
}
func (_m *Meta) OnGetExecutionID() *Meta_GetExecutionID {
c_call := _m.On("GetExecutionID")
return &Meta_GetExecutionID{Call: c_call}
}
func (_m *Meta) OnGetExecutionIDMatch(matchers ...interface{}) *Meta_GetExecutionID {
c_call := _m.On("GetExecutionID", matchers...)
return &Meta_GetExecutionID{Call: c_call}
}
// GetExecutionID provides a mock function with given fields:
func (_m *Meta) GetExecutionID() v1alpha1.WorkflowExecutionIdentifier {
ret := _m.Called()
var r0 v1alpha1.WorkflowExecutionIdentifier
if rf, ok := ret.Get(0).(func() v1alpha1.WorkflowExecutionIdentifier); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(v1alpha1.WorkflowExecutionIdentifier)
}
return r0
}
type Meta_GetK8sWorkflowID struct {
*mock.Call
}
func (_m Meta_GetK8sWorkflowID) Return(_a0 types.NamespacedName) *Meta_GetK8sWorkflowID {
return &Meta_GetK8sWorkflowID{Call: _m.Call.Return(_a0)}
}
func (_m *Meta) OnGetK8sWorkflowID() *Meta_GetK8sWorkflowID {
c_call := _m.On("GetK8sWorkflowID")
return &Meta_GetK8sWorkflowID{Call: c_call}
}
func (_m *Meta) OnGetK8sWorkflowIDMatch(matchers ...interface{}) *Meta_GetK8sWorkflowID {
c_call := _m.On("GetK8sWorkflowID", matchers...)
return &Meta_GetK8sWorkflowID{Call: c_call}
}
// GetK8sWorkflowID provides a mock function with given fields:
func (_m *Meta) GetK8sWorkflowID() types.NamespacedName {
ret := _m.Called()
var r0 types.NamespacedName
if rf, ok := ret.Get(0).(func() types.NamespacedName); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(types.NamespacedName)
}
return r0
}
type Meta_GetLabels struct {
*mock.Call
}
func (_m Meta_GetLabels) Return(_a0 map[string]string) *Meta_GetLabels {
return &Meta_GetLabels{Call: _m.Call.Return(_a0)}
}
func (_m *Meta) OnGetLabels() *Meta_GetLabels {
c_call := _m.On("GetLabels")
return &Meta_GetLabels{Call: c_call}
}
func (_m *Meta) OnGetLabelsMatch(matchers ...interface{}) *Meta_GetLabels {
c_call := _m.On("GetLabels", matchers...)
return &Meta_GetLabels{Call: c_call}
}
// GetLabels provides a mock function with given fields:
func (_m *Meta) GetLabels() map[string]string {
ret := _m.Called()
var r0 map[string]string
if rf, ok := ret.Get(0).(func() map[string]string); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(map[string]string)
}
}
return r0
}
type Meta_GetName struct {
*mock.Call
}
func (_m Meta_GetName) Return(_a0 string) *Meta_GetName {
return &Meta_GetName{Call: _m.Call.Return(_a0)}
}
func (_m *Meta) OnGetName() *Meta_GetName {
c_call := _m.On("GetName")
return &Meta_GetName{Call: c_call}
}
func (_m *Meta) OnGetNameMatch(matchers ...interface{}) *Meta_GetName {
c_call := _m.On("GetName", matchers...)
return &Meta_GetName{Call: c_call}
}
// GetName provides a mock function with given fields:
func (_m *Meta) GetName() string {
ret := _m.Called()
var r0 string
if rf, ok := ret.Get(0).(func() string); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(string)
}
return r0
}
type Meta_GetNamespace struct {
*mock.Call
}
func (_m Meta_GetNamespace) Return(_a0 string) *Meta_GetNamespace {
return &Meta_GetNamespace{Call: _m.Call.Return(_a0)}
}
func (_m *Meta) OnGetNamespace() *Meta_GetNamespace {
c_call := _m.On("GetNamespace")
return &Meta_GetNamespace{Call: c_call}
}
func (_m *Meta) OnGetNamespaceMatch(matchers ...interface{}) *Meta_GetNamespace {
c_call := _m.On("GetNamespace", matchers...)
return &Meta_GetNamespace{Call: c_call}
}
// GetNamespace provides a mock function with given fields:
func (_m *Meta) GetNamespace() string {
ret := _m.Called()
var r0 string
if rf, ok := ret.Get(0).(func() string); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(string)
}
return r0
}
type Meta_GetOwnerReference struct {
*mock.Call
}
func (_m Meta_GetOwnerReference) Return(_a0 v1.OwnerReference) *Meta_GetOwnerReference {
return &Meta_GetOwnerReference{Call: _m.Call.Return(_a0)}
}
func (_m *Meta) OnGetOwnerReference() *Meta_GetOwnerReference {
c_call := _m.On("GetOwnerReference")
return &Meta_GetOwnerReference{Call: c_call}
}
func (_m *Meta) OnGetOwnerReferenceMatch(matchers ...interface{}) *Meta_GetOwnerReference {
c_call := _m.On("GetOwnerReference", matchers...)
return &Meta_GetOwnerReference{Call: c_call}
}
// GetOwnerReference provides a mock function with given fields:
func (_m *Meta) GetOwnerReference() v1.OwnerReference {
ret := _m.Called()
var r0 v1.OwnerReference
if rf, ok := ret.Get(0).(func() v1.OwnerReference); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(v1.OwnerReference)
}
return r0
}
type Meta_GetRawOutputDataConfig struct {
*mock.Call
}
func (_m Meta_GetRawOutputDataConfig) Return(_a0 v1alpha1.RawOutputDataConfig) *Meta_GetRawOutputDataConfig {
return &Meta_GetRawOutputDataConfig{Call: _m.Call.Return(_a0)}
}
func (_m *Meta) OnGetRawOutputDataConfig() *Meta_GetRawOutputDataConfig {
c_call := _m.On("GetRawOutputDataConfig")
return &Meta_GetRawOutputDataConfig{Call: c_call}
}
func (_m *Meta) OnGetRawOutputDataConfigMatch(matchers ...interface{}) *Meta_GetRawOutputDataConfig {
c_call := _m.On("GetRawOutputDataConfig", matchers...)
return &Meta_GetRawOutputDataConfig{Call: c_call}
}
// GetRawOutputDataConfig provides a mock function with given fields:
func (_m *Meta) GetRawOutputDataConfig() v1alpha1.RawOutputDataConfig {
ret := _m.Called()
var r0 v1alpha1.RawOutputDataConfig
if rf, ok := ret.Get(0).(func() v1alpha1.RawOutputDataConfig); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(v1alpha1.RawOutputDataConfig)
}
return r0
}
type Meta_GetSecurityContext struct {
*mock.Call
}
func (_m Meta_GetSecurityContext) Return(_a0 core.SecurityContext) *Meta_GetSecurityContext {
return &Meta_GetSecurityContext{Call: _m.Call.Return(_a0)}
}
func (_m *Meta) OnGetSecurityContext() *Meta_GetSecurityContext {
c_call := _m.On("GetSecurityContext")
return &Meta_GetSecurityContext{Call: c_call}
}
func (_m *Meta) OnGetSecurityContextMatch(matchers ...interface{}) *Meta_GetSecurityContext {
c_call := _m.On("GetSecurityContext", matchers...)
return &Meta_GetSecurityContext{Call: c_call}
}
// GetSecurityContext provides a mock function with given fields:
func (_m *Meta) GetSecurityContext() core.SecurityContext {
ret := _m.Called()
var r0 core.SecurityContext
if rf, ok := ret.Get(0).(func() core.SecurityContext); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(core.SecurityContext)
}
return r0
}
type Meta_GetServiceAccountName struct {
*mock.Call
}
func (_m Meta_GetServiceAccountName) Return(_a0 string) *Meta_GetServiceAccountName {
return &Meta_GetServiceAccountName{Call: _m.Call.Return(_a0)}
}
func (_m *Meta) OnGetServiceAccountName() *Meta_GetServiceAccountName {
c_call := _m.On("GetServiceAccountName")
return &Meta_GetServiceAccountName{Call: c_call}
}
func (_m *Meta) OnGetServiceAccountNameMatch(matchers ...interface{}) *Meta_GetServiceAccountName {
c_call := _m.On("GetServiceAccountName", matchers...)
return &Meta_GetServiceAccountName{Call: c_call}
}
// GetServiceAccountName provides a mock function with given fields:
func (_m *Meta) GetServiceAccountName() string {
ret := _m.Called()
var r0 string
if rf, ok := ret.Get(0).(func() string); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(string)
}
return r0
}
type Meta_IsInterruptible struct {
*mock.Call
}
func (_m Meta_IsInterruptible) Return(_a0 bool) *Meta_IsInterruptible {
return &Meta_IsInterruptible{Call: _m.Call.Return(_a0)}
}
func (_m *Meta) OnIsInterruptible() *Meta_IsInterruptible {
c_call := _m.On("IsInterruptible")
return &Meta_IsInterruptible{Call: c_call}
}
func (_m *Meta) OnIsInterruptibleMatch(matchers ...interface{}) *Meta_IsInterruptible {
c_call := _m.On("IsInterruptible", matchers...)
return &Meta_IsInterruptible{Call: c_call}
}
// IsInterruptible provides a mock function with given fields:
func (_m *Meta) IsInterruptible() bool {
ret := _m.Called()
var r0 bool
if rf, ok := ret.Get(0).(func() bool); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(bool)
}
return r0
}