UNPKG

939 BTypeScriptView Raw
1import { ProgressLog } from "@atomist/sdm";
2import { S3 } from "aws-sdk";
3import { PublishToS3Options } from "./options";
4declare type QuantityDeleted = number;
5declare type SuccessfullyPushedKey = string;
6declare type Warning = string;
7export declare function deleteKeys(s3: S3, log: ProgressLog, params: PublishToS3Options, keysToDelete: S3.ObjectIdentifier[]): Promise<[QuantityDeleted, Warning[]]>;
8export declare function gatherKeysToDelete(s3: S3, log: ProgressLog, keysToKeep: SuccessfullyPushedKey[], params: PublishToS3Options): Promise<[S3.ObjectIdentifier[], Warning[]]>;
9/**
10 * Remove objects that either have no key or match a key in `keys`.
11 *
12 * @param keys Keys that should be removed from `objects`
13 * @param objects Array to filter
14 * @return Array of object identifiers
15 */
16export declare function filterKeys(keys: string[], objects: S3.Object[]): S3.ObjectIdentifier[];
17export {};
18//# sourceMappingURL=deleteS3.d.ts.map
\No newline at end of file