Scaffolder workspace serialization
Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
This commit is contained in:
@@ -418,8 +418,6 @@ export class DatabaseTaskStore implements TaskStore {
|
||||
| undefined
|
||||
>;
|
||||
// (undocumented)
|
||||
getWorkspace?(options: { taskId: string }): Promise<Buffer | undefined>;
|
||||
// (undocumented)
|
||||
heartbeatTask(taskId: string): Promise<void>;
|
||||
// (undocumented)
|
||||
list(options: { createdBy?: string }): Promise<{
|
||||
@@ -441,6 +439,11 @@ export class DatabaseTaskStore implements TaskStore {
|
||||
ids: string[];
|
||||
}>;
|
||||
// (undocumented)
|
||||
rehydrateWorkspace?(options: {
|
||||
taskId: string;
|
||||
targetPath: string;
|
||||
}): Promise<void>;
|
||||
// (undocumented)
|
||||
saveTaskState(options: { taskId: string; state?: JsonObject }): Promise<void>;
|
||||
// (undocumented)
|
||||
serializeWorkspace(options: { path: string; taskId: string }): Promise<void>;
|
||||
@@ -562,10 +565,13 @@ export class TaskManager implements TaskContext_2 {
|
||||
| undefined
|
||||
>;
|
||||
// (undocumented)
|
||||
getWorkspace(options: { taskId: string }): Promise<Buffer | undefined>;
|
||||
// (undocumented)
|
||||
getWorkspaceName(): Promise<string>;
|
||||
// (undocumented)
|
||||
rehydrateWorkspace(options: {
|
||||
taskId: string;
|
||||
targetPath: string;
|
||||
}): Promise<void>;
|
||||
// (undocumented)
|
||||
get secrets(): TaskSecrets_2 | undefined;
|
||||
// (undocumented)
|
||||
serializeWorkspace?(options: { path: string }): Promise<void>;
|
||||
@@ -621,8 +627,6 @@ export interface TaskStore {
|
||||
| undefined
|
||||
>;
|
||||
// (undocumented)
|
||||
getWorkspace?(options: { taskId: string }): Promise<Buffer | undefined>;
|
||||
// (undocumented)
|
||||
heartbeatTask(taskId: string): Promise<void>;
|
||||
// (undocumented)
|
||||
list?(options: { createdBy?: string }): Promise<{
|
||||
@@ -643,6 +647,11 @@ export interface TaskStore {
|
||||
ids: string[];
|
||||
}>;
|
||||
// (undocumented)
|
||||
rehydrateWorkspace?(options: {
|
||||
taskId: string;
|
||||
targetPath: string;
|
||||
}): Promise<void>;
|
||||
// (undocumented)
|
||||
saveTaskState?(options: {
|
||||
taskId: string;
|
||||
state?: JsonObject;
|
||||
|
||||
@@ -361,12 +361,15 @@ export interface TaskContext {
|
||||
| undefined
|
||||
>;
|
||||
// (undocumented)
|
||||
getWorkspace?(options: { taskId: string }): Promise<Buffer | undefined>;
|
||||
// (undocumented)
|
||||
getWorkspaceName(): Promise<string>;
|
||||
// (undocumented)
|
||||
isDryRun?: boolean;
|
||||
// (undocumented)
|
||||
rehydrateWorkspace?(options: {
|
||||
taskId: string;
|
||||
targetPath: string;
|
||||
}): Promise<void>;
|
||||
// (undocumented)
|
||||
secrets?: TaskSecrets;
|
||||
// (undocumented)
|
||||
serializeWorkspace?(options: { path: string }): Promise<void>;
|
||||
|
||||
Reference in New Issue
Block a user