Exemplo n.º 1
0
 def get_object_store_secret_key(requestedName: str = ""):
     """Obtain object store secret key."""
     if requestedName != "" and ObjectBuckets.get(requestedName):
         return ObjectBuckets.get(requestedName).secretKey
     if len(LoadedConfig.objectStore.buckets) > 0:
         return LoadedConfig.objectStore.buckets[0].secretKey
     if LoadedConfig.objectStore.secretKey:
         return LoadedConfig.objectStore.secretKey
Exemplo n.º 2
0
 def get_object_store_access_key(requestedName: str = ""):
     """Obtain object store access key."""
     if requestedName != "":
         return ObjectBuckets.get(requestedName).accessKey
     if LoadedConfig.objectStore.accessKey:
         return LoadedConfig.objectStore.accessKey
     return LoadedConfig.objectStore.buckets[0].accessKey
Exemplo n.º 3
0
 def get_object_store_bucket(requestedName: str = ""):
     """Obtain object store bucket."""
     if ObjectBuckets.get(requestedName):
         return ObjectBuckets.get(requestedName).name
     return requestedName