File size: 295 Bytes
8630bef
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
from .google_cloud_storage import GoogleCloudStorage

storage_map = {
    "gcp": GoogleCloudStorage,
}


def get_cloud_storage(ingestion_mode):
    if ingestion_mode not in storage_map:
        raise ValueError(f"Invalid storage mode: {ingestion_mode}")
    return storage_map[ingestion_mode]()