This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
/
agent.pb.go
428 lines (376 loc) · 16.1 KB
/
agent.pb.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: flyteidl/admin/agent.proto
package admin
import (
fmt "fmt"
core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// The state of the execution is used to control its visibility in the UI/CLI.
type State int32
const (
State_RETRYABLE_FAILURE State = 0
State_PERMANENT_FAILURE State = 1
State_PENDING State = 2
State_RUNNING State = 3
State_SUCCEEDED State = 4
)
var State_name = map[int32]string{
0: "RETRYABLE_FAILURE",
1: "PERMANENT_FAILURE",
2: "PENDING",
3: "RUNNING",
4: "SUCCEEDED",
}
var State_value = map[string]int32{
"RETRYABLE_FAILURE": 0,
"PERMANENT_FAILURE": 1,
"PENDING": 2,
"RUNNING": 3,
"SUCCEEDED": 4,
}
func (x State) String() string {
return proto.EnumName(State_name, int32(x))
}
func (State) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_c434e52bb0028071, []int{0}
}
// Represents a request structure to create task.
type CreateTaskRequest struct {
// The inputs required to start the execution. All required inputs must be
// included in this map. If not required and not provided, defaults apply.
// +optional
Inputs *core.LiteralMap `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"`
// Template of the task that encapsulates all the metadata of the task.
Template *core.TaskTemplate `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"`
// Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
OutputPrefix string `protobuf:"bytes,3,opt,name=output_prefix,json=outputPrefix,proto3" json:"output_prefix,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateTaskRequest) Reset() { *m = CreateTaskRequest{} }
func (m *CreateTaskRequest) String() string { return proto.CompactTextString(m) }
func (*CreateTaskRequest) ProtoMessage() {}
func (*CreateTaskRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_c434e52bb0028071, []int{0}
}
func (m *CreateTaskRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateTaskRequest.Unmarshal(m, b)
}
func (m *CreateTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateTaskRequest.Marshal(b, m, deterministic)
}
func (m *CreateTaskRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateTaskRequest.Merge(m, src)
}
func (m *CreateTaskRequest) XXX_Size() int {
return xxx_messageInfo_CreateTaskRequest.Size(m)
}
func (m *CreateTaskRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateTaskRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateTaskRequest proto.InternalMessageInfo
func (m *CreateTaskRequest) GetInputs() *core.LiteralMap {
if m != nil {
return m.Inputs
}
return nil
}
func (m *CreateTaskRequest) GetTemplate() *core.TaskTemplate {
if m != nil {
return m.Template
}
return nil
}
func (m *CreateTaskRequest) GetOutputPrefix() string {
if m != nil {
return m.OutputPrefix
}
return ""
}
// Represents a create response structure.
type CreateTaskResponse struct {
// Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).
ResourceMeta []byte `protobuf:"bytes,1,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateTaskResponse) Reset() { *m = CreateTaskResponse{} }
func (m *CreateTaskResponse) String() string { return proto.CompactTextString(m) }
func (*CreateTaskResponse) ProtoMessage() {}
func (*CreateTaskResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_c434e52bb0028071, []int{1}
}
func (m *CreateTaskResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateTaskResponse.Unmarshal(m, b)
}
func (m *CreateTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateTaskResponse.Marshal(b, m, deterministic)
}
func (m *CreateTaskResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateTaskResponse.Merge(m, src)
}
func (m *CreateTaskResponse) XXX_Size() int {
return xxx_messageInfo_CreateTaskResponse.Size(m)
}
func (m *CreateTaskResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CreateTaskResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CreateTaskResponse proto.InternalMessageInfo
func (m *CreateTaskResponse) GetResourceMeta() []byte {
if m != nil {
return m.ResourceMeta
}
return nil
}
// A message used to fetch a job resource from flyte agent server.
type GetTaskRequest struct {
// A predefined yet extensible Task type identifier.
TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"`
// Metadata about the resource to be pass to the agent.
ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetTaskRequest) Reset() { *m = GetTaskRequest{} }
func (m *GetTaskRequest) String() string { return proto.CompactTextString(m) }
func (*GetTaskRequest) ProtoMessage() {}
func (*GetTaskRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_c434e52bb0028071, []int{2}
}
func (m *GetTaskRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetTaskRequest.Unmarshal(m, b)
}
func (m *GetTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetTaskRequest.Marshal(b, m, deterministic)
}
func (m *GetTaskRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetTaskRequest.Merge(m, src)
}
func (m *GetTaskRequest) XXX_Size() int {
return xxx_messageInfo_GetTaskRequest.Size(m)
}
func (m *GetTaskRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetTaskRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetTaskRequest proto.InternalMessageInfo
func (m *GetTaskRequest) GetTaskType() string {
if m != nil {
return m.TaskType
}
return ""
}
func (m *GetTaskRequest) GetResourceMeta() []byte {
if m != nil {
return m.ResourceMeta
}
return nil
}
// Response to get an individual task resource.
type GetTaskResponse struct {
Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetTaskResponse) Reset() { *m = GetTaskResponse{} }
func (m *GetTaskResponse) String() string { return proto.CompactTextString(m) }
func (*GetTaskResponse) ProtoMessage() {}
func (*GetTaskResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_c434e52bb0028071, []int{3}
}
func (m *GetTaskResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetTaskResponse.Unmarshal(m, b)
}
func (m *GetTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetTaskResponse.Marshal(b, m, deterministic)
}
func (m *GetTaskResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetTaskResponse.Merge(m, src)
}
func (m *GetTaskResponse) XXX_Size() int {
return xxx_messageInfo_GetTaskResponse.Size(m)
}
func (m *GetTaskResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetTaskResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetTaskResponse proto.InternalMessageInfo
func (m *GetTaskResponse) GetResource() *Resource {
if m != nil {
return m.Resource
}
return nil
}
type Resource struct {
// The state of the execution is used to control its visibility in the UI/CLI.
State State `protobuf:"varint,1,opt,name=state,proto3,enum=flyteidl.admin.State" json:"state,omitempty"`
// The outputs of the execution. It's typically used by sql task. Agent service will create a
// Structured dataset pointing to the query result table.
// +optional
Outputs *core.LiteralMap `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Resource) Reset() { *m = Resource{} }
func (m *Resource) String() string { return proto.CompactTextString(m) }
func (*Resource) ProtoMessage() {}
func (*Resource) Descriptor() ([]byte, []int) {
return fileDescriptor_c434e52bb0028071, []int{4}
}
func (m *Resource) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Resource.Unmarshal(m, b)
}
func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Resource.Marshal(b, m, deterministic)
}
func (m *Resource) XXX_Merge(src proto.Message) {
xxx_messageInfo_Resource.Merge(m, src)
}
func (m *Resource) XXX_Size() int {
return xxx_messageInfo_Resource.Size(m)
}
func (m *Resource) XXX_DiscardUnknown() {
xxx_messageInfo_Resource.DiscardUnknown(m)
}
var xxx_messageInfo_Resource proto.InternalMessageInfo
func (m *Resource) GetState() State {
if m != nil {
return m.State
}
return State_RETRYABLE_FAILURE
}
func (m *Resource) GetOutputs() *core.LiteralMap {
if m != nil {
return m.Outputs
}
return nil
}
// A message used to delete a task.
type DeleteTaskRequest struct {
// A predefined yet extensible Task type identifier.
TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"`
// Metadata about the resource to be pass to the agent.
ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteTaskRequest) Reset() { *m = DeleteTaskRequest{} }
func (m *DeleteTaskRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteTaskRequest) ProtoMessage() {}
func (*DeleteTaskRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_c434e52bb0028071, []int{5}
}
func (m *DeleteTaskRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteTaskRequest.Unmarshal(m, b)
}
func (m *DeleteTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteTaskRequest.Marshal(b, m, deterministic)
}
func (m *DeleteTaskRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteTaskRequest.Merge(m, src)
}
func (m *DeleteTaskRequest) XXX_Size() int {
return xxx_messageInfo_DeleteTaskRequest.Size(m)
}
func (m *DeleteTaskRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteTaskRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteTaskRequest proto.InternalMessageInfo
func (m *DeleteTaskRequest) GetTaskType() string {
if m != nil {
return m.TaskType
}
return ""
}
func (m *DeleteTaskRequest) GetResourceMeta() []byte {
if m != nil {
return m.ResourceMeta
}
return nil
}
// Response to delete a task.
type DeleteTaskResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteTaskResponse) Reset() { *m = DeleteTaskResponse{} }
func (m *DeleteTaskResponse) String() string { return proto.CompactTextString(m) }
func (*DeleteTaskResponse) ProtoMessage() {}
func (*DeleteTaskResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_c434e52bb0028071, []int{6}
}
func (m *DeleteTaskResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteTaskResponse.Unmarshal(m, b)
}
func (m *DeleteTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteTaskResponse.Marshal(b, m, deterministic)
}
func (m *DeleteTaskResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteTaskResponse.Merge(m, src)
}
func (m *DeleteTaskResponse) XXX_Size() int {
return xxx_messageInfo_DeleteTaskResponse.Size(m)
}
func (m *DeleteTaskResponse) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteTaskResponse.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteTaskResponse proto.InternalMessageInfo
func init() {
proto.RegisterEnum("flyteidl.admin.State", State_name, State_value)
proto.RegisterType((*CreateTaskRequest)(nil), "flyteidl.admin.CreateTaskRequest")
proto.RegisterType((*CreateTaskResponse)(nil), "flyteidl.admin.CreateTaskResponse")
proto.RegisterType((*GetTaskRequest)(nil), "flyteidl.admin.GetTaskRequest")
proto.RegisterType((*GetTaskResponse)(nil), "flyteidl.admin.GetTaskResponse")
proto.RegisterType((*Resource)(nil), "flyteidl.admin.Resource")
proto.RegisterType((*DeleteTaskRequest)(nil), "flyteidl.admin.DeleteTaskRequest")
proto.RegisterType((*DeleteTaskResponse)(nil), "flyteidl.admin.DeleteTaskResponse")
}
func init() { proto.RegisterFile("flyteidl/admin/agent.proto", fileDescriptor_c434e52bb0028071) }
var fileDescriptor_c434e52bb0028071 = []byte{
// 464 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x53, 0x4d, 0x6f, 0xda, 0x40,
0x10, 0x2d, 0xa4, 0x49, 0x60, 0x42, 0x28, 0xac, 0x1a, 0x89, 0x90, 0x56, 0x8a, 0xdc, 0x4b, 0xd4,
0xaa, 0xb6, 0x9a, 0xb4, 0x8a, 0x7a, 0x24, 0xe0, 0xa2, 0x48, 0x60, 0xa1, 0x8d, 0x39, 0xb4, 0x87,
0xa2, 0x85, 0x0c, 0xae, 0x15, 0x63, 0x6f, 0xbd, 0x63, 0xa9, 0xfc, 0x9f, 0xfe, 0xd0, 0x6a, 0xfd,
0x25, 0x1c, 0x45, 0xbd, 0xe4, 0xe8, 0xf7, 0x31, 0xfb, 0xf6, 0xcd, 0x1a, 0xfa, 0xeb, 0x60, 0x4b,
0xe8, 0xdf, 0x07, 0x96, 0xb8, 0xdf, 0xf8, 0xa1, 0x25, 0x3c, 0x0c, 0xc9, 0x94, 0x71, 0x44, 0x11,
0x6b, 0x17, 0x9c, 0x99, 0x72, 0xfd, 0x37, 0xa5, 0x76, 0x15, 0xc5, 0x68, 0x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