network: add direct response network filter (#10210)
Signed-off-by: Kuat Yessenov <kuat@google.com> Mirrored from https://github.com/envoyproxy/envoy @ e8e20c3b045dcde43aee2f7eea63aa0d2b1edb2fmaster-ci-test
parent
524e939e13
commit
a896d18c8f
6 changed files with 65 additions and 0 deletions
@ -0,0 +1,9 @@ |
||||
# DO NOT EDIT. This file is generated by tools/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"], |
||||
) |
@ -0,0 +1,20 @@ |
||||
syntax = "proto3"; |
||||
|
||||
package envoy.config.filter.network.direct_response.v2; |
||||
|
||||
import "udpa/annotations/migrate.proto"; |
||||
|
||||
option java_package = "io.envoyproxy.envoy.config.filter.network.direct_response.v2"; |
||||
option java_outer_classname = "ConfigProto"; |
||||
option java_multiple_files = true; |
||||
option (udpa.annotations.file_migrate).move_to_package = |
||||
"envoy.extensions.filters.network.direct_response.v3"; |
||||
|
||||
// [#protodoc-title: Direct response] |
||||
// Direct response :ref:`configuration overview <config_network_filters_direct_response>`. |
||||
// [#extension: envoy.filters.network.direct_response] |
||||
|
||||
message Config { |
||||
// Response data as bytes. |
||||
bytes response = 1; |
||||
} |
@ -0,0 +1,12 @@ |
||||
# DO NOT EDIT. This file is generated by tools/proto_sync.py. |
||||
|
||||
load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package") |
||||
|
||||
licenses(["notice"]) # Apache 2 |
||||
|
||||
api_proto_package( |
||||
deps = [ |
||||
"//envoy/config/filter/network/direct_response/v2:pkg", |
||||
"@com_github_cncf_udpa//udpa/annotations:pkg", |
||||
], |
||||
) |
@ -0,0 +1,21 @@ |
||||
syntax = "proto3"; |
||||
|
||||
package envoy.extensions.filters.network.direct_response.v3; |
||||
|
||||
import "udpa/annotations/versioning.proto"; |
||||
|
||||
option java_package = "io.envoyproxy.envoy.extensions.filters.network.direct_response.v3"; |
||||
option java_outer_classname = "ConfigProto"; |
||||
option java_multiple_files = true; |
||||
|
||||
// [#protodoc-title: Direct response] |
||||
// Direct response :ref:`configuration overview <config_network_filters_direct_response>`. |
||||
// [#extension: envoy.filters.network.direct_response] |
||||
|
||||
message Config { |
||||
option (udpa.annotations.versioning).previous_message_type = |
||||
"envoy.config.filter.network.direct_response.v2.Config"; |
||||
|
||||
// Response data as bytes. |
||||
bytes response = 1; |
||||
} |
Loading…
Reference in new issue