APIClient

2/1/2024 - 2:45:15 AM

APIClient

Constructors

Properties

Methods

  • Download a chunk buffer.

    Parameters

    • param0: {
          abortSignal?: AbortSignal;
          bucket: string;
          chunk: number;
          maxRetries?: number;
          onProgress?: ProgressCallback;
          onProgressId?: string;
          region: string;
          retryTimeout?: number;
          timeout?: number;
          uuid: string;
      }

    Returns Promise<Buffer>

  • Downloads a file chunk to a local path.

    Parameters

    • param0: {
          abortSignal?: AbortSignal;
          bucket: string;
          chunk: number;
          maxRetries?: number;
          onProgress?: ProgressCallback;
          onProgressId?: string;
          region: string;
          retryTimeout?: number;
          timeout?: number;
          to: string;
          uuid: string;
      }

    Returns Promise<void>

  • Downloads a file chunk and returns a readable stream.

    Parameters

    • param0: {
          abortSignal?: AbortSignal;
          bucket: string;
          chunk: number;
          maxRetries?: number;
          onProgress?: ProgressCallback;
          onProgressId?: string;
          region: string;
          retryTimeout?: number;
          timeout?: number;
          uuid: string;
      }

    Returns Promise<ReadableStream<any> | ReadStream>

  • Upload a chunk buffer.

    Parameters

    • param0: {
          abortSignal?: AbortSignal;
          buffer: Buffer;
          index: number;
          maxRetries?: number;
          onProgress?: ProgressCallback;
          onProgressId?: string;
          parent: string;
          retryTimeout?: number;
          timeout?: number;
          uploadKey: string;
          uuid: string;
      }

    Returns Promise<UploadChunkResponse>

MMNEPVFCICPMFPCPTTAAATR