Skip to main content

parse_gcp_ranges

Function parse_gcp_ranges 

Source
pub fn parse_gcp_ranges(payload: &str) -> Result<ParsedRanges, PayloadError>
Expand description

The GCP parser (fetch_gcp_ip_ranges): the prefixes[] entries’ ipv4Prefix / ipv6Prefix with the scope annotation.

§Errors

PayloadError when the body carries no prefixes array, or when a prefix does not parse (the reference ip_network raise aborts the whole fetch into its empty-set catch).