Client to store and retrieve Objects

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

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>

  • Get a ZIP file with multiple objects

    Parameters

    • objectMeta: ({ outputDir?: string } & ObjectStorageObjectMeta)[]

      An array of object metadata, where each object can optionally specify an outputDir within the ZIP.

    • Optionaloptions: ObjectStorageGetBlobOptions

      Request options

    Returns Promise<Blob>

  • Update the tags of an object.

    Parameters

    Returns Promise<void>