UNPKG

@bitblit/ratchet-aws

Version:

Common tools for use with AWS browser and node

22 lines (21 loc) 712 B
import { S3Client } from '@aws-sdk/client-s3'; export interface S3LocationSyncRatchetConfig { srcS3: S3Client; srcBucket: string; srcPrefix: string; dstS3: S3Client; dstBucket: string; dstPrefix: string; maxNumThreads?: number; maxRetries?: number; } export declare class S3LocationSyncRatchet { private config; constructor(config: S3LocationSyncRatchetConfig); updateSrcPrefix(prefix: string): void; updateDstPrefix(prefix: string): void; copyObject(key: string, size: number, express?: boolean): Promise<void>; listObjects(bucket: string, prefix: string, s3: S3Client): Promise<any>; startSyncing(): Promise<boolean>; private compareSrcAndDst; }