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 60
/
node_execution_metadata.go
241 lines (189 loc) · 7.11 KB
/
node_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
// Code generated by mockery v1.0.1. DO NOT EDIT.
package mocks
import mock "github.com/stretchr/testify/mock"
import types "k8s.io/apimachinery/pkg/types"
import v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
import v1alpha1 "github.com/lyft/flytepropeller/pkg/apis/flyteworkflow/v1alpha1"
// NodeExecutionMetadata is an autogenerated mock type for the NodeExecutionMetadata type
type NodeExecutionMetadata struct {
mock.Mock
}
type NodeExecutionMetadata_GetAnnotations struct {
*mock.Call
}
func (_m NodeExecutionMetadata_GetAnnotations) Return(_a0 map[string]string) *NodeExecutionMetadata_GetAnnotations {
return &NodeExecutionMetadata_GetAnnotations{Call: _m.Call.Return(_a0)}
}
func (_m *NodeExecutionMetadata) OnGetAnnotations() *NodeExecutionMetadata_GetAnnotations {
c := _m.On("GetAnnotations")
return &NodeExecutionMetadata_GetAnnotations{Call: c}
}
func (_m *NodeExecutionMetadata) OnGetAnnotationsMatch(matchers ...interface{}) *NodeExecutionMetadata_GetAnnotations {
c := _m.On("GetAnnotations", matchers...)
return &NodeExecutionMetadata_GetAnnotations{Call: c}
}
// GetAnnotations provides a mock function with given fields:
func (_m *NodeExecutionMetadata) 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 NodeExecutionMetadata_GetExecutionID struct {
*mock.Call
}
func (_m NodeExecutionMetadata_GetExecutionID) Return(_a0 v1alpha1.WorkflowExecutionIdentifier) *NodeExecutionMetadata_GetExecutionID {
return &NodeExecutionMetadata_GetExecutionID{Call: _m.Call.Return(_a0)}
}
func (_m *NodeExecutionMetadata) OnGetExecutionID() *NodeExecutionMetadata_GetExecutionID {
c := _m.On("GetExecutionID")
return &NodeExecutionMetadata_GetExecutionID{Call: c}
}
func (_m *NodeExecutionMetadata) OnGetExecutionIDMatch(matchers ...interface{}) *NodeExecutionMetadata_GetExecutionID {
c := _m.On("GetExecutionID", matchers...)
return &NodeExecutionMetadata_GetExecutionID{Call: c}
}
// GetExecutionID provides a mock function with given fields:
func (_m *NodeExecutionMetadata) 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 NodeExecutionMetadata_GetK8sServiceAccount struct {
*mock.Call
}
func (_m NodeExecutionMetadata_GetK8sServiceAccount) Return(_a0 string) *NodeExecutionMetadata_GetK8sServiceAccount {
return &NodeExecutionMetadata_GetK8sServiceAccount{Call: _m.Call.Return(_a0)}
}
func (_m *NodeExecutionMetadata) OnGetK8sServiceAccount() *NodeExecutionMetadata_GetK8sServiceAccount {
c := _m.On("GetK8sServiceAccount")
return &NodeExecutionMetadata_GetK8sServiceAccount{Call: c}
}
func (_m *NodeExecutionMetadata) OnGetK8sServiceAccountMatch(matchers ...interface{}) *NodeExecutionMetadata_GetK8sServiceAccount {
c := _m.On("GetK8sServiceAccount", matchers...)
return &NodeExecutionMetadata_GetK8sServiceAccount{Call: c}
}
// GetK8sServiceAccount provides a mock function with given fields:
func (_m *NodeExecutionMetadata) 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 NodeExecutionMetadata_GetLabels struct {
*mock.Call
}
func (_m NodeExecutionMetadata_GetLabels) Return(_a0 map[string]string) *NodeExecutionMetadata_GetLabels {
return &NodeExecutionMetadata_GetLabels{Call: _m.Call.Return(_a0)}
}
func (_m *NodeExecutionMetadata) OnGetLabels() *NodeExecutionMetadata_GetLabels {
c := _m.On("GetLabels")
return &NodeExecutionMetadata_GetLabels{Call: c}
}
func (_m *NodeExecutionMetadata) OnGetLabelsMatch(matchers ...interface{}) *NodeExecutionMetadata_GetLabels {
c := _m.On("GetLabels", matchers...)
return &NodeExecutionMetadata_GetLabels{Call: c}
}
// GetLabels provides a mock function with given fields:
func (_m *NodeExecutionMetadata) 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 NodeExecutionMetadata_GetNamespace struct {
*mock.Call
}
func (_m NodeExecutionMetadata_GetNamespace) Return(_a0 string) *NodeExecutionMetadata_GetNamespace {
return &NodeExecutionMetadata_GetNamespace{Call: _m.Call.Return(_a0)}
}
func (_m *NodeExecutionMetadata) OnGetNamespace() *NodeExecutionMetadata_GetNamespace {
c := _m.On("GetNamespace")
return &NodeExecutionMetadata_GetNamespace{Call: c}
}
func (_m *NodeExecutionMetadata) OnGetNamespaceMatch(matchers ...interface{}) *NodeExecutionMetadata_GetNamespace {
c := _m.On("GetNamespace", matchers...)
return &NodeExecutionMetadata_GetNamespace{Call: c}
}
// GetNamespace provides a mock function with given fields:
func (_m *NodeExecutionMetadata) 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 NodeExecutionMetadata_GetOwnerID struct {
*mock.Call
}
func (_m NodeExecutionMetadata_GetOwnerID) Return(_a0 types.NamespacedName) *NodeExecutionMetadata_GetOwnerID {
return &NodeExecutionMetadata_GetOwnerID{Call: _m.Call.Return(_a0)}
}
func (_m *NodeExecutionMetadata) OnGetOwnerID() *NodeExecutionMetadata_GetOwnerID {
c := _m.On("GetOwnerID")
return &NodeExecutionMetadata_GetOwnerID{Call: c}
}
func (_m *NodeExecutionMetadata) OnGetOwnerIDMatch(matchers ...interface{}) *NodeExecutionMetadata_GetOwnerID {
c := _m.On("GetOwnerID", matchers...)
return &NodeExecutionMetadata_GetOwnerID{Call: c}
}
// GetOwnerID provides a mock function with given fields:
func (_m *NodeExecutionMetadata) 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 NodeExecutionMetadata_GetOwnerReference struct {
*mock.Call
}
func (_m NodeExecutionMetadata_GetOwnerReference) Return(_a0 v1.OwnerReference) *NodeExecutionMetadata_GetOwnerReference {
return &NodeExecutionMetadata_GetOwnerReference{Call: _m.Call.Return(_a0)}
}
func (_m *NodeExecutionMetadata) OnGetOwnerReference() *NodeExecutionMetadata_GetOwnerReference {
c := _m.On("GetOwnerReference")
return &NodeExecutionMetadata_GetOwnerReference{Call: c}
}
func (_m *NodeExecutionMetadata) OnGetOwnerReferenceMatch(matchers ...interface{}) *NodeExecutionMetadata_GetOwnerReference {
c := _m.On("GetOwnerReference", matchers...)
return &NodeExecutionMetadata_GetOwnerReference{Call: c}
}
// GetOwnerReference provides a mock function with given fields:
func (_m *NodeExecutionMetadata) 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
}