diff options
Diffstat (limited to 'src/rpc/envoy.extensions.string_matcher.lua.v3.rs')
| -rw-r--r-- | src/rpc/envoy.extensions.string_matcher.lua.v3.rs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/rpc/envoy.extensions.string_matcher.lua.v3.rs b/src/rpc/envoy.extensions.string_matcher.lua.v3.rs new file mode 100644 index 00000000..77703338 --- /dev/null +++ b/src/rpc/envoy.extensions.string_matcher.lua.v3.rs @@ -0,0 +1,28 @@ +// @generated +// This file is @generated by prost-build. +// \[#protodoc-title: Lua StringMatcher\] +// A Lua StringMatcher allows executing a Lua script to determine if a string is a match. The configured source +// code must define a function named `envoy_match`. If the function returns true, the string is considered a match. +// Any other result, including an execution error, is considered a non-match. +// +// Example: +// +// .. code-block:: yaml +// +// source_code: +// inline_string: | +// function envoy_match(str) +// -- Do something. +// return true +// end +// +// \[#extension: envoy.string_matcher.lua\] + +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Lua { + /// The Lua code that Envoy will execute + #[prost(message, optional, tag="1")] + pub source_code: ::core::option::Option<super::super::super::super::config::core::v3::DataSource>, +} +// @@protoc_insertion_point(module) |
