]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: hlua: expose proxy mailers
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 26 Apr 2023 17:02:43 +0000 (19:02 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 5 May 2023 14:28:32 +0000 (16:28 +0200)
commit717a38d135ffa99009d3abefc8ab4f36df9e8cee
treed98044e3987653216e3635f082a01a90df16cc4c
parent5bed48fec8aa99ee6e1610ad99a3e57f7a8346f2
MINOR: hlua: expose proxy mailers

Proxy mailers, which are configured using "email-alert" directives
in proxy sections from the configuration, are now being exposed
directly in lua thanks to the proxy:get_mailers() method which
returns a class containing the various mailers settings if email
alerts are configured for the given proxy (else nil is returned).

Both the class and the proxy method were marked as LEGACY since this
feature relies on mailers configuration, and the goal here is to provide
the last missing bits of information to lua scripts in order to make
them capable of sending email alerts instead of relying on the soon-to-
be deprecated mailers implementation based on checks (see src/mailers.c)

Lua documentation was updated accordingly.
doc/lua-api/index.rst
src/hlua_fcn.c