Client to store and retrieve Objects

interface ObjectStorageClient {
    delete(objectMeta: ObjectStorageObjectMeta, options?: ObjectStorageOptions): Promise<void>;
    destroy(): void;
    getBlob(objectMeta: ObjectStorageObjectMeta, options?: ObjectStorageGetBlobOptions): Promise<Blob>;
    getList(options?: ObjectStorageOptions): Promise<ObjectStorageListResponse>;
    store(object: Blob, options?: ObjectStorageStoreOptions): Promise<ObjectStorageResponse>;
}

Methods

  • Delete an object

    Parameters

    • objectMeta: ObjectStorageObjectMeta

      Object meta information

    • Optionaloptions: ObjectStorageOptions

      Request options

    Returns Promise<void>

  • Destroy the client. Always call this when the client is not used anymore. When the context is destroyed, this is called automatically

    Returns void

  • Get an Object

    Parameters

    Returns Promise<Blob>