stack service and trigger service
This commit is contained in:
parent
1ed6449ac6
commit
cba12be4b1
16 changed files with 784 additions and 177 deletions
|
@ -1,20 +1,18 @@
|
|||
export class CalculationProcess {
|
||||
process: ProcessMetaData[];
|
||||
constructor(process: ProcessMetaData[]) {
|
||||
this.process = process;
|
||||
}
|
||||
}
|
||||
import { EXEC_TYPE } from "./exec_error_model.js";
|
||||
|
||||
|
||||
export interface ProcessMetaData {
|
||||
process: Process;
|
||||
trigger: Trigger;
|
||||
env: Env | null;
|
||||
stackGenerateType:StackGenerateType;
|
||||
}
|
||||
|
||||
export enum ProcessType {
|
||||
EXEC = "EXEC",
|
||||
SPAWN = "SPAWN",
|
||||
export enum StackGenerateType{
|
||||
MAP = 'MAP',
|
||||
SINGLETON = 'SINGLETON'
|
||||
}
|
||||
|
||||
export interface Env {
|
||||
ssh_key: string;
|
||||
isUserInput: boolean;
|
||||
|
@ -22,12 +20,13 @@ export interface Env {
|
|||
}
|
||||
|
||||
export interface Process {
|
||||
type: ProcessType;
|
||||
type: EXEC_TYPE;
|
||||
command: string;
|
||||
isGenerating: boolean;
|
||||
isLocaleCode: boolean;
|
||||
issueType: IssueType;
|
||||
timeout: number;
|
||||
timeout?: number;
|
||||
commit?:string | undefined;
|
||||
}
|
||||
|
||||
export enum IssueType {
|
||||
|
@ -41,5 +40,5 @@ export enum TriggerType {
|
|||
}
|
||||
export interface Trigger {
|
||||
type: TriggerType;
|
||||
value: string;
|
||||
value: string[];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue