forked from JointCloud/pcm-coordinator
update types
This commit is contained in:
parent
587de3d235
commit
b6a939f977
|
@ -153,7 +153,7 @@ type (
|
|||
|
||||
// 调度资源信息:/queryResources
|
||||
QueryResourcesReq{
|
||||
ClusterIDs []int64 `json:"clusterIDs,optional"`
|
||||
ClusterIDs []string `json:"clusterIDs,optional"`
|
||||
}
|
||||
|
||||
QueryResourcesResp{
|
||||
|
@ -172,7 +172,7 @@ type (
|
|||
}
|
||||
|
||||
JobClusterInfo{
|
||||
ClusterID int64 `json:"clusterID"`
|
||||
ClusterID string `json:"clusterID"`
|
||||
Resources []map[string]interface{} `json:"resources,optional"`
|
||||
Runtime JobRuntimeInfo `json:"runtime,optional"`
|
||||
}
|
||||
|
@ -193,25 +193,25 @@ type (
|
|||
DatasetDistribute {
|
||||
DataName string `json:"dataName"`
|
||||
PackageID int64 `json:"packageID"`
|
||||
Clusters []int64 `json:"clusters"`
|
||||
Clusters []string `json:"clusters"`
|
||||
}
|
||||
|
||||
CodeDistribute {
|
||||
DataName string `json:"dataName"`
|
||||
PackageID int64 `json:"packageID"`
|
||||
Clusters []int64 `json:"clusters"`
|
||||
Clusters []string `json:"clusters"`
|
||||
}
|
||||
|
||||
ImageDistribute {
|
||||
DataName string `json:"dataName"`
|
||||
PackageID int64 `json:"packageID"`
|
||||
Clusters []int64 `json:"clusters"`
|
||||
Clusters []string `json:"clusters"`
|
||||
}
|
||||
|
||||
ModelDistribute {
|
||||
DataName string `json:"dataName"`
|
||||
PackageID int64 `json:"packageID"`
|
||||
Clusters []int64 `json:"clusters"`
|
||||
Clusters []string `json:"clusters"`
|
||||
}
|
||||
|
||||
CreateTaskResp {
|
||||
|
@ -223,7 +223,7 @@ type (
|
|||
DataType string `json:"dataType"` // 数据类型:数据集、镜像..
|
||||
PackageID int64 `json:"packageID"`
|
||||
StorageType string `json:"storageType"` // 目的地类型:如代码仓、JCS
|
||||
ClusterIDs []int64 `json:"clusterIDs"`
|
||||
ClusterIDs []string `json:"clusterIDs"`
|
||||
}
|
||||
|
||||
// 启动任务(资源已就绪):/runTask
|
||||
|
@ -238,7 +238,7 @@ type (
|
|||
}
|
||||
|
||||
DataScheduleResult {
|
||||
ClusterID int64 `json:"clusterID"`
|
||||
ClusterID string `json:"clusterID"`
|
||||
PackageID int64 `json:"packageID"`
|
||||
PackageFullPath string `json:"packageFullPath"`
|
||||
Status bool `json:"status"`
|
||||
|
|
|
@ -5871,7 +5871,7 @@ type GetClusterBalanceByIdResp struct {
|
|||
}
|
||||
|
||||
type QueryResourcesReq struct {
|
||||
ClusterIDs []int64 `json:"clusterIDs,optional"`
|
||||
ClusterIDs []string `json:"clusterIDs,optional"`
|
||||
}
|
||||
|
||||
type QueryResourcesResp struct {
|
||||
|
@ -5889,7 +5889,7 @@ type JobResources struct {
|
|||
}
|
||||
|
||||
type JobClusterInfo struct {
|
||||
ClusterID int64 `json:"clusterID"`
|
||||
ClusterID string `json:"clusterID"`
|
||||
Resources []map[string]interface{} `json:"resources,optional"`
|
||||
Runtime JobRuntimeInfo `json:"runtime,optional"`
|
||||
}
|
||||
|
@ -5908,27 +5908,27 @@ type DataDistribute struct {
|
|||
}
|
||||
|
||||
type DatasetDistribute struct {
|
||||
DataName string `json:"dataName"`
|
||||
PackageID int64 `json:"packageID"`
|
||||
Clusters []int64 `json:"clusters"`
|
||||
DataName string `json:"dataName"`
|
||||
PackageID int64 `json:"packageID"`
|
||||
Clusters []string `json:"clusters"`
|
||||
}
|
||||
|
||||
type CodeDistribute struct {
|
||||
DataName string `json:"dataName"`
|
||||
PackageID int64 `json:"packageID"`
|
||||
Clusters []int64 `json:"clusters"`
|
||||
DataName string `json:"dataName"`
|
||||
PackageID int64 `json:"packageID"`
|
||||
Clusters []string `json:"clusters"`
|
||||
}
|
||||
|
||||
type ImageDistribute struct {
|
||||
DataName string `json:"dataName"`
|
||||
PackageID int64 `json:"packageID"`
|
||||
Clusters []int64 `json:"clusters"`
|
||||
DataName string `json:"dataName"`
|
||||
PackageID int64 `json:"packageID"`
|
||||
Clusters []string `json:"clusters"`
|
||||
}
|
||||
|
||||
type ModelDistribute struct {
|
||||
DataName string `json:"dataName"`
|
||||
PackageID int64 `json:"packageID"`
|
||||
Clusters []int64 `json:"clusters"`
|
||||
DataName string `json:"dataName"`
|
||||
PackageID int64 `json:"packageID"`
|
||||
Clusters []string `json:"clusters"`
|
||||
}
|
||||
|
||||
type CreateTaskResp struct {
|
||||
|
@ -5937,10 +5937,10 @@ type CreateTaskResp struct {
|
|||
}
|
||||
|
||||
type ScheduleData struct {
|
||||
DataType string `json:"dataType"` // 数据类型:数据集、镜像..
|
||||
PackageID int64 `json:"packageID"`
|
||||
StorageType string `json:"storageType"` // 目的地类型:如代码仓、JCS
|
||||
ClusterIDs []int64 `json:"clusterIDs"`
|
||||
DataType string `json:"dataType"` // 数据类型:数据集、镜像..
|
||||
PackageID int64 `json:"packageID"`
|
||||
StorageType string `json:"storageType"` // 目的地类型:如代码仓、JCS
|
||||
ClusterIDs []string `json:"clusterIDs"`
|
||||
}
|
||||
|
||||
type RunTaskReq struct {
|
||||
|
@ -5954,7 +5954,7 @@ type DataScheduleResults struct {
|
|||
}
|
||||
|
||||
type DataScheduleResult struct {
|
||||
ClusterID int64 `json:"clusterID"`
|
||||
ClusterID string `json:"clusterID"`
|
||||
PackageID int64 `json:"packageID"`
|
||||
PackageFullPath string `json:"packageFullPath"`
|
||||
Status bool `json:"status"`
|
||||
|
|
Loading…
Reference in New Issue