MCPcopy
hub / github.com/apify/crawlee / openStorage

Method openStorage

packages/core/src/storages/storage_manager.ts:37–44  ·  view source on GitHub ↗
(
        storageClass: Constructor<T>,
        idOrName?: string,
        client?: StorageClient,
        config = Configuration.getGlobalConfig(),
    )

Source from the content-addressed store, hash-verified

35 }
36
37 static async openStorage<T extends IStorage>(
38 storageClass: Constructor<T>,
39 idOrName?: string,
40 client?: StorageClient,
41 config = Configuration.getGlobalConfig(),
42 ): Promise<T> {
43 return this.getManager(storageClass, config).openStorage(idOrName, client);
44 }
45
46 static getManager<T extends IStorage>(
47 storageClass: Constructor<T>,

Callers 3

openFunction · 0.80
openMethod · 0.80
openMethod · 0.80

Calls 6

getManagerMethod · 0.95
_getOrCreateStorageMethod · 0.95
_addStorageToCacheMethod · 0.95
getGlobalConfigMethod · 0.80
getStorageClientMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected