UNPKG

633 BTypeScriptView Raw
1import { RepoContext } from "../context/SdmContext";
2import { SdmGoalEvent } from "../goal/SdmGoalEvent";
3/**
4 * Key under which services can be found in goal data.
5 */
6export declare const ServiceRegistrationGoalDataKey = "@atomist/sdm/service";
7/**
8 * Register additional services for a goal.
9 * This can be used to add additional containers into k8s jobs to use during goal execution.
10 */
11export interface ServiceRegistration<T> {
12 name: string;
13 service: (goalEvent: SdmGoalEvent, repo: RepoContext) => Promise<{
14 type: string;
15 spec: T;
16 } | undefined>;
17}
18//# sourceMappingURL=ServiceRegistration.d.ts.map
\No newline at end of file