Esempio n. 1
0
 def __init__(self, name, account = "DEFAULT"):
     self.api = ObjectStorageAPI(DATABASE_NS, DATABASE_PROXY)
     self.account = account
     self.name = name
Esempio n. 2
0
 def setUp(self):
     super(TestObjectStorageAPI, self).setUp()
     self.api = ObjectStorageAPI(self.ns, endpoint=self.uri)
     self.created = list()
Esempio n. 3
0
def make_client(instance):
    endpoint = instance.get_endpoint('storage')
    client = ObjectStorageAPI(session=instance.session,
                              endpoint=endpoint,
                              namespace=instance.namespace)
    return client