Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

Commit f577e93

Browse files
committed
Generate docs
1 parent 240a3d2 commit f577e93

20 files changed

+706
-98
lines changed

script-reference/autogenerated-package-index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,9 @@
397397
purpose is to provide an easy way to load all known Zeek scripts plus any
398398
extra scripts needed or used by the documentation process.
399399

400+
:doc:`policy/frameworks/cluster/backend/zeromq </scripts/policy/frameworks/cluster/backend/zeromq/index>`
401+
402+
400403
:doc:`policy/frameworks/management/agent </scripts/policy/frameworks/management/agent/index>`
401404

402405

script-reference/autogenerated-script-index.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@
253253
base/bif/plugins/Zeek_WebSocket.functions.bif.zeek </scripts/base/bif/plugins/Zeek_WebSocket.functions.bif.zeek>
254254
base/bif/plugins/Zeek_WebSocket.types.bif.zeek </scripts/base/bif/plugins/Zeek_WebSocket.types.bif.zeek>
255255
base/bif/plugins/Zeek_XMPP.events.bif.zeek </scripts/base/bif/plugins/Zeek_XMPP.events.bif.zeek>
256+
base/bif/plugins/Zeek_Cluster_Backend_ZeroMQ.cluster_backend_zeromq.bif.zeek </scripts/base/bif/plugins/Zeek_Cluster_Backend_ZeroMQ.cluster_backend_zeromq.bif.zeek>
256257
base/bif/plugins/Zeek_ARP.events.bif.zeek </scripts/base/bif/plugins/Zeek_ARP.events.bif.zeek>
257258
base/bif/plugins/Zeek_UDP.events.bif.zeek </scripts/base/bif/plugins/Zeek_UDP.events.bif.zeek>
258259
base/bif/plugins/Zeek_ICMP.events.bif.zeek </scripts/base/bif/plugins/Zeek_ICMP.events.bif.zeek>
@@ -495,6 +496,8 @@
495496
builtin-plugins/Zeek_AF_Packet/init.zeek </scripts/builtin-plugins/Zeek_AF_Packet/init.zeek>
496497
zeekygen/__load__.zeek </scripts/zeekygen/__load__.zeek>
497498
test-all-policy.zeek </scripts/test-all-policy.zeek>
499+
policy/frameworks/cluster/backend/zeromq/__load__.zeek </scripts/policy/frameworks/cluster/backend/zeromq/__load__.zeek>
500+
policy/frameworks/cluster/backend/zeromq/main.zeek </scripts/policy/frameworks/cluster/backend/zeromq/main.zeek>
498501
policy/frameworks/cluster/experimental.zeek </scripts/policy/frameworks/cluster/experimental.zeek>
499502
policy/frameworks/management/agent/__load__.zeek </scripts/policy/frameworks/management/agent/__load__.zeek>
500503
policy/frameworks/management/agent/api.zeek </scripts/policy/frameworks/management/agent/api.zeek>
@@ -614,6 +617,7 @@
614617
policy/protocols/ssl/weak-keys.zeek </scripts/policy/protocols/ssl/weak-keys.zeek>
615618
policy/tuning/json-logs.zeek </scripts/policy/tuning/json-logs.zeek>
616619
policy/tuning/track-all-assets.zeek </scripts/policy/tuning/track-all-assets.zeek>
620+
policy/frameworks/cluster/backend/zeromq/connect.zeek </scripts/policy/frameworks/cluster/backend/zeromq/connect.zeek>
617621
policy/frameworks/cluster/nodes-experimental/manager.zeek </scripts/policy/frameworks/cluster/nodes-experimental/manager.zeek>
618622
policy/frameworks/control/controllee.zeek </scripts/policy/frameworks/control/controllee.zeek>
619623
policy/frameworks/control/controller.zeek </scripts/policy/frameworks/control/controller.zeek>

scripts/base/bif/cluster.bif.zeek.rst

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ Functions
1919
:zeek:id:`Cluster::make_event`: :zeek:type:`function` Create a data structure that may be used to send a remote event via
2020
:zeek:see:`Broker::publish`.
2121
:zeek:id:`Cluster::publish`: :zeek:type:`function` Publishes an event to a given topic.
22+
:zeek:id:`Cluster::publish_hrw`: :zeek:type:`function` Publishes an event to a node within a pool according to Rendezvous
23+
(Highest Random Weight) hashing strategy.
24+
:zeek:id:`Cluster::publish_rr`: :zeek:type:`function` Publishes an event to a node within a pool according to Round-Robin
25+
distribution strategy.
2226
========================================================== ===================================================================
2327

2428

@@ -83,4 +87,51 @@ Functions
8387

8488
:returns: true if the message is sent.
8589

