-
Notifications
You must be signed in to change notification settings - Fork 0
/
fault.pb.go
384 lines (330 loc) · 15.1 KB
/
fault.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/config/filter/fault/v3alpha/fault.proto
package envoy_config_filter_fault_v3alpha
import (
fmt "fmt"
v3alpha "github.com/altipla-consulting/envoy-api/envoy/type/v3alpha"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
types "github.com/gogo/protobuf/types"
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
type FaultDelay_FaultDelayType int32
const (
// Unused and deprecated.
FaultDelay_FIXED FaultDelay_FaultDelayType = 0
)
var FaultDelay_FaultDelayType_name = map[int32]string{
0: "FIXED",
}
var FaultDelay_FaultDelayType_value = map[string]int32{
"FIXED": 0,
}
func (x FaultDelay_FaultDelayType) String() string {
return proto.EnumName(FaultDelay_FaultDelayType_name, int32(x))
}
func (FaultDelay_FaultDelayType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_26a4880b6121b9f2, []int{0, 0}
}
// Delay specification is used to inject latency into the
// HTTP/gRPC/Mongo/Redis operation or delay proxying of TCP connections.
// [#next-free-field: 6]
type FaultDelay struct {
// Types that are valid to be assigned to FaultDelaySecifier:
// *FaultDelay_FixedDelay
// *FaultDelay_HeaderDelay_
FaultDelaySecifier isFaultDelay_FaultDelaySecifier `protobuf_oneof:"fault_delay_secifier"`
// The percentage of operations/connections/requests on which the delay will be injected.
Percentage *v3alpha.FractionalPercent `protobuf:"bytes,4,opt,name=percentage,proto3" json:"percentage,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FaultDelay) Reset() { *m = FaultDelay{} }
func (m *FaultDelay) String() string { return proto.CompactTextString(m) }
func (*FaultDelay) ProtoMessage() {}
func (*FaultDelay) Descriptor() ([]byte, []int) {
return fileDescriptor_26a4880b6121b9f2, []int{0}
}
func (m *FaultDelay) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FaultDelay.Unmarshal(m, b)
}
func (m *FaultDelay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FaultDelay.Marshal(b, m, deterministic)
}
func (m *FaultDelay) XXX_Merge(src proto.Message) {
xxx_messageInfo_FaultDelay.Merge(m, src)
}
func (m *FaultDelay) XXX_Size() int {
return xxx_messageInfo_FaultDelay.Size(m)
}
func (m *FaultDelay) XXX_DiscardUnknown() {
xxx_messageInfo_FaultDelay.DiscardUnknown(m)
}
var xxx_messageInfo_FaultDelay proto.InternalMessageInfo
type isFaultDelay_FaultDelaySecifier interface {
isFaultDelay_FaultDelaySecifier()
}
type FaultDelay_FixedDelay struct {
FixedDelay *types.Duration `protobuf:"bytes,3,opt,name=fixed_delay,json=fixedDelay,proto3,oneof"`
}
type FaultDelay_HeaderDelay_ struct {
HeaderDelay *FaultDelay_HeaderDelay `protobuf:"bytes,5,opt,name=header_delay,json=headerDelay,proto3,oneof"`
}
func (*FaultDelay_FixedDelay) isFaultDelay_FaultDelaySecifier() {}
func (*FaultDelay_HeaderDelay_) isFaultDelay_FaultDelaySecifier() {}
func (m *FaultDelay) GetFaultDelaySecifier() isFaultDelay_FaultDelaySecifier {
if m != nil {
return m.FaultDelaySecifier
}
return nil
}
func (m *FaultDelay) GetFixedDelay() *types.Duration {
if x, ok := m.GetFaultDelaySecifier().(*FaultDelay_FixedDelay); ok {
return x.FixedDelay
}
return nil
}
func (m *FaultDelay) GetHeaderDelay() *FaultDelay_HeaderDelay {
if x, ok := m.GetFaultDelaySecifier().(*FaultDelay_HeaderDelay_); ok {
return x.HeaderDelay
}
return nil
}
func (m *FaultDelay) GetPercentage() *v3alpha.FractionalPercent {
if m != nil {
return m.Percentage
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*FaultDelay) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*FaultDelay_FixedDelay)(nil),
(*FaultDelay_HeaderDelay_)(nil),
}
}
// Fault delays are controlled via an HTTP header (if applicable). See the
// :ref:`http fault filter <config_http_filters_fault_injection_http_header>` documentation for
// more information.
type FaultDelay_HeaderDelay struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FaultDelay_HeaderDelay) Reset() { *m = FaultDelay_HeaderDelay{} }
func (m *FaultDelay_HeaderDelay) String() string { return proto.CompactTextString(m) }
func (*FaultDelay_HeaderDelay) ProtoMessage() {}
func (*FaultDelay_HeaderDelay) Descriptor() ([]byte, []int) {
return fileDescriptor_26a4880b6121b9f2, []int{0, 0}
}
func (m *FaultDelay_HeaderDelay) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FaultDelay_HeaderDelay.Unmarshal(m, b)
}
func (m *FaultDelay_HeaderDelay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FaultDelay_HeaderDelay.Marshal(b, m, deterministic)
}
func (m *FaultDelay_HeaderDelay) XXX_Merge(src proto.Message) {
xxx_messageInfo_FaultDelay_HeaderDelay.Merge(m, src)
}
func (m *FaultDelay_HeaderDelay) XXX_Size() int {
return xxx_messageInfo_FaultDelay_HeaderDelay.Size(m)
}
func (m *FaultDelay_HeaderDelay) XXX_DiscardUnknown() {
xxx_messageInfo_FaultDelay_HeaderDelay.DiscardUnknown(m)
}
var xxx_messageInfo_FaultDelay_HeaderDelay proto.InternalMessageInfo
// Describes a rate limit to be applied.
type FaultRateLimit struct {
// Types that are valid to be assigned to LimitType:
// *FaultRateLimit_FixedLimit_
// *FaultRateLimit_HeaderLimit_
LimitType isFaultRateLimit_LimitType `protobuf_oneof:"limit_type"`
// The percentage of operations/connections/requests on which the rate limit will be injected.
Percentage *v3alpha.FractionalPercent `protobuf:"bytes,2,opt,name=percentage,proto3" json:"percentage,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FaultRateLimit) Reset() { *m = FaultRateLimit{} }
func (m *FaultRateLimit) String() string { return proto.CompactTextString(m) }
func (*FaultRateLimit) ProtoMessage() {}
func (*FaultRateLimit) Descriptor() ([]byte, []int) {
return fileDescriptor_26a4880b6121b9f2, []int{1}
}
func (m *FaultRateLimit) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FaultRateLimit.Unmarshal(m, b)
}
func (m *FaultRateLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FaultRateLimit.Marshal(b, m, deterministic)
}
func (m *FaultRateLimit) XXX_Merge(src proto.Message) {
xxx_messageInfo_FaultRateLimit.Merge(m, src)
}
func (m *FaultRateLimit) XXX_Size() int {
return xxx_messageInfo_FaultRateLimit.Size(m)
}
func (m *FaultRateLimit) XXX_DiscardUnknown() {
xxx_messageInfo_FaultRateLimit.DiscardUnknown(m)
}
var xxx_messageInfo_FaultRateLimit proto.InternalMessageInfo
type isFaultRateLimit_LimitType interface {
isFaultRateLimit_LimitType()
}
type FaultRateLimit_FixedLimit_ struct {
FixedLimit *FaultRateLimit_FixedLimit `protobuf:"bytes,1,opt,name=fixed_limit,json=fixedLimit,proto3,oneof"`
}
type FaultRateLimit_HeaderLimit_ struct {
HeaderLimit *FaultRateLimit_HeaderLimit `protobuf:"bytes,3,opt,name=header_limit,json=headerLimit,proto3,oneof"`
}
func (*FaultRateLimit_FixedLimit_) isFaultRateLimit_LimitType() {}
func (*FaultRateLimit_HeaderLimit_) isFaultRateLimit_LimitType() {}
func (m *FaultRateLimit) GetLimitType() isFaultRateLimit_LimitType {
if m != nil {
return m.LimitType
}
return nil
}
func (m *FaultRateLimit) GetFixedLimit() *FaultRateLimit_FixedLimit {
if x, ok := m.GetLimitType().(*FaultRateLimit_FixedLimit_); ok {
return x.FixedLimit
}
return nil
}
func (m *FaultRateLimit) GetHeaderLimit() *FaultRateLimit_HeaderLimit {
if x, ok := m.GetLimitType().(*FaultRateLimit_HeaderLimit_); ok {
return x.HeaderLimit
}
return nil
}
func (m *FaultRateLimit) GetPercentage() *v3alpha.FractionalPercent {
if m != nil {
return m.Percentage
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*FaultRateLimit) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*FaultRateLimit_FixedLimit_)(nil),
(*FaultRateLimit_HeaderLimit_)(nil),
}
}
// Describes a fixed/constant rate limit.
type FaultRateLimit_FixedLimit struct {
// The limit supplied in KiB/s.
LimitKbps uint64 `protobuf:"varint,1,opt,name=limit_kbps,json=limitKbps,proto3" json:"limit_kbps,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FaultRateLimit_FixedLimit) Reset() { *m = FaultRateLimit_FixedLimit{} }
func (m *FaultRateLimit_FixedLimit) String() string { return proto.CompactTextString(m) }
func (*FaultRateLimit_FixedLimit) ProtoMessage() {}
func (*FaultRateLimit_FixedLimit) Descriptor() ([]byte, []int) {
return fileDescriptor_26a4880b6121b9f2, []int{1, 0}
}
func (m *FaultRateLimit_FixedLimit) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FaultRateLimit_FixedLimit.Unmarshal(m, b)
}
func (m *FaultRateLimit_FixedLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FaultRateLimit_FixedLimit.Marshal(b, m, deterministic)
}
func (m *FaultRateLimit_FixedLimit) XXX_Merge(src proto.Message) {
xxx_messageInfo_FaultRateLimit_FixedLimit.Merge(m, src)
}
func (m *FaultRateLimit_FixedLimit) XXX_Size() int {
return xxx_messageInfo_FaultRateLimit_FixedLimit.Size(m)
}
func (m *FaultRateLimit_FixedLimit) XXX_DiscardUnknown() {
xxx_messageInfo_FaultRateLimit_FixedLimit.DiscardUnknown(m)
}
var xxx_messageInfo_FaultRateLimit_FixedLimit proto.InternalMessageInfo
func (m *FaultRateLimit_FixedLimit) GetLimitKbps() uint64 {
if m != nil {
return m.LimitKbps
}
return 0
}
// Rate limits are controlled via an HTTP header (if applicable). See the
// :ref:`http fault filter <config_http_filters_fault_injection_http_header>` documentation for
// more information.
type FaultRateLimit_HeaderLimit struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FaultRateLimit_HeaderLimit) Reset() { *m = FaultRateLimit_HeaderLimit{} }
func (m *FaultRateLimit_HeaderLimit) String() string { return proto.CompactTextString(m) }
func (*FaultRateLimit_HeaderLimit) ProtoMessage() {}
func (*FaultRateLimit_HeaderLimit) Descriptor() ([]byte, []int) {
return fileDescriptor_26a4880b6121b9f2, []int{1, 1}
}
func (m *FaultRateLimit_HeaderLimit) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FaultRateLimit_HeaderLimit.Unmarshal(m, b)
}
func (m *FaultRateLimit_HeaderLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FaultRateLimit_HeaderLimit.Marshal(b, m, deterministic)
}
func (m *FaultRateLimit_HeaderLimit) XXX_Merge(src proto.Message) {
xxx_messageInfo_FaultRateLimit_HeaderLimit.Merge(m, src)
}
func (m *FaultRateLimit_HeaderLimit) XXX_Size() int {
return xxx_messageInfo_FaultRateLimit_HeaderLimit.Size(m)
}
func (m *FaultRateLimit_HeaderLimit) XXX_DiscardUnknown() {
xxx_messageInfo_FaultRateLimit_HeaderLimit.DiscardUnknown(m)
}
var xxx_messageInfo_FaultRateLimit_HeaderLimit proto.InternalMessageInfo
func init() {
proto.RegisterEnum("envoy.config.filter.fault.v3alpha.FaultDelay_FaultDelayType", FaultDelay_FaultDelayType_name, FaultDelay_FaultDelayType_value)
proto.RegisterType((*FaultDelay)(nil), "envoy.config.filter.fault.v3alpha.FaultDelay")
proto.RegisterType((*FaultDelay_HeaderDelay)(nil), "envoy.config.filter.fault.v3alpha.FaultDelay.HeaderDelay")
proto.RegisterType((*FaultRateLimit)(nil), "envoy.config.filter.fault.v3alpha.FaultRateLimit")
proto.RegisterType((*FaultRateLimit_FixedLimit)(nil), "envoy.config.filter.fault.v3alpha.FaultRateLimit.FixedLimit")
proto.RegisterType((*FaultRateLimit_HeaderLimit)(nil), "envoy.config.filter.fault.v3alpha.FaultRateLimit.HeaderLimit")
}
func init() {
proto.RegisterFile("envoy/config/filter/fault/v3alpha/fault.proto", fileDescriptor_26a4880b6121b9f2)
}
var fileDescriptor_26a4880b6121b9f2 = []byte{
// 460 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0x41, 0x8b, 0xd3, 0x40,
0x14, 0xc7, 0x9b, 0x34, 0xd5, 0xee, 0xab, 0x4a, 0x0d, 0x82, 0xb5, 0x0b, 0xb2, 0x16, 0x94, 0x45,
0x70, 0x02, 0xbb, 0x5e, 0x04, 0x45, 0x18, 0xba, 0xa5, 0xae, 0x1e, 0x4a, 0xf0, 0xe0, 0xc9, 0x32,
0x69, 0x26, 0xed, 0x60, 0xec, 0x84, 0x74, 0x5a, 0x36, 0x5f, 0xc9, 0x0f, 0xe4, 0x27, 0xf1, 0x20,
0x7b, 0x92, 0x79, 0x6f, 0xd2, 0xac, 0xa7, 0xea, 0xde, 0xe6, 0x31, 0xef, 0xfd, 0xfe, 0xff, 0xf7,
0x9f, 0x81, 0x57, 0x72, 0xbd, 0xd3, 0x55, 0xb4, 0xd0, 0xeb, 0x4c, 0x2d, 0xa3, 0x4c, 0xe5, 0x46,
0x96, 0x51, 0x26, 0xb6, 0xb9, 0x89, 0x76, 0xe7, 0x22, 0x2f, 0x56, 0x82, 0x2a, 0x56, 0x94, 0xda,
0xe8, 0xf0, 0x19, 0xb6, 0x33, 0x6a, 0x67, 0xd4, 0xce, 0xa8, 0xc1, 0xb5, 0x0f, 0x4f, 0x88, 0x68,
0xaa, 0x42, 0xee, 0x11, 0x85, 0x2c, 0x17, 0x72, 0xed, 0x20, 0xc3, 0xa7, 0x4b, 0xad, 0x97, 0xb9,
0x8c, 0xb0, 0x4a, 0xb6, 0x59, 0x94, 0x6e, 0x4b, 0x61, 0x94,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