feat: add cluster list
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
export const ClusterDataList = [
|
||||
{
|
||||
id: 1,
|
||||
name: 'custom-cluster',
|
||||
provider: 'Custom',
|
||||
clusterType: 'Kubernetes',
|
||||
workers: 2,
|
||||
gpus: 4,
|
||||
deployments: 1
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: 'Digital-Ocean-cluster',
|
||||
provider: 'Digital Ocean',
|
||||
clusterType: 'Custom',
|
||||
workers: 3,
|
||||
gpus: 6,
|
||||
deployments: 2
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
name: 'AutoDL-cluster',
|
||||
provider: 'AutoDL',
|
||||
clusterType: 'Custom',
|
||||
workers: 4,
|
||||
gpus: 8,
|
||||
deployments: 3
|
||||
}
|
||||
];
|
||||
@@ -0,0 +1,40 @@
|
||||
export interface FormData {
|
||||
name: string;
|
||||
provider: string;
|
||||
access_key: string;
|
||||
secret_key: string;
|
||||
description?: string;
|
||||
id?: number;
|
||||
}
|
||||
|
||||
export interface ListItem {
|
||||
id: number;
|
||||
name: string;
|
||||
provider: string;
|
||||
access_key: string;
|
||||
secret_key: string;
|
||||
description?: string;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
||||
|
||||
export interface ClusterListItem {
|
||||
name: string;
|
||||
provider: string;
|
||||
workers: number;
|
||||
created_at: string;
|
||||
gpus: number;
|
||||
deployments: number;
|
||||
id: number;
|
||||
}
|
||||
|
||||
export interface ClusterFormData {
|
||||
name: string;
|
||||
provider: string;
|
||||
credential: string;
|
||||
region: string;
|
||||
workers: number;
|
||||
gpuPlan: string;
|
||||
description?: string;
|
||||
id?: number;
|
||||
}
|
||||
Reference in New Issue
Block a user