Setu-TS
    Preparing search index...

    Class S3Provider

    AWS S3 storage provider.

    Supports native streaming via the facade's getStream method.

    0.1.0

    Implements

    • StorageProvider
    Index
    • Retrieves an object from S3; null when absent.

      Parameters

      • path: string

        Object key

      Returns Promise<Uint8Array<ArrayBufferLike> | null>

      The object bytes, or null

    • Creates a presigned GET URL for an S3 object.

      Parameters

      • path: string

        Object key

      • options: { expiresIn: number }

        Expiry in seconds

      Returns Promise<string>

      The presigned URL

    • Native stream download — zero-copy from S3.

      Parameters

      • path: string

        Object key

      Returns Promise<ReadableStream<Uint8Array<ArrayBufferLike>> | null>

      A ReadableStream, or null if absent

    • M70c: a client.head('')-shaped bucket probe using the existing head member. Resolves true when the bucket answers, false when it does not (or the provider is not connected).

      Returns Promise<boolean>

      true when the bucket is reachable

      0.1.0

    • Stores an object in S3, recording any content type and user metadata on the object itself — which is what makes a presigned URL render in a browser instead of downloading as application/octet-stream.

      Parameters

      • path: string

        Object key

      • data: Uint8Array

        Object bytes

      • Optionaloptions: PutObjectOptions

        Object attributes to record with the bytes

      Returns Promise<void>