1 | import { ExecuteGoal, GoalWithFulfillment, PredicatedGoalDefinition, ProjectAwareGoalInvocation, SoftwareDeliveryMachine } from "@atomist/sdm";
|
2 | import { S3 } from "aws-sdk";
|
3 | import { PublishToS3Options } from "./options";
|
4 |
|
5 |
|
6 |
|
7 | export declare type GlobPatterns = string[];
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | export declare class PublishToS3 extends GoalWithFulfillment {
|
14 | private readonly options;
|
15 | constructor(options: PublishToS3Options & PredicatedGoalDefinition);
|
16 | /**
|
17 | * Called by the SDM on initialization. This function calls
|
18 | * `super.register` and adds a startup listener to the SDM. The
|
19 | * startup listener registers a default goal fulfillment if there
|
20 | * is none that suppresses logs posted to chat.
|
21 | */
|
22 | register(sdm: SoftwareDeliveryMachine): void;
|
23 | }
|
24 | export declare function executePublishToS3(inputParams: PublishToS3Options): ExecuteGoal;
|
25 | interface PushToS3Result {
|
26 | bucketUrl: string;
|
27 | warnings: string[];
|
28 | fileCount: number;
|
29 | deleted: number;
|
30 | }
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 | export declare function pushToS3(s3: S3, inv: ProjectAwareGoalInvocation, params: PublishToS3Options): Promise<PushToS3Result>;
|
41 | export {};
|