-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Found new managed modules references (#304)
New managed modules references found. Please review. Co-authored-by: unmultimedio <unmultimedio@users.noreply.github.com>
- Loading branch information
1 parent
ab0e1e5
commit 0114135
Showing
6 changed files
with
775 additions
and
3 deletions.
There are no files selected for viewing
80 changes: 80 additions & 0 deletions
80
...4d346a46526a07ef17f5b14944149c389a0a03a2a2b05de151940b8b459b7811cafa35d525a94a02d12a22618
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
syntax = "proto3"; | ||
|
||
package envoy.type.matcher.v3; | ||
|
||
import "envoy/type/matcher/v3/number.proto"; | ||
import "envoy/type/matcher/v3/string.proto"; | ||
|
||
import "udpa/annotations/status.proto"; | ||
import "udpa/annotations/versioning.proto"; | ||
import "validate/validate.proto"; | ||
|
||
option java_package = "io.envoyproxy.envoy.type.matcher.v3"; | ||
option java_outer_classname = "ValueProto"; | ||
option java_multiple_files = true; | ||
option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3;matcherv3"; | ||
option (udpa.annotations.file_status).package_version_status = ACTIVE; | ||
|
||
// [#protodoc-title: Value matcher] | ||
|
||
// Specifies the way to match a ProtobufWkt::Value. Primitive values and ListValue are supported. | ||
// StructValue is not supported and is always not matched. | ||
// [#next-free-field: 8] | ||
message ValueMatcher { | ||
option (udpa.annotations.versioning).previous_message_type = "envoy.type.matcher.ValueMatcher"; | ||
|
||
// NullMatch is an empty message to specify a null value. | ||
message NullMatch { | ||
option (udpa.annotations.versioning).previous_message_type = | ||
"envoy.type.matcher.ValueMatcher.NullMatch"; | ||
} | ||
|
||
// Specifies how to match a value. | ||
oneof match_pattern { | ||
option (validate.required) = true; | ||
|
||
// If specified, a match occurs if and only if the target value is a NullValue. | ||
NullMatch null_match = 1; | ||
|
||
// If specified, a match occurs if and only if the target value is a double value and is | ||
// matched to this field. | ||
DoubleMatcher double_match = 2; | ||
|
||
// If specified, a match occurs if and only if the target value is a string value and is | ||
// matched to this field. | ||
StringMatcher string_match = 3; | ||
|
||
// If specified, a match occurs if and only if the target value is a bool value and is equal | ||
// to this field. | ||
bool bool_match = 4; | ||
|
||
// If specified, value match will be performed based on whether the path is referring to a | ||
// valid primitive value in the metadata. If the path is referring to a non-primitive value, | ||
// the result is always not matched. | ||
bool present_match = 5; | ||
|
||
// If specified, a match occurs if and only if the target value is a list value and | ||
// is matched to this field. | ||
ListMatcher list_match = 6; | ||
|
||
// If specified, a match occurs if and only if any of the alternatives in the match accept the value. | ||
OrMatcher or_match = 7; | ||
} | ||
} | ||
|
||
// Specifies the way to match a list value. | ||
message ListMatcher { | ||
option (udpa.annotations.versioning).previous_message_type = "envoy.type.matcher.ListMatcher"; | ||
|
||
oneof match_pattern { | ||
option (validate.required) = true; | ||
|
||
// If specified, at least one of the values in the list must match the value specified. | ||
ValueMatcher one_of = 1; | ||
} | ||
} | ||
|
||
// Specifies a list of alternatives for the match. | ||
message OrMatcher { | ||
repeated ValueMatcher value_matchers = 1 [(validate.rules).repeated = {min_items: 2}]; | ||
} |
Oops, something went wrong.