This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
/
errors.pb.go
177 lines (152 loc) · 6.6 KB
/
errors.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: flyteidl/core/errors.proto
package core
import (
fmt "fmt"
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
// Defines a generic error type that dictates the behavior of the retry strategy.
type ContainerError_Kind int32
const (
ContainerError_NON_RECOVERABLE ContainerError_Kind = 0
ContainerError_RECOVERABLE ContainerError_Kind = 1
)
var ContainerError_Kind_name = map[int32]string{
0: "NON_RECOVERABLE",
1: "RECOVERABLE",
}
var ContainerError_Kind_value = map[string]int32{
"NON_RECOVERABLE": 0,
"RECOVERABLE": 1,
}
func (x ContainerError_Kind) String() string {
return proto.EnumName(ContainerError_Kind_name, int32(x))
}
func (ContainerError_Kind) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_c2a49b99f342b879, []int{0, 0}
}
// Error message to propagate detailed errors from container executions to the execution
// engine.
type ContainerError struct {
// A simplified code for errors, so that we can provide a glossary of all possible errors.
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
// A detailed error message.
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
Kind ContainerError_Kind `protobuf:"varint,3,opt,name=kind,proto3,enum=flyteidl.core.ContainerError_Kind" json:"kind,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ContainerError) Reset() { *m = ContainerError{} }
func (m *ContainerError) String() string { return proto.CompactTextString(m) }
func (*ContainerError) ProtoMessage() {}
func (*ContainerError) Descriptor() ([]byte, []int) {
return fileDescriptor_c2a49b99f342b879, []int{0}
}
func (m *ContainerError) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ContainerError.Unmarshal(m, b)
}
func (m *ContainerError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ContainerError.Marshal(b, m, deterministic)
}
func (m *ContainerError) XXX_Merge(src proto.Message) {
xxx_messageInfo_ContainerError.Merge(m, src)
}
func (m *ContainerError) XXX_Size() int {
return xxx_messageInfo_ContainerError.Size(m)
}
func (m *ContainerError) XXX_DiscardUnknown() {
xxx_messageInfo_ContainerError.DiscardUnknown(m)
}
var xxx_messageInfo_ContainerError proto.InternalMessageInfo
func (m *ContainerError) GetCode() string {
if m != nil {
return m.Code
}
return ""
}
func (m *ContainerError) GetMessage() string {
if m != nil {
return m.Message
}
return ""
}
func (m *ContainerError) GetKind() ContainerError_Kind {
if m != nil {
return m.Kind
}
return ContainerError_NON_RECOVERABLE
}
// Defines the errors.pb file format the container can produce to communicate
// failure reasons to the execution engine.
type ErrorDocument struct {
// The error raised during execution.
Error *ContainerError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ErrorDocument) Reset() { *m = ErrorDocument{} }
func (m *ErrorDocument) String() string { return proto.CompactTextString(m) }
func (*ErrorDocument) ProtoMessage() {}
func (*ErrorDocument) Descriptor() ([]byte, []int) {
return fileDescriptor_c2a49b99f342b879, []int{1}
}
func (m *ErrorDocument) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ErrorDocument.Unmarshal(m, b)
}
func (m *ErrorDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ErrorDocument.Marshal(b, m, deterministic)
}
func (m *ErrorDocument) XXX_Merge(src proto.Message) {
xxx_messageInfo_ErrorDocument.Merge(m, src)
}
func (m *ErrorDocument) XXX_Size() int {
return xxx_messageInfo_ErrorDocument.Size(m)
}
func (m *ErrorDocument) XXX_DiscardUnknown() {
xxx_messageInfo_ErrorDocument.DiscardUnknown(m)
}
var xxx_messageInfo_ErrorDocument proto.InternalMessageInfo
func (m *ErrorDocument) GetError() *ContainerError {
if m != nil {
return m.Error
}
return nil
}
func init() {
proto.RegisterEnum("flyteidl.core.ContainerError_Kind", ContainerError_Kind_name, ContainerError_Kind_value)
proto.RegisterType((*ContainerError)(nil), "flyteidl.core.ContainerError")
proto.RegisterType((*ErrorDocument)(nil), "flyteidl.core.ErrorDocument")
}
func init() { proto.RegisterFile("flyteidl/core/errors.proto", fileDescriptor_c2a49b99f342b879) }
var fileDescriptor_c2a49b99f342b879 = []byte{
// 245 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4a, 0xcb, 0xa9, 0x2c,
0x49, 0xcd, 0x4c, 0xc9, 0xd1, 0x4f, 0xce, 0x2f, 0x4a, 0xd5, 0x4f, 0x2d, 0x2a, 0xca, 0x2f, 0x2a,
0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x85, 0xc9, 0xe9, 0x81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