Skip to main content

validate_command_target_id

Function validate_command_target_id 

Source
pub fn validate_command_target_id(resource_id: &str) -> Result<()>
Expand description

Reject a command-target resource id that would break the :-delimited key grammar used by the pending index (target:{dep}:{rid}:pending:…) and the idempotency key ({dep}:{rid}:{command}:{key}).

An id containing : could forge or collide with another target’s key segments, so it is rejected at the commands layer with a typed error. Only the delimiter that can forge index segments is enforced at this layer.