Interface StorageLocationStrategy

Interface used to find the storage a specific identifier is located in.

interface StorageLocationStrategy {
    getStorageIdentifier: ((identifier: ResourceIdentifier) => Promise<ResourceIdentifier>);
}

Implemented by

Properties

getStorageIdentifier: ((identifier: ResourceIdentifier) => Promise<ResourceIdentifier>)

Returns the identifier of the storage that contains the given resource. Can error if the input identifier is not part of any storage.