UNPKG

790 BTypeScriptView Raw
1import { Configuration } from "@atomist/automation-client/lib/configuration";
2import { ExecuteGoalResult } from "../ExecuteGoalResult";
3import { GoalInvocation } from "../GoalInvocation";
4/**
5 * Schedule a goal in an environment (container or process) for fulfillment.
6 */
7export interface GoalScheduler {
8 /**
9 * Optionally initialize the GoalScheduler
10 * @param configuration
11 */
12 initialize?(configuration: Configuration): Promise<void>;
13 /**
14 * Indicate if this GoalScheduler supports scheduling provided goal
15 * @param gi
16 */
17 supports(gi: GoalInvocation): Promise<boolean>;
18 /**
19 * Schedule the provided goal
20 * @param gi
21 */
22 schedule(gi: GoalInvocation): Promise<ExecuteGoalResult>;
23}
24//# sourceMappingURL=GoalScheduler.d.ts.map
\No newline at end of file