This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
/
cluster_assignment.pb.go
283 lines (247 loc) · 10.3 KB
/
cluster_assignment.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: flyteidl/admin/cluster_assignment.proto
package admin
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 how a label with a corresponding key and value is selected or excluded.
type Selector_Operator int32
const (
Selector_EQUALS Selector_Operator = 0
Selector_NOT_EQUALS Selector_Operator = 1
Selector_IN Selector_Operator = 2
Selector_NOT_IN Selector_Operator = 3
Selector_EXISTS Selector_Operator = 4
)
var Selector_Operator_name = map[int32]string{
0: "EQUALS",
1: "NOT_EQUALS",
2: "IN",
3: "NOT_IN",
4: "EXISTS",
}
var Selector_Operator_value = map[string]int32{
"EQUALS": 0,
"NOT_EQUALS": 1,
"IN": 2,
"NOT_IN": 3,
"EXISTS": 4,
}
func (x Selector_Operator) String() string {
return proto.EnumName(Selector_Operator_name, int32(x))
}
func (Selector_Operator) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_c5699de6e686ea15, []int{3, 0}
}
// Encapsulates specifications for routing an execution onto a specific cluster.
type ClusterAssignment struct {
Affinity *Affinity `protobuf:"bytes,1,opt,name=affinity,proto3" json:"affinity,omitempty"`
Toleration *Toleration `protobuf:"bytes,2,opt,name=toleration,proto3" json:"toleration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClusterAssignment) Reset() { *m = ClusterAssignment{} }
func (m *ClusterAssignment) String() string { return proto.CompactTextString(m) }
func (*ClusterAssignment) ProtoMessage() {}
func (*ClusterAssignment) Descriptor() ([]byte, []int) {
return fileDescriptor_c5699de6e686ea15, []int{0}
}
func (m *ClusterAssignment) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ClusterAssignment.Unmarshal(m, b)
}
func (m *ClusterAssignment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ClusterAssignment.Marshal(b, m, deterministic)
}
func (m *ClusterAssignment) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClusterAssignment.Merge(m, src)
}
func (m *ClusterAssignment) XXX_Size() int {
return xxx_messageInfo_ClusterAssignment.Size(m)
}
func (m *ClusterAssignment) XXX_DiscardUnknown() {
xxx_messageInfo_ClusterAssignment.DiscardUnknown(m)
}
var xxx_messageInfo_ClusterAssignment proto.InternalMessageInfo
func (m *ClusterAssignment) GetAffinity() *Affinity {
if m != nil {
return m.Affinity
}
return nil
}
func (m *ClusterAssignment) GetToleration() *Toleration {
if m != nil {
return m.Toleration
}
return nil
}
// Defines a set of constraints used to select eligible objects based on labels they possess.
type Affinity struct {
// Multiples selectors are 'and'-ed together to produce the list of matching, eligible objects.
Selectors []*Selector `protobuf:"bytes,1,rep,name=selectors,proto3" json:"selectors,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Affinity) Reset() { *m = Affinity{} }
func (m *Affinity) String() string { return proto.CompactTextString(m) }
func (*Affinity) ProtoMessage() {}
func (*Affinity) Descriptor() ([]byte, []int) {
return fileDescriptor_c5699de6e686ea15, []int{1}
}
func (m *Affinity) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Affinity.Unmarshal(m, b)
}
func (m *Affinity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Affinity.Marshal(b, m, deterministic)
}
func (m *Affinity) XXX_Merge(src proto.Message) {
xxx_messageInfo_Affinity.Merge(m, src)
}
func (m *Affinity) XXX_Size() int {
return xxx_messageInfo_Affinity.Size(m)
}
func (m *Affinity) XXX_DiscardUnknown() {
xxx_messageInfo_Affinity.DiscardUnknown(m)
}
var xxx_messageInfo_Affinity proto.InternalMessageInfo
func (m *Affinity) GetSelectors() []*Selector {
if m != nil {
return m.Selectors
}
return nil
}
// Defines a set of specific label selectors that the execution can tolerate on a cluster.
type Toleration struct {
// A toleration selector is similar to that of an affinity but the only valid operators are EQUALS AND EXISTS.
Selectors []*Selector `protobuf:"bytes,1,rep,name=selectors,proto3" json:"selectors,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Toleration) Reset() { *m = Toleration{} }
func (m *Toleration) String() string { return proto.CompactTextString(m) }
func (*Toleration) ProtoMessage() {}
func (*Toleration) Descriptor() ([]byte, []int) {
return fileDescriptor_c5699de6e686ea15, []int{2}
}
func (m *Toleration) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Toleration.Unmarshal(m, b)
}
func (m *Toleration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Toleration.Marshal(b, m, deterministic)
}
func (m *Toleration) XXX_Merge(src proto.Message) {
xxx_messageInfo_Toleration.Merge(m, src)
}
func (m *Toleration) XXX_Size() int {
return xxx_messageInfo_Toleration.Size(m)
}
func (m *Toleration) XXX_DiscardUnknown() {
xxx_messageInfo_Toleration.DiscardUnknown(m)
}
var xxx_messageInfo_Toleration proto.InternalMessageInfo
func (m *Toleration) GetSelectors() []*Selector {
if m != nil {
return m.Selectors
}
return nil
}
// A Selector is a specification for identifying a set of objects with corresponding labels.
type Selector struct {
// The label key.
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// One or more values used to match labels.
// For equality (or inequality) requirements, values must contain a single element.
// For set-based requirements, values may contain one or more elements.
Value []string `protobuf:"bytes,2,rep,name=value,proto3" json:"value,omitempty"`
Operator Selector_Operator `protobuf:"varint,3,opt,name=operator,proto3,enum=flyteidl.admin.Selector_Operator" json:"operator,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Selector) Reset() { *m = Selector{} }
func (m *Selector) String() string { return proto.CompactTextString(m) }
func (*Selector) ProtoMessage() {}
func (*Selector) Descriptor() ([]byte, []int) {
return fileDescriptor_c5699de6e686ea15, []int{3}
}
func (m *Selector) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Selector.Unmarshal(m, b)
}
func (m *Selector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Selector.Marshal(b, m, deterministic)
}
func (m *Selector) XXX_Merge(src proto.Message) {
xxx_messageInfo_Selector.Merge(m, src)
}
func (m *Selector) XXX_Size() int {
return xxx_messageInfo_Selector.Size(m)
}
func (m *Selector) XXX_DiscardUnknown() {
xxx_messageInfo_Selector.DiscardUnknown(m)
}
var xxx_messageInfo_Selector proto.InternalMessageInfo
func (m *Selector) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *Selector) GetValue() []string {
if m != nil {
return m.Value
}
return nil
}
func (m *Selector) GetOperator() Selector_Operator {
if m != nil {
return m.Operator
}
return Selector_EQUALS
}
func init() {
proto.RegisterEnum("flyteidl.admin.Selector_Operator", Selector_Operator_name, Selector_Operator_value)
proto.RegisterType((*ClusterAssignment)(nil), "flyteidl.admin.ClusterAssignment")
proto.RegisterType((*Affinity)(nil), "flyteidl.admin.Affinity")
proto.RegisterType((*Toleration)(nil), "flyteidl.admin.Toleration")
proto.RegisterType((*Selector)(nil), "flyteidl.admin.Selector")
}
func init() {
proto.RegisterFile("flyteidl/admin/cluster_assignment.proto", fileDescriptor_c5699de6e686ea15)
}
var fileDescriptor_c5699de6e686ea15 = []byte{
// 331 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0xcb, 0x4a, 0x3b, 0x31,
0x18, 0xc5, 0xff, 0x99, 0xf9, 0x5b, 0xa6, 0x9f, 0x50, 0xc6, 0xe0, 0x62, 0x70, 0x35, 0xce, 0xc6,
0x6e, 0x9c, 0x40, 0xbd, 0x81, 0xe0, 0xa2, 0xf5, 0x02, 0x05, 0x69, 0x31, 0x53, 0x41, 0xdc, 0x94,
0x69, 0x9b, 0x8e, 0xc1, 0x34, 0x29, 0x99, 0x54, 0xe8, 0x03, 0xf8, 0x50, 0xbe, 0x9d, 0xcc, 0xb5,
0x56, 0x74, 0xe3, 0x2e, 0xdf, 0x97, 0xdf, 0x39, 0x27, 0x84, 0x03, 0x47, 0x73, 0xb1, 0x36, 0x8c,
0xcf, 0x04, 0x89, 0x67, 0x0b, 0x2e, 0xc9, 0x54, 0xac, 0x52, 0xc3, 0xf4, 0x38, 0x4e, 0x53, 0x9e,
0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