pub struct AccountNames { /* private fields */ }Expand description
Account-derived names. Derivation never normalizes input.
Implementations§
Source§impl AccountNames
impl AccountNames
pub fn derive(account: &str) -> Result<Self, NamingError>
pub fn from_roster_host_id(roster_host_id: &str) -> Result<Self, NamingError>
pub fn account(&self) -> &str
pub fn account_upper(&self) -> &str
pub fn streams(&self) -> &StreamNames
pub fn buckets(&self) -> &BucketNames
pub fn room_post(&self, room_id: &str) -> Result<String, NamingError>
pub fn room_subscription(&self, room_id: &str) -> Result<String, NamingError>
pub fn room_binding(&self) -> String
pub fn wake_fire(&self, agent_id: &str) -> Result<String, NamingError>
pub fn wake_binding(&self) -> String
pub fn peer_delivery( &self, agent_id: &str, session_id: &str, ) -> Result<String, NamingError>
pub fn peer_filter(&self, agent_id: &str) -> Result<String, NamingError>
pub fn peer_subscription(&self, agent_id: &str) -> Result<String, NamingError>
pub fn peer_binding(&self) -> String
pub fn effect_intent( &self, agent_id: &str, session_id: &str, ) -> Result<String, NamingError>
pub fn effect_filter(&self, agent_id: &str) -> Result<String, NamingError>
pub fn effect_publish_grant( &self, agent_id: &str, ) -> Result<String, NamingError>
pub fn effect_binding(&self) -> String
pub fn effect_dead(&self) -> String
Sourcepub fn event_subject(
&self,
module_id: &str,
event: &str,
version: u32,
) -> Result<String, NamingError>
pub fn event_subject( &self, module_id: &str, event: &str, version: u32, ) -> Result<String, NamingError>
The subject one module publishes one event on:
ck.{acct}.event.{module_id}.{event}.v{version}.
The event name must be a single subject token and the version at least 1, so every event subject has exactly six tokens and the version is always the last one.
Sourcepub fn event_publish_grant(
&self,
module_id: &str,
) -> Result<String, NamingError>
pub fn event_publish_grant( &self, module_id: &str, ) -> Result<String, NamingError>
The publish grant covering every event subject of one module.
pub fn event_binding(&self) -> String
pub fn sentinel_ping(&self) -> String
pub fn consumer_name(agent_id: &str) -> Result<String, NamingError>
Sourcepub fn module_consumer_name(module_id: &str) -> Result<String, NamingError>
pub fn module_consumer_name(module_id: &str) -> Result<String, NamingError>
The durable a module reads a non-agent stream through, m_{module_id}.
The m_ prefix keeps module durables apart from the agent namespace
c_. They live on the event stream (one per flow-engine module) and on
the ROOM stream (the delivery authority’s one durable, filtered on
room_binding), never on an agent stream.
Sourcepub fn census_key(module_id: &str) -> Result<String, NamingError>
pub fn census_key(module_id: &str) -> Result<String, NamingError>
The census key for one live module inside buckets().census.
Issuance writes one record per module under this key (history 1, no TTL) so revocation can find the credential a module currently holds. The key is the module id itself, refused unless it is a single plain token: a dot or wildcard would address a different key or several at once.
Sourcepub fn census_subject(&self, module_id: &str) -> Result<String, NamingError>
pub fn census_subject(&self, module_id: &str) -> Result<String, NamingError>
The KV subject a census write for module_id is published on.
pub fn process_record_name( module_id: &str, generation: u64, epoch: u64, ) -> Result<String, NamingError>
the foundation amendment keeps no process records in the vault; per-spawn credentials are held by ck-bus in memory
pub fn leaf_record_name(roster_host_id: &str) -> Result<String, NamingError>
vault roots are credential ids from the operator ceremony; use root_credential_id
pub fn operator_record_name(&self) -> String
vault roots are credential ids from the operator ceremony; use root_credential_id
pub fn account_record_name(&self) -> String
vault roots are credential ids from the operator ceremony; use root_credential_id
pub fn system_account_record_name(&self) -> String
vault roots are credential ids from the operator ceremony; use root_credential_id