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 53
/
task_execution_metadata.go
313 lines (245 loc) · 8.96 KB
/
task_execution_metadata.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
// Code generated by mockery v1.0.1. DO NOT EDIT.
package mocks
import (
core "github.com/lyft/flyteplugins/go/tasks/pluginmachinery/core"
mock "github.com/stretchr/testify/mock"
types "k8s.io/apimachinery/pkg/types"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// TaskExecutionMetadata is an autogenerated mock type for the TaskExecutionMetadata type
type TaskExecutionMetadata struct {
mock.Mock
}
type TaskExecutionMetadata_GetAnnotations struct {
*mock.Call
}
func (_m TaskExecutionMetadata_GetAnnotations) Return(_a0 map[string]string) *TaskExecutionMetadata_GetAnnotations {
return &TaskExecutionMetadata_GetAnnotations{Call: _m.Call.Return(_a0)}
}
func (_m *TaskExecutionMetadata) OnGetAnnotations() *TaskExecutionMetadata_GetAnnotations {
c := _m.On("GetAnnotations")
return &TaskExecutionMetadata_GetAnnotations{Call: c}
}
func (_m *TaskExecutionMetadata) OnGetAnnotationsMatch(matchers ...interface{}) *TaskExecutionMetadata_GetAnnotations {
c := _m.On("GetAnnotations", matchers...)
return &TaskExecutionMetadata_GetAnnotations{Call: c}
}
// GetAnnotations provides a mock function with given fields:
func (_m *TaskExecutionMetadata) 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 TaskExecutionMetadata_GetK8sServiceAccount struct {
*mock.Call
}
func (_m TaskExecutionMetadata_GetK8sServiceAccount) Return(_a0 string) *TaskExecutionMetadata_GetK8sServiceAccount {
return &TaskExecutionMetadata_GetK8sServiceAccount{Call: _m.Call.Return(_a0)}
}
func (_m *TaskExecutionMetadata) OnGetK8sServiceAccount() *TaskExecutionMetadata_GetK8sServiceAccount {
c := _m.On("GetK8sServiceAccount")
return &TaskExecutionMetadata_GetK8sServiceAccount{Call: c}
}
func (_m *TaskExecutionMetadata) OnGetK8sServiceAccountMatch(matchers ...interface{}) *TaskExecutionMetadata_GetK8sServiceAccount {
c := _m.On("GetK8sServiceAccount", matchers...)
return &TaskExecutionMetadata_GetK8sServiceAccount{Call: c}
}
// GetK8sServiceAccount provides a mock function with given fields:
func (_m *TaskExecutionMetadata) GetK8sServiceAccount() 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 TaskExecutionMetadata_GetLabels struct {
*mock.Call
}
func (_m TaskExecutionMetadata_GetLabels) Return(_a0 map[string]string) *TaskExecutionMetadata_GetLabels {
return &TaskExecutionMetadata_GetLabels{Call: _m.Call.Return(_a0)}
}
func (_m *TaskExecutionMetadata) OnGetLabels() *TaskExecutionMetadata_GetLabels {
c := _m.On("GetLabels")
return &TaskExecutionMetadata_GetLabels{Call: c}
}
func (_m *TaskExecutionMetadata) OnGetLabelsMatch(matchers ...interface{}) *TaskExecutionMetadata_GetLabels {
c := _m.On("GetLabels", matchers...)
return &TaskExecutionMetadata_GetLabels{Call: c}
}
// GetLabels provides a mock function with given fields:
func (_m *TaskExecutionMetadata) 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 TaskExecutionMetadata_GetNamespace struct {
*mock.Call
}
func (_m TaskExecutionMetadata_GetNamespace) Return(_a0 string) *TaskExecutionMetadata_GetNamespace {
return &TaskExecutionMetadata_GetNamespace{Call: _m.Call.Return(_a0)}
}
func (_m *TaskExecutionMetadata) OnGetNamespace() *TaskExecutionMetadata_GetNamespace {
c := _m.On("GetNamespace")
return &TaskExecutionMetadata_GetNamespace{Call: c}
}
func (_m *TaskExecutionMetadata) OnGetNamespaceMatch(matchers ...interface{}) *TaskExecutionMetadata_GetNamespace {
c := _m.On("GetNamespace", matchers...)
return &TaskExecutionMetadata_GetNamespace{Call: c}
}
// GetNamespace provides a mock function with given fields:
func (_m *TaskExecutionMetadata) 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 TaskExecutionMetadata_GetOverrides struct {
*mock.Call
}
func (_m TaskExecutionMetadata_GetOverrides) Return(_a0 core.TaskOverrides) *TaskExecutionMetadata_GetOverrides {
return &TaskExecutionMetadata_GetOverrides{Call: _m.Call.Return(_a0)}
}
func (_m *TaskExecutionMetadata) OnGetOverrides() *TaskExecutionMetadata_GetOverrides {
c := _m.On("GetOverrides")
return &TaskExecutionMetadata_GetOverrides{Call: c}
}
func (_m *TaskExecutionMetadata) OnGetOverridesMatch(matchers ...interface{}) *TaskExecutionMetadata_GetOverrides {
c := _m.On("GetOverrides", matchers...)
return &TaskExecutionMetadata_GetOverrides{Call: c}
}
// GetOverrides provides a mock function with given fields:
func (_m *TaskExecutionMetadata) GetOverrides() core.TaskOverrides {
ret := _m.Called()
var r0 core.TaskOverrides
if rf, ok := ret.Get(0).(func() core.TaskOverrides); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(core.TaskOverrides)
}
}
return r0
}
type TaskExecutionMetadata_GetOwnerID struct {
*mock.Call
}
func (_m TaskExecutionMetadata_GetOwnerID) Return(_a0 types.NamespacedName) *TaskExecutionMetadata_GetOwnerID {
return &TaskExecutionMetadata_GetOwnerID{Call: _m.Call.Return(_a0)}
}
func (_m *TaskExecutionMetadata) OnGetOwnerID() *TaskExecutionMetadata_GetOwnerID {
c := _m.On("GetOwnerID")
return &TaskExecutionMetadata_GetOwnerID{Call: c}
}
func (_m *TaskExecutionMetadata) OnGetOwnerIDMatch(matchers ...interface{}) *TaskExecutionMetadata_GetOwnerID {
c := _m.On("GetOwnerID", matchers...)
return &TaskExecutionMetadata_GetOwnerID{Call: c}
}
// GetOwnerID provides a mock function with given fields:
func (_m *TaskExecutionMetadata) GetOwnerID() 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 TaskExecutionMetadata_GetOwnerReference struct {
*mock.Call
}
func (_m TaskExecutionMetadata_GetOwnerReference) Return(_a0 v1.OwnerReference) *TaskExecutionMetadata_GetOwnerReference {
return &TaskExecutionMetadata_GetOwnerReference{Call: _m.Call.Return(_a0)}
}
func (_m *TaskExecutionMetadata) OnGetOwnerReference() *TaskExecutionMetadata_GetOwnerReference {
c := _m.On("GetOwnerReference")
return &TaskExecutionMetadata_GetOwnerReference{Call: c}
}
func (_m *TaskExecutionMetadata) OnGetOwnerReferenceMatch(matchers ...interface{}) *TaskExecutionMetadata_GetOwnerReference {
c := _m.On("GetOwnerReference", matchers...)
return &TaskExecutionMetadata_GetOwnerReference{Call: c}
}
// GetOwnerReference provides a mock function with given fields:
func (_m *TaskExecutionMetadata) 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 TaskExecutionMetadata_GetTaskExecutionID struct {
*mock.Call
}
func (_m TaskExecutionMetadata_GetTaskExecutionID) Return(_a0 core.TaskExecutionID) *TaskExecutionMetadata_GetTaskExecutionID {
return &TaskExecutionMetadata_GetTaskExecutionID{Call: _m.Call.Return(_a0)}
}
func (_m *TaskExecutionMetadata) OnGetTaskExecutionID() *TaskExecutionMetadata_GetTaskExecutionID {
c := _m.On("GetTaskExecutionID")
return &TaskExecutionMetadata_GetTaskExecutionID{Call: c}
}
func (_m *TaskExecutionMetadata) OnGetTaskExecutionIDMatch(matchers ...interface{}) *TaskExecutionMetadata_GetTaskExecutionID {
c := _m.On("GetTaskExecutionID", matchers...)
return &TaskExecutionMetadata_GetTaskExecutionID{Call: c}
}
// GetTaskExecutionID provides a mock function with given fields:
func (_m *TaskExecutionMetadata) GetTaskExecutionID() core.TaskExecutionID {
ret := _m.Called()
var r0 core.TaskExecutionID
if rf, ok := ret.Get(0).(func() core.TaskExecutionID); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(core.TaskExecutionID)
}
}
return r0
}
type TaskExecutionMetadata_IsInterruptible struct {
*mock.Call
}
func (_m TaskExecutionMetadata_IsInterruptible) Return(_a0 bool) *TaskExecutionMetadata_IsInterruptible {
return &TaskExecutionMetadata_IsInterruptible{Call: _m.Call.Return(_a0)}
}
func (_m *TaskExecutionMetadata) OnIsInterruptible() *TaskExecutionMetadata_IsInterruptible {
c := _m.On("IsInterruptible")
return &TaskExecutionMetadata_IsInterruptible{Call: c}
}
func (_m *TaskExecutionMetadata) OnIsInterruptibleMatch(matchers ...interface{}) *TaskExecutionMetadata_IsInterruptible {
c := _m.On("IsInterruptible", matchers...)
return &TaskExecutionMetadata_IsInterruptible{Call: c}
}
// IsInterruptible provides a mock function with given fields:
func (_m *TaskExecutionMetadata) 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
}