]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: doc: missing entries for sc-add-gpc()
authorAurelien DARRAGON <adarragon@haproxy.com>
Fri, 17 Mar 2023 10:46:37 +0000 (11:46 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 17 Mar 2023 12:09:09 +0000 (13:09 +0100)
When sc-add-gpc() action was implemented in 5a72d03 ("MINOR:
stick-table: implement the sc-add-gpc() action"), its usage was
only documented for "http-request", but according to the code it
now applies everywhere sc-inc-gpc() is mentioned.

Adding the missing entries in the doc everywhere the action may
be used.

The issue was detected by the haproxy-controller bot and was reported
by Pratik Mohanty and Marko Juraga.

No backport needed, unless 5a72d03 ("MINOR: stick-table: implement the
sc-add-gpc() action") is being backported.

doc/configuration.txt

index d1793849a9b1b60920706b6c55d76611329f4a16..446d1a2d849391b953f1860f6a00289dabbf4dde 100644 (file)
@@ -5903,6 +5903,7 @@ http-after-response <action> <options...> [ { if | unless } <condition> ]
     - del-map(<file-name>) <key fmt>
     - replace-header <name> <regex-match> <replace-fmt>
     - replace-value <name> <regex-match> <replace-fmt>
+    - sc-add-gpc(<idx>,<sc-id>) { <int> | <expr> }
     - sc-inc-gpc(<idx>,<sc-id>)
     - sc-inc-gpc0(<sc-id>)
     - sc-inc-gpc1(<sc-id>)
@@ -6000,6 +6001,13 @@ http-after-response replace-value <name> <regex-match> <replace-fmt>
     # outputs:
     Cache-Control: max-age=3600, private
 
+http-after-response sc-add-gpc(<idx>,<sc-id>) { <int> | <expr> }
+                                           [ { if | unless } <condition> ]
+
+  This action increments the General Purpose Counter according to the sticky
+  counter designated by <sc-id>. Please refer to "http-request sc-add-gpc" for
+  a complete description.
+
 http-after-response sc-inc-gpc(<idx>,<sc-id>) [ { if | unless } <condition> ]
 http-after-response sc-inc-gpc0(<sc-id>) [ { if | unless } <condition> ]
 http-after-response sc-inc-gpc1(<sc-id>) [ { if | unless } <condition> ]
@@ -6650,6 +6658,7 @@ http-request <action> [options...] [ { if | unless } <condition> ]
     - replace-uri <match-regex> <replace-fmt>
     - replace-value <name> <match-regex> <replace-fmt>
     - return [status <code>] [content-type <type>] ...
+    - sc-add-gpc(<idx>,<sc-id>) { <int> | <expr> }
     - sc-inc-gpc(<idx>,<sc-id>)
     - sc-inc-gpc0(<sc-id>)
     - sc-inc-gpc1(<sc-id>)
@@ -7855,6 +7864,7 @@ http-response <action> <options...> [ { if | unless } <condition> ]
     - replace-header <name> <regex-match> <replace-fmt>
     - replace-value <name> <regex-match> <replace-fmt>
     - return [status <code>] [content-type <type>] ...
+    - sc-add-gpc(<idx>,<sc-id>) { <int> | <expr> }
     - sc-inc-gpc(<idx>,<sc-id>)
     - sc-inc-gpc0(<sc-id>)
     - sc-inc-gpc1(<sc-id>)
@@ -8033,6 +8043,13 @@ http-response return [status <code>] [content-type <type>]
   response. Please refer to "http-request return" for a complete
   description. No further "http-response" rules are evaluated.
 
+http-response sc-add-gpc(<idx>,<sc-id>) { <int> | <expr> }
+                                           [ { if | unless } <condition> ]
+
+  This action increments the General Purpose Counter according to the sticky
+  counter designated by <sc-id>. Please refer to "http-request sc-add-gpc" for
+  a complete description.
+
 http-response sc-inc-gpc(<idx>,<sc-id>) [ { if | unless } <condition> ]
 http-response sc-inc-gpc0(<sc-id>) [ { if | unless } <condition> ]
 http-response sc-inc-gpc1(<sc-id>) [ { if | unless } <condition> ]
@@ -12911,6 +12928,7 @@ tcp-request connection <action> <options...> [ { if | unless } <condition> ]
     - expect-netscaler-cip layer4
     - expect-proxy layer4
     - reject
+    - sc-add-gpc(<idx>,<sc-id>) { <int> | <expr> }
     - sc-inc-gpc(<idx>,<sc-id>)
     - sc-inc-gpc0(<sc-id>)
     - sc-inc-gpc1(<sc-id>)
@@ -13009,6 +13027,13 @@ tcp-request connection reject [ { if | unless } <condition> ]
   content" rules should be used instead, as "tcp-request session" rules will
   not log either.
 
+tcp-request connection sc-add-gpc(<idx>,<sc-id>) { <int> | <expr> }
+                                           [ { if | unless } <condition> ]
+
+  This action increments the General Purpose Counter according to the sticky
+  counter designated by <sc-id>. Please refer to "http-request sc-add-gpc" for
+  a complete description.
+
 tcp-request connection sc-inc-gpc(<idx>,<sc-id>) [ { if | unless } <condition> ]
 tcp-request connection sc-inc-gpc0(<sc-id>) [ { if | unless } <condition> ]
 tcp-request connection sc-inc-gpc1(<sc-id>) [ { if | unless } <condition> ]
@@ -13122,6 +13147,7 @@ tcp-request content <action> [{if | unless} <condition>]
     - capture <sample> len <length>
     - do-resolve(<var>,<resolvers>,[ipv4,ipv6]) <expr>
     - reject
+    - sc-add-gpc(<idx>,<sc-id>) { <int> | <expr> }
     - sc-inc-gpc(<idx>,<sc-id>)
     - sc-inc-gpc0(<sc-id>)
     - sc-inc-gpc1(<sc-id>)
@@ -13298,6 +13324,13 @@ tcp-request content reject [ { if | unless } <condition> ]
   This is used to reject the connection. No further "tcp-request content" rules
   are evaluated.
 
+tcp-request content sc-add-gpc(<idx>,<sc-id>) { <int> | <expr> }
+                                           [ { if | unless } <condition> ]
+
+  This action increments the General Purpose Counter according to the sticky
+  counter designated by <sc-id>. Please refer to "http-request sc-add-gpc" for
+  a complete description.
+
 tcp-request content sc-inc-gpc(<idx>,<sc-id>) [ { if | unless } <condition> ]
 tcp-request content sc-inc-gpc0(<sc-id>) [ { if | unless } <condition> ]
 tcp-request content sc-inc-gpc1(<sc-id>) [ { if | unless } <condition> ]
@@ -13518,6 +13551,7 @@ tcp-request session <action> [{if | unless} <condition>]
   supported:
     - accept
     - reject
+    - sc-add-gpc(<idx>,<sc-id>) { <int> | <expr> }
     - sc-inc-gpc(<idx>,<sc-id>)
     - sc-inc-gpc0(<sc-id>)
     - sc-inc-gpc1(<sc-id>)
@@ -13589,6 +13623,13 @@ tcp-request session reject [ { if | unless } <condition> ]
   This is used to reject the connection. No further "tcp-request session" rules
   are evaluated.
 
+tcp-request session sc-add-gpc(<idx>,<sc-id>) { <int> | <expr> }
+                                           [ { if | unless } <condition> ]
+
+  This action increments the General Purpose Counter according to the sticky
+  counter designated by <sc-id>. Please refer to "http-request sc-add-gpc" for
+  a complete description.
+
 tcp-request session sc-inc-gpc(<idx>,<sc-id>) [ { if | unless } <condition> ]
 tcp-request session sc-inc-gpc0(<sc-id>) [ { if | unless } <condition> ]
 tcp-request session sc-inc-gpc1(<sc-id>) [ { if | unless } <condition> ]
@@ -13690,6 +13731,7 @@ tcp-response content <action> [{if | unless} <condition>]
     - accept
     - close
     - reject
+    - sc-add-gpc(<idx>,<sc-id>) { <int> | <expr> }
     - sc-inc-gpc(<idx>,<sc-id>)
     - sc-inc-gpc0(<sc-id>)
     - sc-inc-gpc1(<sc-id>)
@@ -13750,6 +13792,13 @@ tcp-response content reject [ { if | unless } <condition> ]
   This is used to reject the response. No further "tcp-response content" rules
   are evaluated.
 
+tcp-response content sc-add-gpc(<idx>,<sc-id>) { <int> | <expr> }
+                                           [ { if | unless } <condition> ]
+
+  This action increments the General Purpose Counter according to the sticky
+  counter designated by <sc-id>. Please refer to "http-request sc-add-gpc" for
+  a complete description.
+
 tcp-response content sc-inc-gpc(<idx>,<sc-id>) [ { if | unless } <condition> ]
 tcp-response content sc-inc-gpc0(<sc-id>) [ { if | unless } <condition> ]
 tcp-response content sc-inc-gpc1(<sc-id>) [ { if | unless } <condition> ]