Skip to main content

parse_gcs_buckets

Function parse_gcs_buckets 

Source
pub fn parse_gcs_buckets(body: &str) -> Result<Vec<String>, String>
Expand description

Bucket names from a Google Cloud Storage storage/v1/b response.

Tolerant on purpose. A response missing items means the project has no buckets, which is an answer rather than a failure, and an entry without a usable name is skipped rather than allowed to discard the rest of the page.