]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: config: add a function to dump all known config keywords
authorWilly Tarreau <w@1wt.eu>
Tue, 29 Mar 2022 13:02:44 +0000 (15:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 29 Mar 2022 16:01:32 +0000 (18:01 +0200)
commitca1acd60808b6c8b6875cdc8300e546c069b3c77
treefbb58160f5a1d73e070190b9f5ec86fac89fc93e
parent76871a4f8c663e0cf4b610bd4e0806bf0bb60322
MINOR: config: add a function to dump all known config keywords

All registered config keywords that are valid in the config parser are
dumped to stdout organized like the regular sections (global, listen,
etc). Some keywords that are known to only be valid in frontends or
backends will be suffixed with [FE] or [BE].

All regularly registered "bind" and "server" keywords are also dumped,
one per "bind" or "server" line. Those depending on ssl are listed after
the "ssl" keyword. Doing so required to export the listener and server
keyword lists that were static.

The function is called from dump_registered_keywords() for keyword
class "cfg".
include/haproxy/cfgparse.h
src/cfgparse.c
src/haproxy.c
src/listener.c
src/server.c