Scaffolder workspace serialization

Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
This commit is contained in:
bnechyporenko
2024-04-30 21:10:30 +02:00
parent e46d3fe011
commit e4b50ab39b
13 changed files with 292 additions and 4 deletions
+4
View File
@@ -361,12 +361,16 @@ export interface TaskContext {
| undefined
>;
// (undocumented)
getWorkspace?(options: { taskId: string }): Promise<Buffer | undefined>;
// (undocumented)
getWorkspaceName(): Promise<string>;
// (undocumented)
isDryRun?: boolean;
// (undocumented)
secrets?: TaskSecrets;
// (undocumented)
serializeWorkspace?(options: { path: string }): Promise<void>;
// (undocumented)
spec: TaskSpec;
// (undocumented)
updateCheckpoint?(
@@ -141,6 +141,13 @@ export interface TaskContext {
},
): Promise<void>;
serializeWorkspace?(options: { path: string }): Promise<void>;
rehydrateWorkspace?(options: {
taskId: string;
targetPath: string;
}): Promise<void>;
getWorkspaceName(): Promise<string>;
getInitiatorCredentials(): Promise<BackstageCredentials>;