feat: snapshot corestore resources
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user