Interface IExternalStorageConnection

The interface for the external storage connection.

interface IExternalStorageConnection {
    close(): void;
    get(path: string): Promise<IFile>;
    getName(): string;
    getOwnerId(): string;
    list(path: string, options?: IExternalStorageListOptions): Promise<ObjectDescriptor[]>;
    subscribe(label: string, callback: ((data: StorageEvent) => void)): void;
    unsubscribe(label: string): void;
}

Hierarchy (view full)

Methods

  • Close the database.

    Returns void

  • Get an object from the bucket.

    Parameters

    • path: string

      The path of the object.

    Returns Promise<IFile>

    The object.

  • Get the name of the database.

    Returns string

  • Subscribe to the bucket events.

    Parameters

    • label: string

      The label of the subscriber.

    • callback: ((data: StorageEvent) => void)

      The callback function.

    Returns void

  • Unsubscribe from the bucket.

    Parameters

    • label: string

      The label of the subscriber.

    Returns void