New endpoint ListBuckets
We need a new endpoint named ListBuckets that would use static credentials from new settings (and different from the AWS ones):
-
INGEST_AWS_ENDPOINT, fromingest.endpointin yaml -
INGEST_AWS_ACCESS_KEY, fromingest.access_key_idin yaml -
INGEST_AWS_SECRET_KEY, fromingest.secret_access_keyin yaml -
INGEST_AWS_REGION, fromingest.regionin yaml
The endpoint would list available buckets using minio client list_buckets.
The bucket serializer would simply expose the bucket name. Buckets would be sorted alphabetically.
Bonus: If list_buckets provide the number of objects without extra queries, add it. Otherwise, forget it.