OINO TS
    Preparing search index...

    Class OINOBlobAzure

    Azure Blob Storage implementation of OINOBlob.

    Authenticates using an Azure Storage connection string. Connection parameters map as:

    • params.url → blob service endpoint, e.g. https://<account>.blob.core.windows.net
    • params.container → container name
    • params.connectionStr → Azure Storage connection string (e.g. DefaultEndpointsProtocol=https;AccountName=...)

    Register and use via the factory:

    import { OINOBlobFactory } from "@oino-ts/blob"
    import { OINOBlobAzure } from "@oino-ts/blob-azure"

    OINOBlobFactory.registerBlob("OINOBlobAzure", OINOBlobAzure)

    const blob = await OINOBlobFactory.createBlob({
    type: "OINOBlobAzure",
    container: "my-container",
    credentials: either connectionStr or url and clientId
    })
    const api = await OINOBlobFactory.createApi(blob, {
    apiName: "files",
    tableName: "uploads/" // blob prefix / folder
    })

    Hierarchy

    • unknown
      • OINOBlobAzure
    Index

    Constructors

    Methods

    • Initialise the Azure SDK client. Does not perform any network call.

      Returns Promise<OINOResult>

    • Delete a named blob.

      Parameters

      • name: string

        full blob name (path within the container)

      Returns Promise<void>

    • Release the client reference (Azure SDK is stateless per-request so nothing to close).

      Returns Promise<void>

    • Download the raw content of a named blob.

      Parameters

      • name: string

        full blob name (path within the container)

      Returns Promise<OINOBlobFetchResult>

    • Attach a static OINOBlobDataModel to the given API, adding all five standard fields that Azure Blob Storage returns in a listing.

      Parameters

      • api: OINOApi

        the OINOBlobApi whose data model is to be initialised

      Returns Promise<void>

    • List all blobs, applying native Azure query filtering where possible and in-memory result filtering for predicates that cannot be expressed as a native query.

      • The name field supports server-side prefix filtering via the Azure listBlobsFlat prefix option (query filtering).
      • All other field predicates (etag, lastModified, contentLength, contentType) are evaluated in-memory after the listing (result filtering).

      Parameters

      • Optionalfilter: OINOQueryFilter

        optional query filter to apply

      Returns Promise<OINOBlobEntry[]>

    • Upload (create or replace) a blob with the given binary content.

      Parameters

      • name: string

        full blob name (path within the container)

      • content: Uint8Array

        binary content to store

      • contentType: string

        MIME type of the content (e.g. "image/jpeg")

      Returns Promise<void>