Skip to main content

split_namespace

Function split_namespace 

Source
pub fn split_namespace(ns: &str) -> Result<(&str, &str), AdminError>
Expand description

Split a tenant/namespace string into its two segments.

Exposed for the CLI (and any other admin-client wrapper) so the tenant/namespace shape used by the namespace-scoped list verbs (functions list, sources list, sinks list, packages list) validates against the same validate_segment rules every admin method enforces internally — no parallel parsers, no divergent error categories.