pub fn is_valid_bucket_name(n: &str) -> bool
Expand description

Check if a bucket name is valid.

The requirements are listed here:

https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html

In the case of Garage, bucket names must not be hex-encoded 32 byte string, which is excluded thanks to the maximum length of 63 bytes given in the spec.