def get_buckets(auth=None): if not auth: auth = get_auth() service = Service(auth, 'https://oss.aliyuncs.com') return { i.name: dict(name=i.name, endpoint=i.extranet_endpoint, location=i.location) for i in BucketIterator(service) }
def _list_bucket(self, service): return [bucket.name for bucket in BucketIterator(service)]
def _get_bucket_list(self, service): return [b.name for b in BucketIterator(service)]