-
Notifications
You must be signed in to change notification settings - Fork 795
/
mixer.pb.go
executable file
·3721 lines (3593 loc) · 101 KB
/
mixer.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
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: mixer/v1/mixer.proto
// This package defines the Mixer API that the sidecar proxy uses to perform
// precondition checks, manage quotas, and report telemetry.
package v1
import (
context "context"
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
_ "github.com/gogo/protobuf/types"
github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
io "io"
rpc "istio.io/gogo-genproto/googleapis/google/rpc"
math "math"
math_bits "math/bits"
reflect "reflect"
strconv "strconv"
strings "strings"
time "time"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
var _ = time.Kitchen
// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// How an attribute's value was matched
type ReferencedAttributes_Condition int32
const (
CONDITION_UNSPECIFIED ReferencedAttributes_Condition = 0
ABSENCE ReferencedAttributes_Condition = 1
EXACT ReferencedAttributes_Condition = 2
REGEX ReferencedAttributes_Condition = 3
)
var ReferencedAttributes_Condition_name = map[int32]string{
0: "CONDITION_UNSPECIFIED",
1: "ABSENCE",
2: "EXACT",
3: "REGEX",
}
var ReferencedAttributes_Condition_value = map[string]int32{
"CONDITION_UNSPECIFIED": 0,
"ABSENCE": 1,
"EXACT": 2,
"REGEX": 3,
}
func (ReferencedAttributes_Condition) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_f6f59c90bff4c1e2, []int{2, 0}
}
// Operation type.
type HeaderOperation_Operation int32
const (
REPLACE HeaderOperation_Operation = 0
REMOVE HeaderOperation_Operation = 1
APPEND HeaderOperation_Operation = 2
)
var HeaderOperation_Operation_name = map[int32]string{
0: "REPLACE",
1: "REMOVE",
2: "APPEND",
}
var HeaderOperation_Operation_value = map[string]int32{
"REPLACE": 0,
"REMOVE": 1,
"APPEND": 2,
}
func (HeaderOperation_Operation) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_f6f59c90bff4c1e2, []int{3, 0}
}
// Used to signal how the sets of compressed attributes should be reconstituted server-side.
type ReportRequest_RepeatedAttributesSemantics int32
const (
// Use delta encoding between sets of compressed attributes to reduce the overall on-wire
// request size. Each individual set of attributes is used to modify the previous set.
// NOTE: There is no way with this encoding to specify attribute value deletion. This
// option should be used with extreme caution.
DELTA_ENCODING ReportRequest_RepeatedAttributesSemantics = 0
// Treat each set of compressed attributes as complete - independent from other sets
// in this request. This will result in on-wire duplication of attributes and values, but
// will allow for proper accounting of absent values in overall encoding.
INDEPENDENT_ENCODING ReportRequest_RepeatedAttributesSemantics = 1
)
var ReportRequest_RepeatedAttributesSemantics_name = map[int32]string{
0: "DELTA_ENCODING",
1: "INDEPENDENT_ENCODING",
}
var ReportRequest_RepeatedAttributesSemantics_value = map[string]int32{
"DELTA_ENCODING": 0,
"INDEPENDENT_ENCODING": 1,
}
func (ReportRequest_RepeatedAttributesSemantics) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_f6f59c90bff4c1e2, []int{5, 0}
}
// Used to get a thumbs-up/thumbs-down before performing an action.
type CheckRequest struct {
// The attributes to use for this request.
//
// Mixer's configuration determines how these attributes are used to
// establish the result returned in the response.
Attributes CompressedAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes"`
// The number of words in the global dictionary, used with to populate the attributes.
// This value is used as a quick way to determine whether the client is using a dictionary that
// the server understands.
GlobalWordCount uint32 `protobuf:"varint,2,opt,name=global_word_count,json=globalWordCount,proto3" json:"global_word_count,omitempty"`
// Used for deduplicating `Check` calls in the case of failed RPCs and retries. This should be a UUID
// per call, where the same UUID is used for retries of the same call.
DeduplicationId string `protobuf:"bytes,3,opt,name=deduplication_id,json=deduplicationId,proto3" json:"deduplication_id,omitempty"`
// The individual quotas to allocate
Quotas map[string]CheckRequest_QuotaParams `protobuf:"bytes,4,rep,name=quotas,proto3" json:"quotas" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (m *CheckRequest) Reset() { *m = CheckRequest{} }
func (*CheckRequest) ProtoMessage() {}
func (*CheckRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_f6f59c90bff4c1e2, []int{0}
}
func (m *CheckRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *CheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_CheckRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *CheckRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CheckRequest.Merge(m, src)
}
func (m *CheckRequest) XXX_Size() int {
return m.Size()
}
func (m *CheckRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CheckRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CheckRequest proto.InternalMessageInfo
// parameters for a quota allocation
type CheckRequest_QuotaParams struct {
// Amount of quota to allocate
Amount int64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
// When true, supports returning less quota than what was requested.
BestEffort bool `protobuf:"varint,2,opt,name=best_effort,json=bestEffort,proto3" json:"best_effort,omitempty"`
}
func (m *CheckRequest_QuotaParams) Reset() { *m = CheckRequest_QuotaParams{} }
func (*CheckRequest_QuotaParams) ProtoMessage() {}
func (*CheckRequest_QuotaParams) Descriptor() ([]byte, []int) {
return fileDescriptor_f6f59c90bff4c1e2, []int{0, 0}
}
func (m *CheckRequest_QuotaParams) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *CheckRequest_QuotaParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_CheckRequest_QuotaParams.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *CheckRequest_QuotaParams) XXX_Merge(src proto.Message) {
xxx_messageInfo_CheckRequest_QuotaParams.Merge(m, src)
}
func (m *CheckRequest_QuotaParams) XXX_Size() int {
return m.Size()
}
func (m *CheckRequest_QuotaParams) XXX_DiscardUnknown() {
xxx_messageInfo_CheckRequest_QuotaParams.DiscardUnknown(m)
}
var xxx_messageInfo_CheckRequest_QuotaParams proto.InternalMessageInfo
// The response generated by the Check method.
type CheckResponse struct {
// The precondition check results.
Precondition CheckResponse_PreconditionResult `protobuf:"bytes,2,opt,name=precondition,proto3" json:"precondition"`
// The resulting quota, one entry per requested quota.
Quotas map[string]CheckResponse_QuotaResult `protobuf:"bytes,3,rep,name=quotas,proto3" json:"quotas" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (m *CheckResponse) Reset() { *m = CheckResponse{} }
func (*CheckResponse) ProtoMessage() {}
func (*CheckResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_f6f59c90bff4c1e2, []int{1}
}
func (m *CheckResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *CheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_CheckResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *CheckResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CheckResponse.Merge(m, src)
}
func (m *CheckResponse) XXX_Size() int {
return m.Size()
}
func (m *CheckResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CheckResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CheckResponse proto.InternalMessageInfo
// Expresses the result of a precondition check.
type CheckResponse_PreconditionResult struct {
// A status code of OK indicates all preconditions were satisfied. Any other code indicates not
// all preconditions were satisfied and details describe why.
Status rpc.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status"`
// The amount of time for which this result can be considered valid.
ValidDuration time.Duration `protobuf:"bytes,2,opt,name=valid_duration,json=validDuration,proto3,stdduration" json:"valid_duration"`
// The number of uses for which this result can be considered valid.
ValidUseCount int32 `protobuf:"varint,3,opt,name=valid_use_count,json=validUseCount,proto3" json:"valid_use_count,omitempty"`
// The total set of attributes that were used in producing the result
// along with matching conditions.
ReferencedAttributes *ReferencedAttributes `protobuf:"bytes,5,opt,name=referenced_attributes,json=referencedAttributes,proto3" json:"referenced_attributes,omitempty"`
// An optional routing directive, used to manipulate the traffic metadata
// whenever all preconditions are satisfied.
RouteDirective *RouteDirective `protobuf:"bytes,6,opt,name=route_directive,json=routeDirective,proto3" json:"route_directive,omitempty"`
}
func (m *CheckResponse_PreconditionResult) Reset() { *m = CheckResponse_PreconditionResult{} }
func (*CheckResponse_PreconditionResult) ProtoMessage() {}
func (*CheckResponse_PreconditionResult) Descriptor() ([]byte, []int) {
return fileDescriptor_f6f59c90bff4c1e2, []int{1, 0}
}
func (m *CheckResponse_PreconditionResult) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *CheckResponse_PreconditionResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_CheckResponse_PreconditionResult.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *CheckResponse_PreconditionResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_CheckResponse_PreconditionResult.Merge(m, src)
}
func (m *CheckResponse_PreconditionResult) XXX_Size() int {
return m.Size()
}
func (m *CheckResponse_PreconditionResult) XXX_DiscardUnknown() {
xxx_messageInfo_CheckResponse_PreconditionResult.DiscardUnknown(m)
}
var xxx_messageInfo_CheckResponse_PreconditionResult proto.InternalMessageInfo
// Expresses the result of a quota allocation.
type CheckResponse_QuotaResult struct {
// The amount of time for which this result can be considered valid.
ValidDuration time.Duration `protobuf:"bytes,1,opt,name=valid_duration,json=validDuration,proto3,stdduration" json:"valid_duration"`
// The amount of granted quota. When `QuotaParams.best_effort` is true, this will be >= 0.
// If `QuotaParams.best_effort` is false, this will be either 0 or >= `QuotaParams.amount`.
GrantedAmount int64 `protobuf:"varint,2,opt,name=granted_amount,json=grantedAmount,proto3" json:"granted_amount,omitempty"`
// A status code of OK indicates quota was fetched successfully.
// Any other code indicates error in fetching quota.
Status rpc.Status `protobuf:"bytes,6,opt,name=status,proto3" json:"status"`
// The total set of attributes that were used in producing the result
// along with matching conditions.
ReferencedAttributes ReferencedAttributes `protobuf:"bytes,5,opt,name=referenced_attributes,json=referencedAttributes,proto3" json:"referenced_attributes"`
}
func (m *CheckResponse_QuotaResult) Reset() { *m = CheckResponse_QuotaResult{} }
func (*CheckResponse_QuotaResult) ProtoMessage() {}
func (*CheckResponse_QuotaResult) Descriptor() ([]byte, []int) {
return fileDescriptor_f6f59c90bff4c1e2, []int{1, 1}
}
func (m *CheckResponse_QuotaResult) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *CheckResponse_QuotaResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_CheckResponse_QuotaResult.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *CheckResponse_QuotaResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_CheckResponse_QuotaResult.Merge(m, src)
}
func (m *CheckResponse_QuotaResult) XXX_Size() int {
return m.Size()
}
func (m *CheckResponse_QuotaResult) XXX_DiscardUnknown() {
xxx_messageInfo_CheckResponse_QuotaResult.DiscardUnknown(m)
}
var xxx_messageInfo_CheckResponse_QuotaResult proto.InternalMessageInfo
// Describes the attributes that were used to determine the response.
// This can be used to construct a response cache.
type ReferencedAttributes struct {
// The message-level dictionary. Refer to [CompressedAttributes][istio.mixer.v1.CompressedAttributes] for information
// on using dictionaries.
Words []string `protobuf:"bytes,1,rep,name=words,proto3" json:"words,omitempty"`
// Describes a set of attributes.
AttributeMatches []ReferencedAttributes_AttributeMatch `protobuf:"bytes,2,rep,name=attribute_matches,json=attributeMatches,proto3" json:"attribute_matches"`
}
func (m *ReferencedAttributes) Reset() { *m = ReferencedAttributes{} }
func (*ReferencedAttributes) ProtoMessage() {}
func (*ReferencedAttributes) Descriptor() ([]byte, []int) {
return fileDescriptor_f6f59c90bff4c1e2, []int{2}
}
func (m *ReferencedAttributes) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ReferencedAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ReferencedAttributes.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ReferencedAttributes) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReferencedAttributes.Merge(m, src)
}
func (m *ReferencedAttributes) XXX_Size() int {
return m.Size()
}
func (m *ReferencedAttributes) XXX_DiscardUnknown() {
xxx_messageInfo_ReferencedAttributes.DiscardUnknown(m)
}
var xxx_messageInfo_ReferencedAttributes proto.InternalMessageInfo
// Describes a single attribute match.
type ReferencedAttributes_AttributeMatch struct {
// The name of the attribute. This is a dictionary index encoded in a manner identical
// to all strings in the [CompressedAttributes][istio.mixer.v1.CompressedAttributes] message.
Name int32 `protobuf:"zigzag32,1,opt,name=name,proto3" json:"name,omitempty"`
// The kind of match against the attribute value.
Condition ReferencedAttributes_Condition `protobuf:"varint,2,opt,name=condition,proto3,enum=istio.mixer.v1.ReferencedAttributes_Condition" json:"condition,omitempty"`
// If a REGEX condition is provided for a STRING_MAP attribute,
// clients should use the regex value to match against map keys.
Regex string `protobuf:"bytes,3,opt,name=regex,proto3" json:"regex,omitempty"`
// A key in a STRING_MAP. When multiple keys from a STRING_MAP
// attribute were referenced, there will be multiple AttributeMatch
// messages with different map_key values. Values for map_key SHOULD
// be ignored for attributes that are not STRING_MAP.
//
// Indices for the keys are used (taken either from the
// message dictionary from the `words` field or the global dictionary).
//
// If no map_key value is provided for a STRING_MAP attribute, the
// entire STRING_MAP will be used.
MapKey int32 `protobuf:"zigzag32,4,opt,name=map_key,json=mapKey,proto3" json:"map_key,omitempty"`
}
func (m *ReferencedAttributes_AttributeMatch) Reset() { *m = ReferencedAttributes_AttributeMatch{} }
func (*ReferencedAttributes_AttributeMatch) ProtoMessage() {}
func (*ReferencedAttributes_AttributeMatch) Descriptor() ([]byte, []int) {
return fileDescriptor_f6f59c90bff4c1e2, []int{2, 0}
}
func (m *ReferencedAttributes_AttributeMatch) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ReferencedAttributes_AttributeMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ReferencedAttributes_AttributeMatch.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ReferencedAttributes_AttributeMatch) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReferencedAttributes_AttributeMatch.Merge(m, src)
}
func (m *ReferencedAttributes_AttributeMatch) XXX_Size() int {
return m.Size()
}
func (m *ReferencedAttributes_AttributeMatch) XXX_DiscardUnknown() {
xxx_messageInfo_ReferencedAttributes_AttributeMatch.DiscardUnknown(m)
}
var xxx_messageInfo_ReferencedAttributes_AttributeMatch proto.InternalMessageInfo
// Operation on HTTP headers to replace, append, or remove a header. Header
// names are normalized to lower-case with dashes, e.g. "x-request-id".
// Pseudo-headers ":path", ":authority", and ":method" are supported to modify
// the request headers.
type HeaderOperation struct {
// Header name.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Header value.
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// Header operation.
Operation HeaderOperation_Operation `protobuf:"varint,3,opt,name=operation,proto3,enum=istio.mixer.v1.HeaderOperation_Operation" json:"operation,omitempty"`
}
func (m *HeaderOperation) Reset() { *m = HeaderOperation{} }
func (*HeaderOperation) ProtoMessage() {}
func (*HeaderOperation) Descriptor() ([]byte, []int) {
return fileDescriptor_f6f59c90bff4c1e2, []int{3}
}
func (m *HeaderOperation) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *HeaderOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_HeaderOperation.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *HeaderOperation) XXX_Merge(src proto.Message) {
xxx_messageInfo_HeaderOperation.Merge(m, src)
}
func (m *HeaderOperation) XXX_Size() int {
return m.Size()
}
func (m *HeaderOperation) XXX_DiscardUnknown() {
xxx_messageInfo_HeaderOperation.DiscardUnknown(m)
}
var xxx_messageInfo_HeaderOperation proto.InternalMessageInfo
// Expresses the routing manipulation actions to be performed on behalf of
// Mixer in response to a precondition check.
type RouteDirective struct {
// Operations on the request headers.
RequestHeaderOperations []HeaderOperation `protobuf:"bytes,1,rep,name=request_header_operations,json=requestHeaderOperations,proto3" json:"request_header_operations"`
// Operations on the response headers.
ResponseHeaderOperations []HeaderOperation `protobuf:"bytes,2,rep,name=response_header_operations,json=responseHeaderOperations,proto3" json:"response_header_operations"`
// If set, enables a direct response without proxying the request to the routing
// destination. Required to be a value in the 2xx or 3xx range.
DirectResponseCode uint32 `protobuf:"varint,3,opt,name=direct_response_code,json=directResponseCode,proto3" json:"direct_response_code,omitempty"`
// Supplies the response body for the direct response.
// If this setting is omitted, no body is included in the generated response.
DirectResponseBody string `protobuf:"bytes,4,opt,name=direct_response_body,json=directResponseBody,proto3" json:"direct_response_body,omitempty"`
}
func (m *RouteDirective) Reset() { *m = RouteDirective{} }
func (*RouteDirective) ProtoMessage() {}
func (*RouteDirective) Descriptor() ([]byte, []int) {
return fileDescriptor_f6f59c90bff4c1e2, []int{4}
}
func (m *RouteDirective) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RouteDirective) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RouteDirective.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RouteDirective) XXX_Merge(src proto.Message) {
xxx_messageInfo_RouteDirective.Merge(m, src)
}
func (m *RouteDirective) XXX_Size() int {
return m.Size()
}
func (m *RouteDirective) XXX_DiscardUnknown() {
xxx_messageInfo_RouteDirective.DiscardUnknown(m)
}
var xxx_messageInfo_RouteDirective proto.InternalMessageInfo
// Used to report telemetry after performing one or more actions.
type ReportRequest struct {
// The attributes to use for this request.
//
// Each `Attributes` element represents the state of a single action. Multiple actions
// can be provided in a single message in order to improve communication efficiency. The
// client can accumulate a set of actions and send them all in one single message.
Attributes []CompressedAttributes `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes"`
// Indicates how to decode the attributes sets in this request.
RepeatedAttributesSemantics ReportRequest_RepeatedAttributesSemantics `protobuf:"varint,4,opt,name=repeated_attributes_semantics,json=repeatedAttributesSemantics,proto3,enum=istio.mixer.v1.ReportRequest_RepeatedAttributesSemantics" json:"repeated_attributes_semantics,omitempty"`
// The default message-level dictionary for all the attributes.
// Individual attribute messages can have their own dictionaries, but if they don't
// then this set of words, if it is provided, is used instead.
//
// This makes it possible to share the same dictionary for all attributes in this
// request, which can substantially reduce the overall request size.
DefaultWords []string `protobuf:"bytes,2,rep,name=default_words,json=defaultWords,proto3" json:"default_words,omitempty"`
// The number of words in the global dictionary.
// To detect global dictionary out of sync between client and server.
GlobalWordCount uint32 `protobuf:"varint,3,opt,name=global_word_count,json=globalWordCount,proto3" json:"global_word_count,omitempty"`
}
func (m *ReportRequest) Reset() { *m = ReportRequest{} }
func (*ReportRequest) ProtoMessage() {}
func (*ReportRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_f6f59c90bff4c1e2, []int{5}
}
func (m *ReportRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ReportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ReportRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ReportRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReportRequest.Merge(m, src)
}
func (m *ReportRequest) XXX_Size() int {
return m.Size()
}
func (m *ReportRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ReportRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ReportRequest proto.InternalMessageInfo
// Used to carry responses to telemetry reports
type ReportResponse struct {
}
func (m *ReportResponse) Reset() { *m = ReportResponse{} }
func (*ReportResponse) ProtoMessage() {}
func (*ReportResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_f6f59c90bff4c1e2, []int{6}
}
func (m *ReportResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ReportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ReportResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ReportResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReportResponse.Merge(m, src)
}
func (m *ReportResponse) XXX_Size() int {
return m.Size()
}
func (m *ReportResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ReportResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ReportResponse proto.InternalMessageInfo
func init() {
proto.RegisterEnum("istio.mixer.v1.ReferencedAttributes_Condition", ReferencedAttributes_Condition_name, ReferencedAttributes_Condition_value)
proto.RegisterEnum("istio.mixer.v1.HeaderOperation_Operation", HeaderOperation_Operation_name, HeaderOperation_Operation_value)
proto.RegisterEnum("istio.mixer.v1.ReportRequest_RepeatedAttributesSemantics", ReportRequest_RepeatedAttributesSemantics_name, ReportRequest_RepeatedAttributesSemantics_value)
proto.RegisterType((*CheckRequest)(nil), "istio.mixer.v1.CheckRequest")
proto.RegisterMapType((map[string]CheckRequest_QuotaParams)(nil), "istio.mixer.v1.CheckRequest.QuotasEntry")
proto.RegisterType((*CheckRequest_QuotaParams)(nil), "istio.mixer.v1.CheckRequest.QuotaParams")
proto.RegisterType((*CheckResponse)(nil), "istio.mixer.v1.CheckResponse")
proto.RegisterMapType((map[string]CheckResponse_QuotaResult)(nil), "istio.mixer.v1.CheckResponse.QuotasEntry")
proto.RegisterType((*CheckResponse_PreconditionResult)(nil), "istio.mixer.v1.CheckResponse.PreconditionResult")
proto.RegisterType((*CheckResponse_QuotaResult)(nil), "istio.mixer.v1.CheckResponse.QuotaResult")
proto.RegisterType((*ReferencedAttributes)(nil), "istio.mixer.v1.ReferencedAttributes")
proto.RegisterType((*ReferencedAttributes_AttributeMatch)(nil), "istio.mixer.v1.ReferencedAttributes.AttributeMatch")
proto.RegisterType((*HeaderOperation)(nil), "istio.mixer.v1.HeaderOperation")
proto.RegisterType((*RouteDirective)(nil), "istio.mixer.v1.RouteDirective")
proto.RegisterType((*ReportRequest)(nil), "istio.mixer.v1.ReportRequest")
proto.RegisterType((*ReportResponse)(nil), "istio.mixer.v1.ReportResponse")
}
func init() { proto.RegisterFile("mixer/v1/mixer.proto", fileDescriptor_f6f59c90bff4c1e2) }
var fileDescriptor_f6f59c90bff4c1e2 = []byte{
// 1227 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x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 0xff, 0x9f, 0xf6, 0xd8, 0xa9, 0x5e, 0x39, 0x75,
0xe3, 0xd6, 0x24, 0xd4, 0x86, 0x1c, 0x8f, 0x81, 0xae, 0x9c, 0xca, 0x71, 0x55, 0x3b, 0x49, 0x9d,
0x40, 0x6d, 0xde, 0x79, 0x7a, 0xac, 0x49, 0xcf, 0x8e, 0x35, 0xe9, 0xf9, 0xb1, 0x26, 0xbd, 0x3c,
0xd6, 0xa4, 0x27, 0x23, 0x4d, 0xfe, 0x69, 0xa4, 0x49, 0x4f, 0x47, 0x9a, 0xfc, 0x6c, 0xa4, 0xc9,
0xbf, 0x8f, 0x34, 0xf9, 0xcf, 0x91, 0x26, 0xbd, 0x1c, 0x69, 0xf2, 0xd7, 0x2f, 0x34, 0xe9, 0xd9,
0x0b, 0x4d, 0x7a, 0xfe, 0x42, 0x93, 0xee, 0x5f, 0xe4, 0xd0, 0x1e, 0xa9, 0xdb, 0xbe, 0x57, 0x4f,
0x1e, 0xd3, 0x4f, 0x64, 0xf9, 0x95, 0x2c, 0x1f, 0xe4, 0xd8, 0xaf, 0xf4, 0xfa, 0x5f, 0x01, 0x00,
0x00, 0xff, 0xff, 0xb1, 0x60, 0x65, 0xe3, 0xda, 0x0b, 0x00, 0x00,
}
func (x ReferencedAttributes_Condition) String() string {
s, ok := ReferencedAttributes_Condition_name[int32(x)]
if ok {
return s
}
return strconv.Itoa(int(x))
}
func (x HeaderOperation_Operation) String() string {
s, ok := HeaderOperation_Operation_name[int32(x)]
if ok {
return s
}
return strconv.Itoa(int(x))
}
func (x ReportRequest_RepeatedAttributesSemantics) String() string {
s, ok := ReportRequest_RepeatedAttributesSemantics_name[int32(x)]
if ok {
return s
}
return strconv.Itoa(int(x))
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// MixerClient is the client API for Mixer service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type MixerClient interface {
// Checks preconditions and allocate quota before performing an operation.
// The preconditions enforced depend on the set of supplied attributes and
// the active configuration.
Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error)
// Reports telemetry, such as logs and metrics.
// The reported information depends on the set of supplied attributes and the
// active configuration.
Report(ctx context.Context, in *ReportRequest, opts ...grpc.CallOption) (*ReportResponse, error)
}
type mixerClient struct {
cc *grpc.ClientConn
}
func NewMixerClient(cc *grpc.ClientConn) MixerClient {
return &mixerClient{cc}
}
func (c *mixerClient) Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error) {
out := new(CheckResponse)
err := c.cc.Invoke(ctx, "/istio.mixer.v1.Mixer/Check", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *mixerClient) Report(ctx context.Context, in *ReportRequest, opts ...grpc.CallOption) (*ReportResponse, error) {
out := new(ReportResponse)
err := c.cc.Invoke(ctx, "/istio.mixer.v1.Mixer/Report", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// MixerServer is the server API for Mixer service.
type MixerServer interface {
// Checks preconditions and allocate quota before performing an operation.
// The preconditions enforced depend on the set of supplied attributes and
// the active configuration.
Check(context.Context, *CheckRequest) (*CheckResponse, error)
// Reports telemetry, such as logs and metrics.
// The reported information depends on the set of supplied attributes and the
// active configuration.
Report(context.Context, *ReportRequest) (*ReportResponse, error)
}
// UnimplementedMixerServer can be embedded to have forward compatible implementations.
type UnimplementedMixerServer struct {
}
func (*UnimplementedMixerServer) Check(ctx context.Context, req *CheckRequest) (*CheckResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Check not implemented")
}
func (*UnimplementedMixerServer) Report(ctx context.Context, req *ReportRequest) (*ReportResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Report not implemented")
}
func RegisterMixerServer(s *grpc.Server, srv MixerServer) {
s.RegisterService(&_Mixer_serviceDesc, srv)
}
func _Mixer_Check_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CheckRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MixerServer).Check(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/istio.mixer.v1.Mixer/Check",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MixerServer).Check(ctx, req.(*CheckRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Mixer_Report_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ReportRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MixerServer).Report(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/istio.mixer.v1.Mixer/Report",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MixerServer).Report(ctx, req.(*ReportRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Mixer_serviceDesc = grpc.ServiceDesc{
ServiceName: "istio.mixer.v1.Mixer",
HandlerType: (*MixerServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Check",
Handler: _Mixer_Check_Handler,
},
{
MethodName: "Report",
Handler: _Mixer_Report_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "mixer/v1/mixer.proto",
}
func (m *CheckRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *CheckRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *CheckRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Quotas) > 0 {
for k := range m.Quotas {
v := m.Quotas[k]
baseI := i
{
size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintMixer(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x12
i -= len(k)
copy(dAtA[i:], k)
i = encodeVarintMixer(dAtA, i, uint64(len(k)))
i--
dAtA[i] = 0xa
i = encodeVarintMixer(dAtA, i, uint64(baseI-i))
i--
dAtA[i] = 0x22
}
}
if len(m.DeduplicationId) > 0 {
i -= len(m.DeduplicationId)
copy(dAtA[i:], m.DeduplicationId)
i = encodeVarintMixer(dAtA, i, uint64(len(m.DeduplicationId)))
i--
dAtA[i] = 0x1a
}
if m.GlobalWordCount != 0 {
i = encodeVarintMixer(dAtA, i, uint64(m.GlobalWordCount))
i--
dAtA[i] = 0x10
}
{
size, err := m.Attributes.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintMixer(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
func (m *CheckRequest_QuotaParams) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *CheckRequest_QuotaParams) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *CheckRequest_QuotaParams) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.BestEffort {
i--
if m.BestEffort {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x10
}
if m.Amount != 0 {
i = encodeVarintMixer(dAtA, i, uint64(m.Amount))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *CheckResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *CheckResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])