forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
filters: Add dependencies.proto (envoyproxy#14750)
Introduces the FilterDependency proto. This isn't quite an extension, but it's a common proto to be used by all filter extensions. Risk Level: Low (proto addition only) envoyproxy#14470 Signed-off-by: Auni Ahsan <[email protected]>
- Loading branch information
Showing
7 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
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
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,9 @@ | ||
# DO NOT EDIT. This file is generated by tools/proto_format/proto_sync.py. | ||
|
||
load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package") | ||
|
||
licenses(["notice"]) # Apache 2 | ||
|
||
api_proto_package( | ||
deps = ["@com_github_cncf_udpa//udpa/annotations:pkg"], | ||
) |
45 changes: 45 additions & 0 deletions
45
api/envoy/extensions/filters/common/dependency/v3/dependency.proto
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,45 @@ | ||
syntax = "proto3"; | ||
|
||
package envoy.extensions.filters.common.dependency.v3; | ||
|
||
import "udpa/annotations/migrate.proto"; | ||
import "udpa/annotations/status.proto"; | ||
import "validate/validate.proto"; | ||
|
||
option java_package = "io.envoyproxy.envoy.extensions.filters.common.dependency.v3"; | ||
option java_outer_classname = "DependencyProto"; | ||
option java_multiple_files = true; | ||
option (udpa.annotations.file_status).package_version_status = ACTIVE; | ||
|
||
// [#protodoc-title: Filter dependency specification] | ||
|
||
// Dependency specification and string identifier. | ||
message Dependency { | ||
enum DependencyType { | ||
HEADER = 0; | ||
FILTER_STATE_KEY = 1; | ||
DYNAMIC_METADATA = 2; | ||
} | ||
|
||
// The kind of dependency. | ||
DependencyType type = 1; | ||
|
||
// The string identifier for the dependency. | ||
string name = 2 [(validate.rules).string = {min_len: 1}]; | ||
} | ||
|
||
// Dependency specification for a filter. For a filter chain to be valid, any | ||
// dependency that is required must be provided by an earlier filter. | ||
message FilterDependencies { | ||
// A list of dependencies required on the decode path. | ||
repeated Dependency decode_required = 1; | ||
|
||
// A list of dependencies provided on the encode path. | ||
repeated Dependency decode_provided = 2; | ||
|
||
// A list of dependencies required on the decode path. | ||
repeated Dependency encode_required = 3; | ||
|
||
// A list of dependencies provided on the encode path. | ||
repeated Dependency encode_provided = 4; | ||
} |
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
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
9 changes: 9 additions & 0 deletions
9
generated_api_shadow/envoy/extensions/filters/common/dependency/v3/BUILD
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
45 changes: 45 additions & 0 deletions
45
generated_api_shadow/envoy/extensions/filters/common/dependency/v3/dependency.proto
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.