Signed-off-by: Sean Tan <seant@splunk.com>
This commit is contained in:
Sean Tan
2021-08-13 16:30:05 -07:00
parent 6b45ebac7f
commit 6575f2359c
2 changed files with 11 additions and 0 deletions
@@ -187,6 +187,10 @@ export class AwsS3UrlReader implements UrlReader {
const { Contents, IsTruncated, NextContinuationToken } = await this.s3
.listObjectsV2(params)
.promise();
<<<<<<< HEAD
=======
>>>>>>> First go
const responses = await Promise.all(
(Contents || []).map(({ Key }) => {
const s3Response = this.s3
@@ -174,6 +174,13 @@ export type FromReadableArrayOptions = {
etag: string;
};
export type FromReadableArrayOptions = {
// An array of readable streams
stream: Readable[];
// etag of the file tree
etag: string;
};
export interface ReadTreeResponseFactory {
fromTarArchive(options: FromArchiveOptions): Promise<ReadTreeResponse>;
fromZipArchive(options: FromArchiveOptions): Promise<ReadTreeResponse>;