feat: add corestore volume driver

This commit is contained in:
2026-05-02 18:58:21 +00:00
parent 29f0d94e86
commit 02d1b77ae8
6 changed files with 644 additions and 7 deletions
+51
View File
@@ -1,5 +1,31 @@
export type TCoreStoreCapability = 'database' | 'objectstorage';
export interface ICoreStoreVolumeCreateRequest {
name: string;
opts?: Record<string, string>;
options?: Record<string, string>;
serviceId?: string;
serviceName?: string;
mountPath?: string;
backup?: boolean;
}
export interface ICoreStoreVolumeRemoveRequest {
name: string;
}
export interface ICoreStoreVolumeSnapshotRequest {
name: string;
tags?: Record<string, string>;
snapshotName?: string;
}
export interface ICoreStoreVolumeRestoreRequest {
name: string;
snapshotId: string;
clear?: boolean;
}
export interface ICoreStoreProvisionRequest {
serviceId: string;
serviceName?: string;
@@ -47,9 +73,34 @@ export interface ICoreStoreServiceManifestEntry {
updatedAt: number;
}
export interface ICoreStoreVolumeSnapshotEntry {
snapshotId: string;
snapshotName?: string;
createdAt: number;
originalSize: number;
storedSize: number;
tags: Record<string, string>;
}
export interface ICoreStoreVolumeManifestEntry {
name: string;
directoryName: string;
mountpoint: string;
options: Record<string, string>;
serviceId?: string;
serviceName?: string;
mountPath?: string;
backup: boolean;
mountIds: string[];
snapshots: ICoreStoreVolumeSnapshotEntry[];
createdAt: number;
updatedAt: number;
}
export interface ICoreStoreManifest {
version: 1;
services: Record<string, ICoreStoreServiceManifestEntry>;
volumes: Record<string, ICoreStoreVolumeManifestEntry>;
}
export interface ICoreStoreProvisionResponse {