90+
.. zeek:id:: Cluster::publish_hrw
91+
:source-code: base/bif/cluster.bif.zeek 80 80
92+
93+
:Type: :zeek:type:`function` (...) : :zeek:type:`bool`
94+
95+
Publishes an event to a node within a pool according to Rendezvous
96+
(Highest Random Weight) hashing strategy.
97+
98+
99+
:param pool: the pool of nodes that are eligible to receive the event.
100+
101+
102+
:param key: data used for input to the hashing function that will uniformly
103+
distribute keys among available nodes.
104+
105+
106+
:param args: Either the event arguments as already made by
107+
:zeek:see:`Broker::make_event` or the argument list to pass along
108+
to it.
109+
110+
111+
:returns: true if the message is sent.
112+
113+
.. zeek:id:: Cluster::publish_rr
114+
:source-code: base/bif/cluster.bif.zeek 63 63
115+
116+
:Type: :zeek:type:`function` (...) : :zeek:type:`bool`
117+
118+
Publishes an event to a node within a pool according to Round-Robin
119+
distribution strategy.
120+
121+
122+
:param pool: the pool of nodes that are eligible to receive the event.
123+
124+
125+
:param key: an arbitrary string to identify the purpose for which you're
126+
distributing the event. e.g. consider using namespacing of your
127+
script like "Intel::cluster_rr_key".
128+
129+
130+
:param args: Either the event arguments as already made by
131+
:zeek:see:`Cluster::make_event` or the argument list to pass along
132+
to it.
133+
134+
135+
:returns: true if the message is sent.
136+
86137

scripts/base/bif/index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,9 @@ Package: base/bif
461461
:doc:`/scripts/base/bif/plugins/Zeek_XMPP.events.bif.zeek`
462462

463463

464+
:doc:`/scripts/base/bif/plugins/Zeek_Cluster_Backend_ZeroMQ.cluster_backend_zeromq.bif.zeek`
465+
466+
464467
:doc:`/scripts/base/bif/plugins/Zeek_ARP.events.bif.zeek`
465468

466469

scripts/base/bif/messaging.bif.zeek.rst

Lines changed: 1 addition & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
base/bif/messaging.bif.zeek
44
===========================
55
.. zeek:namespace:: Broker
6-
.. zeek:namespace:: Cluster
76
.. zeek:namespace:: GLOBAL
87
98
Functions for peering and various messaging patterns.
109

11-
:Namespaces: Broker, Cluster, GLOBAL
10+
:Namespaces: Broker, GLOBAL
1211

1312
Summary
1413
~~~~~~~
@@ -25,10 +24,6 @@ Functions
2524
:zeek:id:`Broker::make_event`: :zeek:type:`function` Create a data structure that may be used to send a remote event via
2625
:zeek:see:`Broker::publish`.
2726
:zeek:id:`Broker::publish`: :zeek:type:`function` Publishes an event at a given topic.
28-
:zeek:id:`Cluster::publish_hrw`: :zeek:type:`function` Publishes an event to a node within a pool according to Rendezvous
29-
(Highest Random Weight) hashing strategy.
30-
:zeek:id:`Cluster::publish_rr`: :zeek:type:`function` Publishes an event to a node within a pool according to Round-Robin
31-
distribution strategy.
3227
========================================================== ===================================================================
3328

3429

@@ -112,51 +107,4 @@ Functions
112107

113108
:returns: true if the message is sent.
114109

115-
.. zeek:id:: Cluster::publish_hrw
116-
:source-code: base/bif/messaging.bif.zeek 94 94
117-
118-
:Type: :zeek:type:`function` (...) : :zeek:type:`bool`
119-
120-
Publishes an event to a node within a pool according to Rendezvous
121-
(Highest Random Weight) hashing strategy.
122-
123-
124-
:param pool: the pool of nodes that are eligible to receive the event.
125-
126-
127-
:param key: data used for input to the hashing function that will uniformly
128-
distribute keys among available nodes.
129-
130-
131-
:param args: Either the event arguments as already made by
132-
:zeek:see:`Broker::make_event` or the argument list to pass along
133-
to it.
134-
135-
136-
:returns: true if the message is sent.
137-
138-
.. zeek:id:: Cluster::publish_rr
139-
:source-code: base/bif/messaging.bif.zeek 77 77
140-
141-
:Type: :zeek:type:`function` (...) : :zeek:type:`bool`
142-
143-
Publishes an event to a node within a pool according to Round-Robin
144-
distribution strategy.
145-
146-
147-
:param pool: the pool of nodes that are eligible to receive the event.
148-
149-
150-
:param key: an arbitrary string to identify the purpose for which you're
151-
distributing the event. e.g. consider using namespacing of your
152-
script like "Intel::cluster_rr_key".
153-
154-
155-
:param args: Either the event arguments as already made by
156-
:zeek:see:`Broker::make_event` or the argument list to pass along
157-
to it.
158-
159-
160-
:returns: true if the message is sent.
161-
162110

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
:tocdepth: 3
2+
3+
base/bif/plugins/Zeek_Cluster_Backend_ZeroMQ.cluster_backend_zeromq.bif.zeek
4+
============================================================================
5+
.. zeek:namespace:: GLOBAL
6+
7+
8+
:Namespace: GLOBAL
9+
10+
Summary
11+
~~~~~~~
12+
Functions
13+
#########
14+
================================================================================== =
15+
:zeek:id:`Cluster::Backend::ZeroMQ::spawn_zmq_proxy_thread`: :zeek:type:`function`
16+
================================================================================== =
17+
18+
19+
Detailed Interface
20+
~~~~~~~~~~~~~~~~~~
21+
Functions
22+
#########
23+
.. zeek:id:: Cluster::Backend::ZeroMQ::spawn_zmq_proxy_thread
24+
:source-code: base/bif/plugins/Zeek_Cluster_Backend_ZeroMQ.cluster_backend_zeromq.bif.zeek 6 6
25+
26+
:Type: :zeek:type:`function` () : :zeek:type:`bool`
27+
28+
29+

0 commit comments

Comments
 (0)