Scaffolder workspace serialization
Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
This commit is contained in:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user