Exemplo n.º 1
0
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)
    }
Exemplo n.º 2
0
 def _list_bucket(self, service):
     return [bucket.name for bucket in BucketIterator(service)]
Exemplo n.º 3
0
 def _get_bucket_list(self, service):
     return [b.name for b in BucketIterator(service)]