Directories
¶
| Path | Synopsis |
|---|---|
|
Package admincli implements the "pulsequorum admin" subcommands for recovery tasks (FA-OBS-04, ADR 0019).
|
Package admincli implements the "pulsequorum admin" subcommands for recovery tasks (FA-OBS-04, ADR 0019). |
|
Package aggregator derives the consensus status of the monitors from the heartbeats of all responsible nodes and records status changes and incidents via Raft (FA-CON-01/02/03/05/06, FA-INC-01, ADR 0021).
|
Package aggregator derives the consensus status of the monitors from the heartbeats of all responsible nodes and records status changes and incidents via Raft (FA-CON-01/02/03/05/06, FA-INC-01, ADR 0021). |
|
Package alert delivers notifications: Shoutrrr and webhook senders, the JSON-safe webhook templates, secret masking and the leader's outbox dispatcher (ADR 0014, FA-ALR-*).
|
Package alert delivers notifications: Shoutrrr and webhook senders, the JSON-safe webhook templates, secret masking and the leader's outbox dispatcher (ADR 0014, FA-ALR-*). |
|
Package api implements the REST API defined in api/openapi.yaml on top of the generated strict server (ADR 0003).
|
Package api implements the REST API defined in api/openapi.yaml on top of the generated strict server (ADR 0003). |
|
gen
Package gen provides primitives to interact with the openapi HTTP API.
|
Package gen provides primitives to interact with the openapi HTTP API. |
|
internal/stubgen
command
Command stubgen writes unimplemented.go: one 501 stub per operation of gen.StrictServerInterface, so new OpenAPI operations compile immediately.
|
Command stubgen writes unimplemented.go: one 501 stub per operation of gen.StrictServerInterface, so new OpenAPI operations compile immediately. |
|
Package auth defines the authenticated principal and the role model (Konzept 12.2, FA-AUTH-09).
|
Package auth defines the authenticated principal and the role model (Konzept 12.2, FA-AUTH-09). |
|
oidc
Package oidc authenticates requests with JWT access tokens of an external OpenID Connect provider (ADR 0027).
|
Package oidc authenticates requests with JWT access tokens of an external OpenID Connect provider (ADR 0027). |
|
oidctest
Package oidctest provides a fake OpenID Connect identity provider for tests.
|
Package oidctest provides a fake OpenID Connect identity provider for tests. |
|
Package authswitch holds the leader tasks that run after a cluster moved from AUTH_MODE=local to oidc (ADR 0032, FA-AUTH-08).
|
Package authswitch holds the leader tasks that run after a cluster moved from AUTH_MODE=local to oidc (ADR 0032, FA-AUTH-08). |
|
Package backoff provides exponential backoff with jitter and context-aware sleeping.
|
Package backoff provides exponential backoff with jitter and context-aware sleeping. |
|
Package checker defines the monitor type plugins (Konzept 11.2, FA-CHK-01).
|
Package checker defines the monitor type plugins (Konzept 11.2, FA-CHK-01). |
|
builtin
Package builtin registers all built-in monitor types with checker.Default.
|
Package builtin registers all built-in monitor types with checker.Default. |
|
dnscheck
Package dnscheck implements the DNS monitor type (FA-CHK-40/41).
|
Package dnscheck implements the DNS monitor type (FA-CHK-40/41). |
|
httpcheck
Package httpcheck implements the HTTP(S) monitor type (FA-CHK-10..15).
|
Package httpcheck implements the HTTP(S) monitor type (FA-CHK-10..15). |
|
icmpcheck
Package icmpcheck implements the ICMP (ping) monitor type (FA-CHK-30/31).
|
Package icmpcheck implements the ICMP (ping) monitor type (FA-CHK-30/31). |
|
tcpcheck
Package tcpcheck implements the TCP monitor type (FA-CHK-20).
|
Package tcpcheck implements the TCP monitor type (FA-CHK-20). |
|
Package cluster contains the Raft consensus layer: the FSM that materializes data class A into state.db and the node that runs Raft (ADR 0005, 0012).
|
Package cluster contains the Raft consensus layer: the FSM that materializes data class A into state.db and the node that runs Raft (ADR 0005, 0012). |
|
Package clusterhost assembles the cluster side of a voter: join, master key hand-over, the mTLS cluster port with Raft and ClusterService, the CA and the node certificate (ADR 0005, 0006, 0011).
|
Package clusterhost assembles the cluster side of a voter: join, master key hand-over, the mTLS cluster port with Raft and ClusterService, the CA and the node certificate (ADR 0005, 0006, 0011). |
|
Package clusternet serves the cluster port (ADR 0006): one TLS 1.3 listener with mutual authentication against the cluster CA, multiplexed by ALPN into Raft ("uc-raft/1", voters only) and gRPC ("h2", authorized per RPC).
|
Package clusternet serves the cluster port (ADR 0006): one TLS 1.3 listener with mutual authentication against the cluster CA, multiplexed by ALPN into Raft ("uc-raft/1", voters only) and gRPC ("h2", authorized per RPC). |
|
Package clusterpki runs the cluster CA on top of the replicated state (ADR 0006, FA-PKI-01..04): it creates the CA at bootstrap, issues and redeems join tokens, issues and renews node certificates, keeps the revocation list at hand for TLS handshakes and manages this node's own certificate.
|
Package clusterpki runs the cluster CA on top of the replicated state (ADR 0006, FA-PKI-01..04): it creates the CA at bootstrap, issues and redeems join tokens, issues and renews node certificates, keeps the revocation list at hand for TLS handshakes and manages this node's own certificate. |
|
Package config loads and validates the node configuration from environment variables.
|
Package config loads and validates the node configuration from environment variables. |
|
Package configsecret protects secrets inside monitor configurations (ADR 0015).
|
Package configsecret protects secrets inside monitor configurations (ADR 0015). |
|
Package degraded decides whether this voter is in the degraded mode of ADR 0024: it has known no leader for a while, so the cluster cannot decide alerts.
|
Package degraded decides whether this voter is in the degraded mode of ADR 0024: it has known no leader for a while, so the cluster cannot decide alerts. |
|
Package diskstat reports the free space of the file system that holds a path (ADR 0025, DISK_FREE_ALERT).
|
Package diskstat reports the free space of the file system that holds a path (ADR 0025, DISK_FREE_ALERT). |
|
Package maintenance computes when maintenance windows are active (FA-MNT-01).
|
Package maintenance computes when maintenance windows are active (FA-MNT-01). |
|
Package membership changes the voter set of the cluster (ADR 0005 point 7, ADR 0012 A3–A5, FA-CLU-03/04/08/10): joining nodes enter as nonvoters and are promoted once they caught up, changes are serialized, nodes are only removed by a platform admin and are revoked with it.
|
Package membership changes the voter set of the cluster (ADR 0005 point 7, ADR 0012 A3–A5, FA-CLU-03/04/08/10): joining nodes enter as nonvoters and are promoted once they caught up, changes are serialized, nodes are only removed by a platform admin and are revoked with it. |
|
Package metrics exposes the Prometheus metrics of a node (FA-OBS-02, ADR 0025 section 7).
|
Package metrics exposes the Prometheus metrics of a node (FA-OBS-02, ADR 0025 section 7). |
|
Package node manages the persistent identity of a node.
|
Package node manages the persistent identity of a node. |
|
pb
|
|
|
Package pki implements the cluster's own certificate authority (ADR 0006, FA-PKI-01..04): an ECDSA P-256 CA created at bootstrap, node certificates issued from CSRs, peer verification against the CA bundle and the revocation list, and one-time join tokens that pin the CA fingerprint.
|
Package pki implements the cluster's own certificate authority (ADR 0006, FA-PKI-01..04): an ECDSA P-256 CA created at bootstrap, node certificates issued from CSRs, peer verification against the CA bundle and the revocation list, and one-time join tokens that pin the CA fingerprint. |
|
Package probe implements the client-side probe runtime (ADR 0034, ADR 0035): joining a cluster, managing the voter candidate list, maintaining the local heartbeat buffer, streaming monitor assignments, and uploading heartbeats with keepalive, tick-timeout failover, and CA bundle verification.
|
Package probe implements the client-side probe runtime (ADR 0034, ADR 0035): joining a cluster, managing the voter candidate list, maintaining the local heartbeat buffer, streaming monitor assignments, and uploading heartbeats with keepalive, tick-timeout failover, and CA bundle verification. |
|
Package probegw implements the voter-side ProbeService gRPC gateway (ADR 0034, ADR 0035): probe verification, monitor assignment streaming, keepalive ticks, and validated heartbeat ingestion.
|
Package probegw implements the voter-side ProbeService gRPC gateway (ADR 0034, ADR 0035): probe verification, monitor assignment streaming, keepalive ticks, and validated heartbeat ingestion. |
|
Package provision creates tenants for Zitadel organizations on their first login (FA-TEN-03, ADR 0029).
|
Package provision creates tenants for Zitadel organizations on their first login (FA-TEN-03, ADR 0029). |
|
Package ratelimit provides a per-key token-bucket rate limiter.
|
Package ratelimit provides a per-key token-bucket rate limiter. |
|
Package replication distributes heartbeats between voters outside of Raft (data class B, ADR 0006, ADR 0012 B2/B3/B6).
|
Package replication distributes heartbeats between voters outside of Raft (data class B, ADR 0006, ADR 0012 B2/B3/B6). |
|
Package scheduler runs the checks this node is responsible for (FA-SCH-*).
|
Package scheduler runs the checks this node is responsible for (FA-SCH-*). |
|
Package secrets implements envelope encryption for secrets stored in the replicated state (ADR 0011, FA-SEC-SEC): a master key (KEK) wraps data encryption keys (DEKs), and DEKs encrypt individual values with AES-256-GCM.
|
Package secrets implements envelope encryption for secrets stored in the replicated state (ADR 0011, FA-SEC-SEC): a master key (KEK) wraps data encryption keys (DEKs), and DEKs encrypt individual values with AES-256-GCM. |
|
Package selfcheck probes the reference targets of a node to tell whether the node itself has lost its connectivity (ADR 0022, FA-CON-04).
|
Package selfcheck probes the reference targets of a node to tell whether the node itself has lost its connectivity (ADR 0022, FA-CON-04). |
|
Package selfhealth decides on the leader which voters are impaired in their connectivity (FA-CON-04, ADR 0022).
|
Package selfhealth decides on the leader which voters are impaired in their connectivity (FA-CON-04, ADR 0022). |
|
Package server provides the HTTP server of a voter: REST API, health endpoints, runtime frontend configuration and the embedded SPA.
|
Package server provides the HTTP server of a voter: REST API, health endpoints, runtime frontend configuration and the embedded SPA. |
|
Package store defines the persistence interfaces and records (ADR 0004).
|
Package store defines the persistence interfaces and records (ADR 0004). |
|
sqlite
Package sqlite implements the store interfaces on SQLite with the CGO-free modernc.org/sqlite driver (ADR 0004, 0013).
|
Package sqlite implements the store interfaces on SQLite with the CGO-free modernc.org/sqlite driver (ADR 0004, 0013). |
|
storetest
Package storetest is the shared test suite for every store implementation (ADR 0004, NFA-PORT-03).
|
Package storetest is the shared test suite for every store implementation (ADR 0004, NFA-PORT-03). |
|
Package stream fans out live events (heartbeats, status changes, incidents) to the WebSocket clients of this node (FA-API-04).
|
Package stream fans out live events (heartbeats, status changes, incidents) to the WebSocket clients of this node (FA-API-04). |
|
Package sysalert evaluates the system alerts of the cluster (FA-OBS-01, FA-REP-05, FA-REP-06, FA-PKI-06, ADR 0025).
|
Package sysalert evaluates the system alerts of the cluster (FA-OBS-01, FA-REP-05, FA-REP-06, FA-PKI-06, ADR 0025). |
|
Package tenant holds the rules for tenants, plans and their limits (ADR 0029).
|
Package tenant holds the rules for tenants, plans and their limits (ADR 0029). |
|
Package tenantpurge deletes the metrics of deleted tenants on every node and keeps heartbeats of deleted tenants out of metrics.db (ADR 0029).
|
Package tenantpurge deletes the metrics of deleted tenants on every node and keeps heartbeats of deleted tenants out of metrics.db (ADR 0029). |
|
Package uptime computes uptime and latency from heartbeats and the consensus status history, maintains the hourly and daily rollups, compacts old raw data and enforces retention (FA-UPT-01..06).
|
Package uptime computes uptime and latency from heartbeats and the consensus status history, maintains the hourly and daily rollups, compacts old raw data and enforces retention (FA-UPT-01..06). |
|
Package version exposes build metadata injected via -ldflags.
|
Package version exposes build metadata injected via -ldflags. |
|
Package webui serves the embedded Angular single-page application.
|
Package webui serves the embedded Angular single-page application. |
Click to show internal directories.
Click to hide internal directories.