]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: lua: fix core.{proxies,frontends,backends} visibility
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 11 May 2023 15:31:46 +0000 (17:31 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 May 2023 07:45:30 +0000 (09:45 +0200)
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.

doc/lua-api/index.rst

index b548d85e854d57f1501f36e323e89bbb701b6998..c635741ab95a8048bd48e2447badc264bde61aae 100644 (file)
@@ -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