forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader_map_impl_fuzz.proto
99 lines (83 loc) · 1.81 KB
/
header_map_impl_fuzz.proto
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
syntax = "proto3";
package test.common.http;
import "google/protobuf/empty.proto";
import "validate/validate.proto";
// Structured input for header_map_impl_fuzz_test.
message AddReference {
string key = 1;
string value = 2;
}
message AddReferenceKey {
string key = 1;
oneof value_selector {
string string_value = 2;
uint64 uint64_value = 3;
}
}
message AddCopy {
string key = 1;
oneof value_selector {
string string_value = 2;
uint64 uint64_value = 3;
}
}
message SetReference {
string key = 1;
string value = 2;
}
message SetReferenceKey {
string key = 1;
string value = 2;
}
message GetAndMutate {
string key = 1;
oneof mutate_selector {
string append = 2;
google.protobuf.Empty clear = 3;
string find = 4;
string set_copy = 5;
uint64 set_integer = 6;
string set_reference = 7;
}
}
message MutateAndMove {
string key = 1;
oneof mutate_selector {
string append = 2;
string set_copy = 3;
uint64 set_integer = 4;
string set_reference = 5;
}
}
message Append {
string key = 1;
string value = 2;
}
message Get {
string key = 1;
}
message Action {
oneof action_selector {
option (validate.required) = true;
AddReference add_reference = 1;
AddReferenceKey add_reference_key = 2;
AddCopy add_copy = 3;
SetReference set_reference = 4;
SetReferenceKey set_reference_key = 5;
GetAndMutate get_and_mutate = 6 [deprecated = true];
Get get = 13;
MutateAndMove mutate_and_move = 12;
Append append = 11;
google.protobuf.Empty copy = 7;
string remove = 9;
string remove_prefix = 10;
}
}
message Config {
uint32 lazy_map_min_size = 1;
}
message HeaderMapImplFuzzTestCase {
repeated Action actions = 1;
// Optional threshold value configuration for the lazy header-map.
Config config = 2;
}