summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien DARRAGON <adarragon@haproxy.com>2023-05-11 17:31:46 +0200
committerChristopher Faulet <cfaulet@haproxy.com>2023-05-12 09:45:30 +0200
commit2a29571c11a5c4d12192f355d1475b0ee9f1142d (patch)
treeacd82af131d25983466e018abd15233f09b6c603
parentceb13b5ed33271dfd7e8a324263bef9eddc733f6 (diff)
downloadhaproxy-2a29571c11a5c4d12192f355d1475b0ee9f1142d.tar.gz
DOC: lua: fix core.{proxies,frontends,backends} visibility
Despite the doc not mentionning it, core.{proxies,frontends,backends} methods are also available from init context. (through core.register_init() functions) Updating the documentation to reflect this possibility.
-rw-r--r--doc/lua-api/index.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/lua-api/index.rst b/doc/lua-api/index.rst
index b548d85e8..c635741ab 100644
--- a/doc/lua-api/index.rst
+++ b/doc/lua-api/index.rst
@@ -217,7 +217,7 @@ Core class
.. js:attribute:: core.proxies
- **context**: task, action, sample-fetch, converter
+ **context**: init, task, action, sample-fetch, converter
This attribute is a table of declared proxies (frontend and backends). Each
proxy give an access to his list of listeners and servers. The table is
@@ -232,7 +232,7 @@ Core class
.. js:attribute:: core.backends
- **context**: task, action, sample-fetch, converter
+ **context**: init, task, action, sample-fetch, converter
This attribute is a table of declared proxies with backend capability. Each
proxy give an access to his list of listeners and servers. The table is
@@ -243,7 +243,7 @@ Core class
.. js:attribute:: core.frontends
- **context**: task, action, sample-fetch, converter
+ **context**: init, task, action, sample-fetch, converter
This attribute is a table of declared proxies with frontend capability. Each
proxy give an access to his list of listeners and servers. The table is