import { AccessMode, VolumeMode, ValueOf, Translation, GenericStatusColor, GenericStatusIcon } from '@alauda-fe/common'; import { StorageProvider } from './internal'; export declare enum StorageProvisioner { CEPH_FS_INTERNAL = "rook-ceph.cephfs.csi.ceph.com", CEPH_FS_RBD = "rook-ceph.rbd.csi.ceph.com", CEPH_OBJECT = "rook-ceph.ceph.rook.io/bucket", CEPH_COSI = "ceph.objectstorage.k8s.io", CEPH_FS = "ceph.com/cephfs", NFS = "cpaas.io/nfs-client", TOPOLVM = "topolvm.cybozu.com", HUAWEI_CSI = "csi.huawei.com", NFS_CSI = "nfs.csi.k8s.io", CSTOR_CSI = "cstor.csi.openebs.io", MINIO = "minio.objectstorage.k8s.io" } export declare const StorageType: { readonly FILE_STORAGE: "file_storage"; readonly OBJECT_STORAGE: "object_storage"; readonly BLOCK_STORAGE: "block_storage"; }; export type StorageType = ValueOf; export declare enum StorageclassFeature { SNAPSHOT = "snapshot", EXPANSION = "expansion", CLONE = "clone" } export interface StorageOption { provisioner: StorageProvisioner; gate?: string; clusterGate?: string; module?: string; provider: StorageProvider; type?: StorageType; display?: Translation; accessModes: AccessMode[]; /** features字段中有StorageclassFeature.SNAPSHOT才有这个 */ snapshotAccessModes?: AccessMode[]; features: StorageclassFeature[]; volumeModes: VolumeMode[]; supportTypes?: StorageType[]; disabled?: boolean; } export declare enum VolumeBindingMode { Immediate = "Immediate", WaitForFirstConsumer = "WaitForFirstConsumer" } export declare enum ReclaimPolicy { Retain = "Retain", Delete = "Delete" } export declare enum PvcStatusEnum { processing = "processing", bound = "bound", invalid = "invalid", waiting = "waiting_to_bind_after_mounting" } export declare const PvcStatusColorMapper: { processing: GenericStatusColor; waiting_to_bind_after_mounting: GenericStatusColor; bound: GenericStatusColor; invalid: GenericStatusColor; }; export declare const PvcStatusIconMapper: { processing: GenericStatusIcon; waiting_to_bind_after_mounting: GenericStatusIcon; bound: string; invalid: GenericStatusIcon; }; export declare enum PvStatusEnum { AVAILABLE = "available", BOUND = "bound", WAITING_RECYCLE = "waiting_recycle", RECYCLE_FAILED = "recycle_failed" } export declare const PvStatusColorMapper: { available: GenericStatusColor; bound: GenericStatusColor; waiting_recycle: GenericStatusColor; recycle_failed: GenericStatusColor; }; export declare const PvStatusIconMapper: { available: GenericStatusIcon; bound: string; waiting_recycle: string; recycle_failed: GenericStatusIcon; };