feat: add corestore volume driver
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user