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.endpoint
in yaml -
INGEST_AWS_ACCESS_KEY
, fromingest.access_key_id
in yaml -
INGEST_AWS_SECRET_KEY
, fromingest.secret_access_key
in yaml -
INGEST_AWS_REGION
, fromingest.region
in 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.