From: Aurelien DARRAGON Date: Thu, 11 May 2023 15:31:46 +0000 (+0200) Subject: DOC: lua: fix core.{proxies,frontends,backends} visibility X-Git-Tag: v2.8-dev12~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a29571c11a5c4d12192f355d1475b0ee9f1142d;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/doc/lua-api/index.rst b/doc/lua-api/index.rst index b548d85e85..c635741ab9 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