summaryrefslogtreecommitdiff
path: root/src/rpc/envoy.extensions.string_matcher.lua.v3.rs
blob: 77703338facb2c23570a06e7412fa8efa5970247 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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)