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
/
WorkflowMeta.go
341 lines (266 loc) · 8.88 KB
/
WorkflowMeta.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
// Code generated by mockery v1.0.1. DO NOT EDIT.
package mocks
import (
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 WorkflowMeta struct {
mock.Mock
}
type WorkflowMeta_GetAnnotations struct {
*mock.Call
}
func (_m WorkflowMeta_GetAnnotations) Return(_a0 map[string]string) *WorkflowMeta_GetAnnotations {
return &WorkflowMeta_GetAnnotations{Call: _m.Call.Return(_a0)}
}
func (_m *WorkflowMeta) OnGetAnnotations() *WorkflowMeta_GetAnnotations {
c := _m.On("GetAnnotations")
return &WorkflowMeta_GetAnnotations{Call: c}
}
func (_m *WorkflowMeta) OnGetAnnotationsMatch(matchers ...interface{}) *WorkflowMeta_GetAnnotations {
c := _m.On("GetAnnotations", matchers...)
return &WorkflowMeta_GetAnnotations{Call: c}
}
// GetAnnotations provides a mock function with given fields:
func (_m *WorkflowMeta) 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 WorkflowMeta_GetCreationTimestamp struct {
*mock.Call
}
func (_m WorkflowMeta_GetCreationTimestamp) Return(_a0 v1.Time) *WorkflowMeta_GetCreationTimestamp {
return &WorkflowMeta_GetCreationTimestamp{Call: _m.Call.Return(_a0)}
}
func (_m *WorkflowMeta) OnGetCreationTimestamp() *WorkflowMeta_GetCreationTimestamp {
c := _m.On("GetCreationTimestamp")
return &WorkflowMeta_GetCreationTimestamp{Call: c}
}
func (_m *WorkflowMeta) OnGetCreationTimestampMatch(matchers ...interface{}) *WorkflowMeta_GetCreationTimestamp {
c := _m.On("GetCreationTimestamp", matchers...)
return &WorkflowMeta_GetCreationTimestamp{Call: c}
}
// GetCreationTimestamp provides a mock function with given fields:
func (_m *WorkflowMeta) 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 WorkflowMeta_GetExecutionID struct {
*mock.Call
}
func (_m WorkflowMeta_GetExecutionID) Return(_a0 v1alpha1.WorkflowExecutionIdentifier) *WorkflowMeta_GetExecutionID {
return &WorkflowMeta_GetExecutionID{Call: _m.Call.Return(_a0)}
}
func (_m *WorkflowMeta) OnGetExecutionID() *WorkflowMeta_GetExecutionID {
c := _m.On("GetExecutionID")
return &WorkflowMeta_GetExecutionID{Call: c}
}
func (_m *WorkflowMeta) OnGetExecutionIDMatch(matchers ...interface{}) *WorkflowMeta_GetExecutionID {
c := _m.On("GetExecutionID", matchers...)
return &WorkflowMeta_GetExecutionID{Call: c}
}
// GetExecutionID provides a mock function with given fields:
func (_m *WorkflowMeta) 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 WorkflowMeta_GetK8sWorkflowID struct {
*mock.Call
}
func (_m WorkflowMeta_GetK8sWorkflowID) Return(_a0 types.NamespacedName) *WorkflowMeta_GetK8sWorkflowID {
return &WorkflowMeta_GetK8sWorkflowID{Call: _m.Call.Return(_a0)}
}
func (_m *WorkflowMeta) OnGetK8sWorkflowID() *WorkflowMeta_GetK8sWorkflowID {
c := _m.On("GetK8sWorkflowID")
return &WorkflowMeta_GetK8sWorkflowID{Call: c}
}
func (_m *WorkflowMeta) OnGetK8sWorkflowIDMatch(matchers ...interface{}) *WorkflowMeta_GetK8sWorkflowID {
c := _m.On("GetK8sWorkflowID", matchers...)
return &WorkflowMeta_GetK8sWorkflowID{Call: c}
}
// GetK8sWorkflowID provides a mock function with given fields:
func (_m *WorkflowMeta) 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 WorkflowMeta_GetLabels struct {
*mock.Call
}
func (_m WorkflowMeta_GetLabels) Return(_a0 map[string]string) *WorkflowMeta_GetLabels {
return &WorkflowMeta_GetLabels{Call: _m.Call.Return(_a0)}
}
func (_m *WorkflowMeta) OnGetLabels() *WorkflowMeta_GetLabels {
c := _m.On("GetLabels")
return &WorkflowMeta_GetLabels{Call: c}
}
func (_m *WorkflowMeta) OnGetLabelsMatch(matchers ...interface{}) *WorkflowMeta_GetLabels {
c := _m.On("GetLabels", matchers...)
return &WorkflowMeta_GetLabels{Call: c}
}
// GetLabels provides a mock function with given fields:
func (_m *WorkflowMeta) 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 WorkflowMeta_GetName struct {
*mock.Call
}
func (_m WorkflowMeta_GetName) Return(_a0 string) *WorkflowMeta_GetName {
return &WorkflowMeta_GetName{Call: _m.Call.Return(_a0)}
}
func (_m *WorkflowMeta) OnGetName() *WorkflowMeta_GetName {
c := _m.On("GetName")
return &WorkflowMeta_GetName{Call: c}
}
func (_m *WorkflowMeta) OnGetNameMatch(matchers ...interface{}) *WorkflowMeta_GetName {
c := _m.On("GetName", matchers...)
return &WorkflowMeta_GetName{Call: c}
}
// GetName provides a mock function with given fields:
func (_m *WorkflowMeta) 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 WorkflowMeta_GetNamespace struct {
*mock.Call
}
func (_m WorkflowMeta_GetNamespace) Return(_a0 string) *WorkflowMeta_GetNamespace {
return &WorkflowMeta_GetNamespace{Call: _m.Call.Return(_a0)}
}
func (_m *WorkflowMeta) OnGetNamespace() *WorkflowMeta_GetNamespace {
c := _m.On("GetNamespace")
return &WorkflowMeta_GetNamespace{Call: c}
}
func (_m *WorkflowMeta) OnGetNamespaceMatch(matchers ...interface{}) *WorkflowMeta_GetNamespace {
c := _m.On("GetNamespace", matchers...)
return &WorkflowMeta_GetNamespace{Call: c}
}
// GetNamespace provides a mock function with given fields:
func (_m *WorkflowMeta) 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 WorkflowMeta_GetOwnerReference struct {
*mock.Call
}
func (_m WorkflowMeta_GetOwnerReference) Return(_a0 v1.OwnerReference) *WorkflowMeta_GetOwnerReference {
return &WorkflowMeta_GetOwnerReference{Call: _m.Call.Return(_a0)}
}
func (_m *WorkflowMeta) OnGetOwnerReference() *WorkflowMeta_GetOwnerReference {
c := _m.On("GetOwnerReference")
return &WorkflowMeta_GetOwnerReference{Call: c}
}
func (_m *WorkflowMeta) OnGetOwnerReferenceMatch(matchers ...interface{}) *WorkflowMeta_GetOwnerReference {
c := _m.On("GetOwnerReference", matchers...)
return &WorkflowMeta_GetOwnerReference{Call: c}
}
// GetOwnerReference provides a mock function with given fields:
func (_m *WorkflowMeta) 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 WorkflowMeta_GetServiceAccountName struct {
*mock.Call
}
func (_m WorkflowMeta_GetServiceAccountName) Return(_a0 string) *WorkflowMeta_GetServiceAccountName {
return &WorkflowMeta_GetServiceAccountName{Call: _m.Call.Return(_a0)}
}
func (_m *WorkflowMeta) OnGetServiceAccountName() *WorkflowMeta_GetServiceAccountName {
c := _m.On("GetServiceAccountName")
return &WorkflowMeta_GetServiceAccountName{Call: c}
}
func (_m *WorkflowMeta) OnGetServiceAccountNameMatch(matchers ...interface{}) *WorkflowMeta_GetServiceAccountName {
c := _m.On("GetServiceAccountName", matchers...)
return &WorkflowMeta_GetServiceAccountName{Call: c}
}
// GetServiceAccountName provides a mock function with given fields:
func (_m *WorkflowMeta) 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 WorkflowMeta_IsInterruptible struct {
*mock.Call
}
func (_m WorkflowMeta_IsInterruptible) Return(_a0 bool) *WorkflowMeta_IsInterruptible {
return &WorkflowMeta_IsInterruptible{Call: _m.Call.Return(_a0)}
}
func (_m *WorkflowMeta) OnIsInterruptible() *WorkflowMeta_IsInterruptible {
c := _m.On("IsInterruptible")
return &WorkflowMeta_IsInterruptible{Call: c}
}
func (_m *WorkflowMeta) OnIsInterruptibleMatch(matchers ...interface{}) *WorkflowMeta_IsInterruptible {
c := _m.On("IsInterruptible", matchers...)
return &WorkflowMeta_IsInterruptible{Call: c}
}
// IsInterruptible provides a mock function with given fields:
func (_m *WorkflowMeta) 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
}