public interface LuaOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsSourceCodes(String key)
Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
<envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`.
|
String |
getInlineCode()
The Lua code that Envoy will execute.
|
com.google.protobuf.ByteString |
getInlineCodeBytes()
The Lua code that Envoy will execute.
|
Map<String,DataSource> |
getSourceCodes()
Deprecated.
|
int |
getSourceCodesCount()
Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
<envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`.
|
Map<String,DataSource> |
getSourceCodesMap()
Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
<envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`.
|
DataSource |
getSourceCodesOrDefault(String key,
DataSource defaultValue)
Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
<envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`.
|
DataSource |
getSourceCodesOrThrow(String key)
Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
<envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getInlineCode()
The Lua code that Envoy will execute. This can be a very small script that further loads code from disk if desired. Note that if JSON configuration is used, the code must be properly escaped. YAML configuration may be easier to read since YAML supports multi-line strings so complex scripts can be easily expressed inline in the configuration.
string inline_code = 1 [(.validate.rules) = { ... }com.google.protobuf.ByteString getInlineCodeBytes()
The Lua code that Envoy will execute. This can be a very small script that further loads code from disk if desired. Note that if JSON configuration is used, the code must be properly escaped. YAML configuration may be easier to read since YAML supports multi-line strings so complex scripts can be easily expressed inline in the configuration.
string inline_code = 1 [(.validate.rules) = { ... }int getSourceCodesCount()
Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
<envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`. The Lua source codes can be
loaded from inline string or local files.
Example:
.. code-block:: yaml
source_codes:
hello.lua:
inline_string: |
function envoy_on_response(response_handle)
-- Do something.
end
world.lua:
filename: /etc/lua/world.lua
map<string, .envoy.config.core.v3.DataSource> source_codes = 2;boolean containsSourceCodes(String key)
Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
<envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`. The Lua source codes can be
loaded from inline string or local files.
Example:
.. code-block:: yaml
source_codes:
hello.lua:
inline_string: |
function envoy_on_response(response_handle)
-- Do something.
end
world.lua:
filename: /etc/lua/world.lua
map<string, .envoy.config.core.v3.DataSource> source_codes = 2;@Deprecated Map<String,DataSource> getSourceCodes()
getSourceCodesMap() instead.Map<String,DataSource> getSourceCodesMap()
Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
<envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`. The Lua source codes can be
loaded from inline string or local files.
Example:
.. code-block:: yaml
source_codes:
hello.lua:
inline_string: |
function envoy_on_response(response_handle)
-- Do something.
end
world.lua:
filename: /etc/lua/world.lua
map<string, .envoy.config.core.v3.DataSource> source_codes = 2;DataSource getSourceCodesOrDefault(String key, DataSource defaultValue)
Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
<envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`. The Lua source codes can be
loaded from inline string or local files.
Example:
.. code-block:: yaml
source_codes:
hello.lua:
inline_string: |
function envoy_on_response(response_handle)
-- Do something.
end
world.lua:
filename: /etc/lua/world.lua
map<string, .envoy.config.core.v3.DataSource> source_codes = 2;DataSource getSourceCodesOrThrow(String key)
Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
<envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`. The Lua source codes can be
loaded from inline string or local files.
Example:
.. code-block:: yaml
source_codes:
hello.lua:
inline_string: |
function envoy_on_response(response_handle)
-- Do something.
end
world.lua:
filename: /etc/lua/world.lua
map<string, .envoy.config.core.v3.DataSource> source_codes = 2;Copyright © 2018–2021 The Envoy Project. All rights reserved.