Skip to main content

encode_cloud_ranges

Function encode_cloud_ranges 

Source
pub fn encode_cloud_ranges(ranges: &[(String, Option<&str>)]) -> String
Expand description

The cloud_ranges_v2 payload: comma-joined, lexically sorted entries.

Each entry is "<network>" or "<network>|<region>" (the reference ",".join(sorted(_encode_cached(ranges, regions)))). A region value carries at most one | annotation; callers MUST NOT let a region contain | (the reference partition semantics).