Skip to main content

Module kv

Module kv 

Source
Expand description

NATS KV bucket name + key helpers (spec §2.3.2).

NATS KV bucket names must be domain-safe ASCII (a-z, A-Z, 0-9, _, -), so the spec’s dotted names (script.current, script.status) are flattened to underscore form here.

Constants§

BUCKET_AGENTS_STATE
BUCKET_AGENT_CONFIG
BUCKET_AGENT_GROUPS
BUCKET_JOBS
Job catalog (v0.15) — operator-registered Manifests, keyed by manifest.id. Schedules and ad-hoc kanade run --job-id ... look jobs up here; the wire never round-trips an inline Manifest body through a Schedule again. Editing a job in-place retroactively changes what future schedule fires deploy.
BUCKET_SCHEDULES
BUCKET_SCRIPT_CURRENT
BUCKET_SCRIPT_STATUS
KEY_AGENT_CONFIG_GLOBAL
Sprint 6 layered-config keys inside BUCKET_AGENT_CONFIG:
KEY_AGENT_TARGET_VERSION
Key inside BUCKET_AGENT_CONFIG carrying the broadcast target version. Agents watch this key and self-update when their running version drifts.
OBJECT_AGENT_RELEASES
Object Store bucket holding raw agent binaries (one object per version, e.g. 0.2.0 → file bytes).
PREFIX_AGENT_CONFIG_GROUPS
PREFIX_AGENT_CONFIG_PCS
SCRIPT_STATUS_ACTIVE
SCRIPT_STATUS_REVOKED
STREAM_AUDIT
STREAM_EVENTS
STREAM_EXEC
STREAM_INVENTORY
STREAM_RESULTS

Functions§

agent_config_group_key
agent_config_pc_key
parse_agent_config_group_key
Inverse of agent_config_group_key — returns the bare group name if key carries the groups-scope prefix, else None.
parse_agent_config_pc_key
Inverse of agent_config_pc_key.