diff --git a/BUILD b/BUILD index 9edcd4e6..3a16b3e3 100644 --- a/BUILD +++ b/BUILD @@ -62,6 +62,7 @@ proto_library( "//envoy/config/filter/listener/proxy_protocol/v2:pkg", "//envoy/config/filter/listener/tls_inspector/v2:pkg", "//envoy/config/filter/network/client_ssl_auth/v2:pkg", + "//envoy/config/filter/network/direct_response/v2:pkg", "//envoy/config/filter/network/dubbo_proxy/v2alpha1:pkg", "//envoy/config/filter/network/echo/v2:pkg", "//envoy/config/filter/network/ext_authz/v2:pkg", @@ -193,6 +194,7 @@ proto_library( "//envoy/extensions/filters/listener/proxy_protocol/v3:pkg", "//envoy/extensions/filters/listener/tls_inspector/v3:pkg", "//envoy/extensions/filters/network/client_ssl_auth/v3:pkg", + "//envoy/extensions/filters/network/direct_response/v3:pkg", "//envoy/extensions/filters/network/dubbo_proxy/router/v3:pkg", "//envoy/extensions/filters/network/dubbo_proxy/v3:pkg", "//envoy/extensions/filters/network/echo/v3:pkg", diff --git a/docs/BUILD b/docs/BUILD index b929f06b..222890e8 100644 --- a/docs/BUILD +++ b/docs/BUILD @@ -68,6 +68,7 @@ proto_library( "//envoy/config/filter/listener/proxy_protocol/v2:pkg", "//envoy/config/filter/listener/tls_inspector/v2:pkg", "//envoy/config/filter/network/client_ssl_auth/v2:pkg", + "//envoy/config/filter/network/direct_response/v2:pkg", "//envoy/config/filter/network/dubbo_proxy/v2alpha1:pkg", "//envoy/config/filter/network/echo/v2:pkg", "//envoy/config/filter/network/ext_authz/v2:pkg", diff --git a/envoy/config/filter/network/direct_response/v2/BUILD b/envoy/config/filter/network/direct_response/v2/BUILD new file mode 100644 index 00000000..ef3541eb --- /dev/null +++ b/envoy/config/filter/network/direct_response/v2/BUILD @@ -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"], +) diff --git a/envoy/config/filter/network/direct_response/v2/config.proto b/envoy/config/filter/network/direct_response/v2/config.proto new file mode 100644 index 00000000..8c9f9e73 --- /dev/null +++ b/envoy/config/filter/network/direct_response/v2/config.proto @@ -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 `. +// [#extension: envoy.filters.network.direct_response] + +message Config { + // Response data as bytes. + bytes response = 1; +} diff --git a/envoy/extensions/filters/network/direct_response/v3/BUILD b/envoy/extensions/filters/network/direct_response/v3/BUILD new file mode 100644 index 00000000..7b429137 --- /dev/null +++ b/envoy/extensions/filters/network/direct_response/v3/BUILD @@ -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", + ], +) diff --git a/envoy/extensions/filters/network/direct_response/v3/config.proto b/envoy/extensions/filters/network/direct_response/v3/config.proto new file mode 100644 index 00000000..be84035e --- /dev/null +++ b/envoy/extensions/filters/network/direct_response/v3/config.proto @@ -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 `. +// [#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; +}