@backblaze-labs/b2-sdk - v0.6.0
    Preparing search index...

    Class InMemoryAccountInfo

    In-memory implementation of AccountInfo. Keeps the authorization response and upload URL pools in private fields. Suitable for short-lived processes or tests; state is lost when the process exits.

    Implements

    Index
    • Bucket IDs the key is restricted to, or null if unrestricted.

      Returns readonly BucketId[] | null

      The restricted bucket identifiers, or null if the key is unrestricted.

      Error if not yet authorized.

    • Server-recommended part size for large file uploads, in bytes.

      Returns number

      The server-recommended part size in bytes.

      Error if not yet authorized.

    • Base URL for the S3-compatible API.

      Returns string

      The base URL for the S3-compatible API.

      Error if not yet authorized.

    • Store a fresh authorization response, replacing any previous state. Responses with diagnostic hooks, accessors, or non-enumerable tokens are copied into plain stored state. Valid plain responses retain their existing identity behavior.

      Parameters

      Returns void

      TypeError if the response is marked as diagnostic or has no string token.