feat: snapshot corestore resources

This commit is contained in:
2026-05-02 21:59:42 +00:00
parent 02d1b77ae8
commit 4eb1394dbb
4 changed files with 220 additions and 1 deletions
+26
View File
@@ -26,6 +26,31 @@ export interface ICoreStoreVolumeRestoreRequest {
clear?: boolean;
}
export interface ICoreStoreResourceSnapshotRequest {
serviceId: string;
capabilities?: TCoreStoreCapability[];
tags?: Record<string, string>;
snapshotName?: string;
}
export interface ICoreStoreResourceSnapshotEntry {
capability: TCoreStoreCapability;
resourceName: string;
snapshotId: string;
snapshotName?: string;
originalSize: number;
storedSize: number;
createdAt: number;
tags: Record<string, string>;
databaseName?: string;
bucketName?: string;
}
export interface ICoreStoreResourceRestoreRequest {
serviceId: string;
snapshots: ICoreStoreResourceSnapshotEntry[];
}
export interface ICoreStoreProvisionRequest {
serviceId: string;
serviceName?: string;
@@ -69,6 +94,7 @@ export interface ICoreStoreServiceManifestEntry {
serviceName?: string;
resources: Partial<Record<TCoreStoreCapability, TCoreStoreResource>>;
env: Record<string, string>;
snapshots?: ICoreStoreResourceSnapshotEntry[];
createdAt: number;
updatedAt: number;
}