fix:启动,停止,暂停实例修改字段
Former-commit-id: 4c0b1f8d1d342d3076ec08286a459a5aae74b39d
This commit is contained in:
parent
4a3df1b22a
commit
5b6da2274b
|
@ -26,66 +26,66 @@ info(
|
||||||
service pcm {
|
service pcm {
|
||||||
@handler participantListHandler
|
@handler participantListHandler
|
||||||
get /core/participantList returns (participantListResp)
|
get /core/participantList returns (participantListResp)
|
||||||
|
|
||||||
@handler scheduleTaskByYamlHandler
|
@handler scheduleTaskByYamlHandler
|
||||||
post /core/scheduleTaskByYaml (scheduleTaskByYamlReq) returns (scheduleTaskByYamlResp)
|
post /core/scheduleTaskByYaml (scheduleTaskByYamlReq) returns (scheduleTaskByYamlResp)
|
||||||
|
|
||||||
@handler deleteTaskHandler
|
@handler deleteTaskHandler
|
||||||
delete /core/deleteTask/:id (deleteTaskReq)
|
delete /core/deleteTask/:id (deleteTaskReq)
|
||||||
|
|
||||||
@handler scheduleTaskHandler
|
@handler scheduleTaskHandler
|
||||||
post /core/scheduleTask (scheduleTaskReq)
|
post /core/scheduleTask (scheduleTaskReq)
|
||||||
|
|
||||||
// 任务列表接口
|
// 任务列表接口
|
||||||
@handler TaskListHandler
|
@handler TaskListHandler
|
||||||
get /core/taskList (taskListReq)returns (taskListResp)
|
get /core/taskList (taskListReq)returns (taskListResp)
|
||||||
|
|
||||||
// 任务详情接口
|
// 任务详情接口
|
||||||
@handler TaskDetailHandler
|
@handler TaskDetailHandler
|
||||||
get /core/taskDetail (taskDetailReq) returns (taskDetailResp)
|
get /core/taskDetail (taskDetailReq) returns (taskDetailResp)
|
||||||
|
|
||||||
@handler JobTotalHandler
|
@handler JobTotalHandler
|
||||||
get /core/jobTotal returns (jobTotalResp)
|
get /core/jobTotal returns (jobTotalResp)
|
||||||
|
|
||||||
@handler listCenterHandler
|
@handler listCenterHandler
|
||||||
get /core/listCenter returns (listCenterResp)
|
get /core/listCenter returns (listCenterResp)
|
||||||
|
|
||||||
@handler listClusterHandler
|
@handler listClusterHandler
|
||||||
get /core/listCluster/:centerId (listClusterReq) returns (listClusterResp)
|
get /core/listCluster/:centerId (listClusterReq) returns (listClusterResp)
|
||||||
|
|
||||||
@handler submitJobHandler
|
@handler submitJobHandler
|
||||||
post /core/submitJob (submitJobReq) returns (submitJobResp)
|
post /core/submitJob (submitJobReq) returns (submitJobResp)
|
||||||
|
|
||||||
@handler getRegionHandler
|
@handler getRegionHandler
|
||||||
get /core/getRegion returns (getRegionResp)
|
get /core/getRegion returns (getRegionResp)
|
||||||
|
|
||||||
@handler listRegionHandler
|
@handler listRegionHandler
|
||||||
get /core/listRegion returns (listRegionResp)
|
get /core/listRegion returns (listRegionResp)
|
||||||
|
|
||||||
@handler getComputingPowerHandler
|
@handler getComputingPowerHandler
|
||||||
get /core/getComputingPower returns (cpResp)
|
get /core/getComputingPower returns (cpResp)
|
||||||
|
|
||||||
@handler getGeneralInfoHandler
|
@handler getGeneralInfoHandler
|
||||||
get /core/getGeneralInfo returns (GiResp)
|
get /core/getGeneralInfo returns (GiResp)
|
||||||
|
|
||||||
@handler listDomainResourceHandler
|
@handler listDomainResourceHandler
|
||||||
get /core/listDomainResource returns (DomainResourceResp)
|
get /core/listDomainResource returns (DomainResourceResp)
|
||||||
|
|
||||||
@handler getResourcePanelConfigHandler
|
@handler getResourcePanelConfigHandler
|
||||||
get /core/getResourcePanelConfigHandler returns (ResourcePanelConfigResp)
|
get /core/getResourcePanelConfigHandler returns (ResourcePanelConfigResp)
|
||||||
|
|
||||||
@handler putResourcePanelConfigHandler
|
@handler putResourcePanelConfigHandler
|
||||||
put /core/resourcePanelConfigHandler (ResourcePanelConfigReq)
|
put /core/resourcePanelConfigHandler (ResourcePanelConfigReq)
|
||||||
|
|
||||||
@handler getComputilityStatisticsHandler
|
@handler getComputilityStatisticsHandler
|
||||||
get /core/getComputilityStatistics returns (ComputilityStatisticsResp)
|
get /core/getComputilityStatistics returns (ComputilityStatisticsResp)
|
||||||
|
|
||||||
@handler nodeAssetsHandler
|
@handler nodeAssetsHandler
|
||||||
get /core/assets returns (NodeAssetsResp)
|
get /core/assets returns (NodeAssetsResp)
|
||||||
|
|
||||||
@handler saveHashcatHandler
|
@handler saveHashcatHandler
|
||||||
post /core/saveHashcat (SaveHashcatReq)
|
post /core/saveHashcat (SaveHashcatReq)
|
||||||
|
|
||||||
@handler getHashcatHandler
|
@handler getHashcatHandler
|
||||||
get /core/getHashcat/:crackTaskId (getHashcatHandlerReq) returns (getHashcatHandlerResp)
|
get /core/getHashcat/:crackTaskId (getHashcatHandlerReq) returns (getHashcatHandlerResp)
|
||||||
}
|
}
|
||||||
|
@ -98,10 +98,10 @@ service pcm {
|
||||||
service pcm {
|
service pcm {
|
||||||
@handler listJobHandler
|
@handler listJobHandler
|
||||||
get /hpc/listJob (listJobReq) returns (listJobResp)
|
get /hpc/listJob (listJobReq) returns (listJobResp)
|
||||||
|
|
||||||
@handler listHistoryJobHandler
|
@handler listHistoryJobHandler
|
||||||
get /hpc/listHistoryJob (listHistoryJobReq) returns (listHistoryJobResp)
|
get /hpc/listHistoryJob (listHistoryJobReq) returns (listHistoryJobResp)
|
||||||
|
|
||||||
@handler queueAssetsHandler
|
@handler queueAssetsHandler
|
||||||
get /queue/assets returns (QueueAssetsResp)
|
get /queue/assets returns (QueueAssetsResp)
|
||||||
}
|
}
|
||||||
|
@ -114,7 +114,7 @@ service pcm {
|
||||||
service pcm {
|
service pcm {
|
||||||
@handler cloudListHandler
|
@handler cloudListHandler
|
||||||
get /task/list returns (cloudListResp)
|
get /task/list returns (cloudListResp)
|
||||||
|
|
||||||
@handler deleteYamlHandler
|
@handler deleteYamlHandler
|
||||||
get /cloud/DeleteYaml (ApplyReq) returns (DeleteResp)
|
get /cloud/DeleteYaml (ApplyReq) returns (DeleteResp)
|
||||||
}
|
}
|
||||||
|
@ -127,10 +127,10 @@ service pcm {
|
||||||
service pcm {
|
service pcm {
|
||||||
@handler listDataSetHandler
|
@handler listDataSetHandler
|
||||||
get /ai/listDataSet/:projectId (DataSetReq) returns (DataSetResp)
|
get /ai/listDataSet/:projectId (DataSetReq) returns (DataSetResp)
|
||||||
|
|
||||||
@handler CreateDataSetHandler
|
@handler CreateDataSetHandler
|
||||||
post /ai/createDataSet/:projectId (CreateDataSetReq) returns (CreateDataSetResp)
|
post /ai/createDataSet/:projectId (CreateDataSetReq) returns (CreateDataSetResp)
|
||||||
|
|
||||||
@handler DeleteDataSetHandler
|
@handler DeleteDataSetHandler
|
||||||
delete /ai/deleteDataSet/:projectId/:datasetId (DeleteDataSetReq) returns (DeleteDataSetResp)
|
delete /ai/deleteDataSet/:projectId/:datasetId (DeleteDataSetReq) returns (DeleteDataSetResp)
|
||||||
// creat task 创建导入任务
|
// creat task 创建导入任务
|
||||||
|
@ -161,7 +161,7 @@ service pcm {
|
||||||
// ShowAlgorithmByUuid 展示算法详情
|
// ShowAlgorithmByUuid 展示算法详情
|
||||||
@handler ShowAlgorithmByUuid
|
@handler ShowAlgorithmByUuid
|
||||||
get /ai/ShowAlgorithmByUuid/:projectId/:algorithmId (ShowAlgorithmByUuidReq) returns (ShowAlgorithmByUuidResp)
|
get /ai/ShowAlgorithmByUuid/:projectId/:algorithmId (ShowAlgorithmByUuidReq) returns (ShowAlgorithmByUuidResp)
|
||||||
|
|
||||||
// creat export task 创建导出任务
|
// creat export task 创建导出任务
|
||||||
@handler CreateExportTaskHandler
|
@handler CreateExportTaskHandler
|
||||||
post /ai/CreateExportTask/:projectId/:datasetId (CreateExportTaskReq) returns (ExportTaskDataResp)
|
post /ai/CreateExportTask/:projectId/:datasetId (CreateExportTaskReq) returns (ExportTaskDataResp)
|
||||||
|
@ -169,11 +169,11 @@ service pcm {
|
||||||
get /ai/GetExportTasksOfDataset/:projectId/:datasetId (GetExportTasksOfDatasetReq) returns (GetExportTasksOfDatasetResp)
|
get /ai/GetExportTasksOfDataset/:projectId/:datasetId (GetExportTasksOfDatasetReq) returns (GetExportTasksOfDatasetResp)
|
||||||
@handler GetExportTaskStatusOfDatasetHandler
|
@handler GetExportTaskStatusOfDatasetHandler
|
||||||
get /ai/GetExportTaskStatusOfDataset/:projectId/:resourceId/:taskId (GetExportTaskStatusOfDatasetReq) returns (GetExportTaskStatusOfDatasetResp)
|
get /ai/GetExportTaskStatusOfDataset/:projectId/:resourceId/:taskId (GetExportTaskStatusOfDatasetReq) returns (GetExportTaskStatusOfDatasetResp)
|
||||||
|
|
||||||
// create processor task 创建处理任务
|
// create processor task 创建处理任务
|
||||||
@handler CreateProcessorTaskHandler
|
@handler CreateProcessorTaskHandler
|
||||||
post /ai/CreateProcessorTask (CreateProcessorTaskReq) returns (CreateProcessorTaskResp)
|
post /ai/CreateProcessorTask (CreateProcessorTaskReq) returns (CreateProcessorTaskResp)
|
||||||
|
|
||||||
// create service 创建服务
|
// create service 创建服务
|
||||||
@handler CreateServiceHandler
|
@handler CreateServiceHandler
|
||||||
post /ai/CreateService/:projectId (CreateServiceReq) returns (CreateServiceResp)
|
post /ai/CreateService/:projectId (CreateServiceReq) returns (CreateServiceResp)
|
||||||
|
@ -189,7 +189,7 @@ service pcm {
|
||||||
// ListClusters查询专属资源池列表
|
// ListClusters查询专属资源池列表
|
||||||
@handler ListClustersHandler
|
@handler ListClustersHandler
|
||||||
get /ai/ListClusters (ListClustersReq) returns (ListClustersResp)
|
get /ai/ListClusters (ListClustersReq) returns (ListClustersResp)
|
||||||
|
|
||||||
/******************Notebook Method start*************************/
|
/******************Notebook Method start*************************/
|
||||||
@handler listNotebookHandler
|
@handler listNotebookHandler
|
||||||
get /ai/listNotebook (ListNotebookReq) returns (ListNotebookResp)
|
get /ai/listNotebook (ListNotebookReq) returns (ListNotebookResp)
|
||||||
|
@ -204,7 +204,7 @@ service pcm {
|
||||||
@handler mountNotebookStorageHandler
|
@handler mountNotebookStorageHandler
|
||||||
post /ai/mountNotebookStorage (MountNotebookStorageReq) returns (MountNotebookStorageResp)
|
post /ai/mountNotebookStorage (MountNotebookStorageReq) returns (MountNotebookStorageResp)
|
||||||
/******************Notebook Method end*************************/
|
/******************Notebook Method end*************************/
|
||||||
|
|
||||||
/******************Visualization Job Method start*************************/
|
/******************Visualization Job Method start*************************/
|
||||||
@handler getVisualizationJobHandler
|
@handler getVisualizationJobHandler
|
||||||
get /ai/getVisualizationJob (GetVisualizationJobReq) returns (GetVisualizationJobResp)
|
get /ai/getVisualizationJob (GetVisualizationJobReq) returns (GetVisualizationJobResp)
|
||||||
|
@ -235,16 +235,16 @@ service pcm {
|
||||||
service pcm {
|
service pcm {
|
||||||
@handler uploadHandler
|
@handler uploadHandler
|
||||||
post /upload
|
post /upload
|
||||||
|
|
||||||
@handler chunkHandler
|
@handler chunkHandler
|
||||||
post /chunk
|
post /chunk
|
||||||
|
|
||||||
@handler imageListHandler
|
@handler imageListHandler
|
||||||
get /image/list returns (imageListResp)
|
get /image/list returns (imageListResp)
|
||||||
|
|
||||||
@handler dataSetCheckHandler
|
@handler dataSetCheckHandler
|
||||||
get /dataSet/check/:fileMd5 (checkReq) returns (checkResp)
|
get /dataSet/check/:fileMd5 (checkReq) returns (checkResp)
|
||||||
|
|
||||||
@handler uploadDataSetHandler
|
@handler uploadDataSetHandler
|
||||||
post /dataSet/upload
|
post /dataSet/upload
|
||||||
}
|
}
|
||||||
|
@ -290,7 +290,7 @@ service pcm {
|
||||||
post /vm/createImage (CreateImageReq) returns (CreateImageResp)
|
post /vm/createImage (CreateImageReq) returns (CreateImageResp)
|
||||||
@handler UploadImageHandler
|
@handler UploadImageHandler
|
||||||
put /vm/uploadImage (UploadOsImageReq) returns (UploadOsImageResp)
|
put /vm/uploadImage (UploadOsImageReq) returns (UploadOsImageResp)
|
||||||
|
|
||||||
/*网络*/
|
/*网络*/
|
||||||
@handler ListNetworksHandler
|
@handler ListNetworksHandler
|
||||||
get /vm/listNetworks (ListNetworksReq) returns (ListNetworksResp)
|
get /vm/listNetworks (ListNetworksReq) returns (ListNetworksResp)
|
||||||
|
@ -306,7 +306,7 @@ service pcm {
|
||||||
put /vm/updateNetwork (UpdateNetworkReq) returns (UpdateNetworkResp)
|
put /vm/updateNetwork (UpdateNetworkReq) returns (UpdateNetworkResp)
|
||||||
@handler BulkCreateNetworksHandler
|
@handler BulkCreateNetworksHandler
|
||||||
post /vm/bulkCreateNetworks (BulkCreateNetworksReq) returns (BulkCreateNetworksResp)
|
post /vm/bulkCreateNetworks (BulkCreateNetworksReq) returns (BulkCreateNetworksResp)
|
||||||
|
|
||||||
/*卷*/
|
/*卷*/
|
||||||
@handler ListVolumesDetailHandler
|
@handler ListVolumesDetailHandler
|
||||||
get /vm/listVolumesDetail (ListVolumesDetailReq) returns (ListVolumesDetailResp)
|
get /vm/listVolumesDetail (ListVolumesDetailReq) returns (ListVolumesDetailResp)
|
||||||
|
@ -328,7 +328,7 @@ service pcm {
|
||||||
get /vm/listVolumes (ListVolumesReq) returns (ListVolumesResp)
|
get /vm/listVolumes (ListVolumesReq) returns (ListVolumesResp)
|
||||||
@handler GetVolumeDetailedByIdHandler
|
@handler GetVolumeDetailedByIdHandler
|
||||||
get /vm/getVolumeDetailedById (GetVolumeDetailedByIdReq) returns (GetVolumeDetailedByIdResp)
|
get /vm/getVolumeDetailedById (GetVolumeDetailedByIdReq) returns (GetVolumeDetailedByIdResp)
|
||||||
|
|
||||||
// Bare Metal
|
// Bare Metal
|
||||||
@handler ListNodesHandler
|
@handler ListNodesHandler
|
||||||
get /vm/listNodes (ListNodesReq) returns (ListNodesResp)
|
get /vm/listNodes (ListNodesReq) returns (ListNodesResp)
|
||||||
|
@ -349,25 +349,25 @@ service pcm {
|
||||||
service pcm {
|
service pcm {
|
||||||
@handler UploadLinkImageHandler
|
@handler UploadLinkImageHandler
|
||||||
post /storelink/uploadImage (UploadLinkImageReq) returns (UploadLinkImageResp)
|
post /storelink/uploadImage (UploadLinkImageReq) returns (UploadLinkImageResp)
|
||||||
|
|
||||||
@handler GetLinkImageListHandler
|
@handler GetLinkImageListHandler
|
||||||
get /storelink/getImageList (GetLinkImageListReq) returns (GetLinkImageListResp)
|
get /storelink/getImageList (GetLinkImageListReq) returns (GetLinkImageListResp)
|
||||||
|
|
||||||
@handler DeleteLinkImageHandler
|
@handler DeleteLinkImageHandler
|
||||||
delete /storelink/deleteImage (DeleteLinkImageReq) returns (DeleteLinkImageResp)
|
delete /storelink/deleteImage (DeleteLinkImageReq) returns (DeleteLinkImageResp)
|
||||||
|
|
||||||
@handler SubmitLinkTaskHandler
|
@handler SubmitLinkTaskHandler
|
||||||
post /storelink/submitTask (SubmitLinkTaskReq) returns (SubmitLinkTaskResp)
|
post /storelink/submitTask (SubmitLinkTaskReq) returns (SubmitLinkTaskResp)
|
||||||
|
|
||||||
@handler GetLinkTaskHandler
|
@handler GetLinkTaskHandler
|
||||||
get /storelink/getTask (GetLinkTaskReq) returns (GetLinkTaskResp)
|
get /storelink/getTask (GetLinkTaskReq) returns (GetLinkTaskResp)
|
||||||
|
|
||||||
@handler DeleteLinkTaskHandler
|
@handler DeleteLinkTaskHandler
|
||||||
delete /storelink/deleteTask (DeleteLinkTaskReq) returns (DeleteLinkTaskResp)
|
delete /storelink/deleteTask (DeleteLinkTaskReq) returns (DeleteLinkTaskResp)
|
||||||
|
|
||||||
@handler GetParticipantsHandler
|
@handler GetParticipantsHandler
|
||||||
get /storelink/getParticipants (GetParticipantsReq) returns (GetParticipantsResp)
|
get /storelink/getParticipants (GetParticipantsReq) returns (GetParticipantsResp)
|
||||||
|
|
||||||
@handler GetAISpecsHandler
|
@handler GetAISpecsHandler
|
||||||
get /storelink/getResourceSpecs (GetResourceSpecsReq) returns (GetResourceSpecsResp)
|
get /storelink/getResourceSpecs (GetResourceSpecsReq) returns (GetResourceSpecsResp)
|
||||||
}
|
}
|
|
@ -236,7 +236,8 @@ type(
|
||||||
type (
|
type (
|
||||||
StartServerReq {
|
StartServerReq {
|
||||||
ServerId string `json:"server_id" copier:"ServerId"`
|
ServerId string `json:"server_id" copier:"ServerId"`
|
||||||
OsStart OsStart `json:"osStart" copier:"OsStart"`
|
Action []map[string]string `json:"Action,optional" copier:"Action"`
|
||||||
|
start_action string `json:"start_action" copier:"start_action"`
|
||||||
|
|
||||||
}
|
}
|
||||||
StartServerResp {
|
StartServerResp {
|
||||||
|
@ -244,29 +245,24 @@ type (
|
||||||
ErrorMsg string `json:"errorMsg,omitempty"`
|
ErrorMsg string `json:"errorMsg,omitempty"`
|
||||||
Code int32 `json:"code,omitempty"`
|
Code int32 `json:"code,omitempty"`
|
||||||
}
|
}
|
||||||
OsStart {
|
|
||||||
os_start string `json:"os_start" copier:"os_start"`
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type(
|
type(
|
||||||
StopServerReq{
|
StopServerReq{
|
||||||
ServerId string `json:"server_id" copier:"ServerId"`
|
ServerId string `json:"server_id" copier:"ServerId"`
|
||||||
OsStart OsStart `json:"os_start" copier:"OsStart"`
|
Action []map[string]string `json:"Action,optional" copier:"Action"`
|
||||||
|
stop_action string `json:"stop_action" copier:"stop_action"`
|
||||||
}
|
}
|
||||||
StopServerResp {
|
StopServerResp {
|
||||||
Msg string `json:"msg,omitempty"`
|
Msg string `json:"msg,omitempty"`
|
||||||
ErrorMsg string `json:"errorMsg,omitempty"`
|
ErrorMsg string `json:"errorMsg,omitempty"`
|
||||||
Code int32 `json:"code,omitempty"` }
|
Code int32 `json:"code,omitempty"` }
|
||||||
OsStop {
|
|
||||||
OsStop string `json:"os_stop" copier:"OsStop"`
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type(
|
type(
|
||||||
RebootServerReq{
|
RebootServerReq{
|
||||||
ServerId string `json:"server_id" copier:"ServerId"`
|
ServerId string `json:"server_id" copier:"ServerId"`
|
||||||
OsStart OsStart `json:"os_start" copier:"OsStart"`
|
Reboot Reboot `json:"reboot" copier:"Reboot"`
|
||||||
}
|
}
|
||||||
RebootServerResp {
|
RebootServerResp {
|
||||||
Msg string `json:"msg,omitempty"`
|
Msg string `json:"msg,omitempty"`
|
||||||
|
@ -280,16 +276,14 @@ type(
|
||||||
type(
|
type(
|
||||||
PauseServerReq{
|
PauseServerReq{
|
||||||
ServerId string `json:"server_id" copier:"ServerId"`
|
ServerId string `json:"server_id" copier:"ServerId"`
|
||||||
OsStart OsStart `json:"os_start" copier:"OsStart"`
|
Action []map[string]string `json:"Action,optional" copier:"Action"`
|
||||||
|
pause_action string `json:"pause_action" copier:"pause_action"`
|
||||||
}
|
}
|
||||||
PauseServerResp {
|
PauseServerResp {
|
||||||
Msg string `json:"msg,omitempty"`
|
Msg string `json:"msg,omitempty"`
|
||||||
ErrorMsg string `json:"errorMsg,omitempty"`
|
ErrorMsg string `json:"errorMsg,omitempty"`
|
||||||
Code int32 `json:"code,omitempty"`
|
Code int32 `json:"code,omitempty"`
|
||||||
}
|
}
|
||||||
OsPause {
|
|
||||||
Pause string `json:"pause" copier:"Pause"`
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
|
|
@ -2415,8 +2415,9 @@ type UpdateServerResp struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type StartServerReq struct {
|
type StartServerReq struct {
|
||||||
ServerId string `json:"server_id" copier:"ServerId"`
|
ServerId string `json:"server_id" copier:"ServerId"`
|
||||||
OsStart OsStart `json:"osStart" copier:"OsStart"`
|
Action []map[string]string `json:"Action,optional" copier:"Action"`
|
||||||
|
Start_action string `json:"start_action" copier:"start_action"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type StartServerResp struct {
|
type StartServerResp struct {
|
||||||
|
@ -2425,13 +2426,10 @@ type StartServerResp struct {
|
||||||
Code int32 `json:"code,omitempty"`
|
Code int32 `json:"code,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type OsStart struct {
|
|
||||||
Os_start string `json:"os_start" copier:"os_start"`
|
|
||||||
}
|
|
||||||
|
|
||||||
type StopServerReq struct {
|
type StopServerReq struct {
|
||||||
ServerId string `json:"server_id" copier:"ServerId"`
|
ServerId string `json:"server_id" copier:"ServerId"`
|
||||||
OsStart OsStart `json:"os_start" copier:"OsStart"`
|
Action []map[string]string `json:"Action,optional" copier:"Action"`
|
||||||
|
Stop_action string `json:"stop_action" copier:"stop_action"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type StopServerResp struct {
|
type StopServerResp struct {
|
||||||
|
@ -2440,13 +2438,9 @@ type StopServerResp struct {
|
||||||
Code int32 `json:"code,omitempty"`
|
Code int32 `json:"code,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type OsStop struct {
|
|
||||||
OsStop string `json:"os_stop" copier:"OsStop"`
|
|
||||||
}
|
|
||||||
|
|
||||||
type RebootServerReq struct {
|
type RebootServerReq struct {
|
||||||
ServerId string `json:"server_id" copier:"ServerId"`
|
ServerId string `json:"server_id" copier:"ServerId"`
|
||||||
OsStart OsStart `json:"os_start" copier:"OsStart"`
|
Reboot Reboot `json:"reboot" copier:"Reboot"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type RebootServerResp struct {
|
type RebootServerResp struct {
|
||||||
|
@ -2460,8 +2454,9 @@ type Reboot struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type PauseServerReq struct {
|
type PauseServerReq struct {
|
||||||
ServerId string `json:"server_id" copier:"ServerId"`
|
ServerId string `json:"server_id" copier:"ServerId"`
|
||||||
OsStart OsStart `json:"os_start" copier:"OsStart"`
|
Action []map[string]string `json:"Action,optional" copier:"Action"`
|
||||||
|
Pause_action string `json:"pause_action" copier:"pause_action"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type PauseServerResp struct {
|
type PauseServerResp struct {
|
||||||
|
@ -2470,10 +2465,6 @@ type PauseServerResp struct {
|
||||||
Code int32 `json:"code,omitempty"`
|
Code int32 `json:"code,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type OsPause struct {
|
|
||||||
Pause string `json:"pause" copier:"Pause"`
|
|
||||||
}
|
|
||||||
|
|
||||||
type DeleteServerReq struct {
|
type DeleteServerReq struct {
|
||||||
ServerId string `form:"server_id" copier:"ServerId"`
|
ServerId string `form:"server_id" copier:"ServerId"`
|
||||||
}
|
}
|
||||||
|
|
4
go.mod
4
go.mod
|
@ -15,6 +15,7 @@ require (
|
||||||
github.com/jinzhu/copier v0.3.5
|
github.com/jinzhu/copier v0.3.5
|
||||||
github.com/nacos-group/nacos-sdk-go/v2 v2.2.3
|
github.com/nacos-group/nacos-sdk-go/v2 v2.2.3
|
||||||
github.com/pkg/errors v0.9.1
|
github.com/pkg/errors v0.9.1
|
||||||
|
github.com/prometheus/client_golang v1.16.0
|
||||||
github.com/redis/go-redis/v9 v9.2.1
|
github.com/redis/go-redis/v9 v9.2.1
|
||||||
github.com/robfig/cron/v3 v3.0.1
|
github.com/robfig/cron/v3 v3.0.1
|
||||||
github.com/shopspring/decimal v1.3.1
|
github.com/shopspring/decimal v1.3.1
|
||||||
|
@ -25,7 +26,7 @@ require (
|
||||||
gitlink.org.cn/jcce-pcm/pcm-participant-kubernetes v0.0.0-20230830120334-bf6d99c715ef
|
gitlink.org.cn/jcce-pcm/pcm-participant-kubernetes v0.0.0-20230830120334-bf6d99c715ef
|
||||||
gitlink.org.cn/jcce-pcm/pcm-participant-modelarts v0.0.0-20230719015658-08a29549d86a
|
gitlink.org.cn/jcce-pcm/pcm-participant-modelarts v0.0.0-20230719015658-08a29549d86a
|
||||||
gitlink.org.cn/jcce-pcm/pcm-participant-octopus v0.0.0-20231011071802-c6a7637b74e4
|
gitlink.org.cn/jcce-pcm/pcm-participant-octopus v0.0.0-20231011071802-c6a7637b74e4
|
||||||
gitlink.org.cn/jcce-pcm/pcm-participant-openstack v0.0.0-20231023073226-621f06a5f10c
|
gitlink.org.cn/jcce-pcm/pcm-participant-openstack v0.0.0-20231024105731-cbdceff549c9
|
||||||
gitlink.org.cn/jcce-pcm/pcm-participant-slurm v0.0.0-20230714030125-a52fa198ddf4
|
gitlink.org.cn/jcce-pcm/pcm-participant-slurm v0.0.0-20230714030125-a52fa198ddf4
|
||||||
gitlink.org.cn/jcce-pcm/utils v0.0.2
|
gitlink.org.cn/jcce-pcm/utils v0.0.2
|
||||||
go.opentelemetry.io/otel/trace v1.14.0
|
go.opentelemetry.io/otel/trace v1.14.0
|
||||||
|
@ -95,7 +96,6 @@ require (
|
||||||
github.com/openzipkin/zipkin-go v0.4.1 // indirect
|
github.com/openzipkin/zipkin-go v0.4.1 // indirect
|
||||||
github.com/pelletier/go-toml/v2 v2.0.9 // indirect
|
github.com/pelletier/go-toml/v2 v2.0.9 // indirect
|
||||||
github.com/pierrec/lz4/v4 v4.1.17 // indirect
|
github.com/pierrec/lz4/v4 v4.1.17 // indirect
|
||||||
github.com/prometheus/client_golang v1.16.0 // indirect
|
|
||||||
github.com/prometheus/client_model v0.4.0 // indirect
|
github.com/prometheus/client_model v0.4.0 // indirect
|
||||||
github.com/prometheus/common v0.44.0 // indirect
|
github.com/prometheus/common v0.44.0 // indirect
|
||||||
github.com/prometheus/procfs v0.10.1 // indirect
|
github.com/prometheus/procfs v0.10.1 // indirect
|
||||||
|
|
6
go.sum
6
go.sum
|
@ -761,6 +761,7 @@ github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfC
|
||||||
github.com/jmoiron/sqlx v1.2.0/go.mod h1:1FEQNm3xlJgrMD+FBdI9+xvCksHtbpVBBw5dYhBSsks=
|
github.com/jmoiron/sqlx v1.2.0/go.mod h1:1FEQNm3xlJgrMD+FBdI9+xvCksHtbpVBBw5dYhBSsks=
|
||||||
github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY=
|
github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY=
|
||||||
github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y=
|
github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y=
|
||||||
|
github.com/jpillora/backoff v1.0.0 h1:uvFg412JmmHBHw7iwprIxkPMI+sGQ4kzOWsMeHnm2EA=
|
||||||
github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4=
|
github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4=
|
||||||
github.com/json-iterator/go v1.1.5/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
|
github.com/json-iterator/go v1.1.5/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
|
||||||
github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
|
github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
|
||||||
|
@ -840,6 +841,7 @@ github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8m
|
||||||
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA=
|
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA=
|
||||||
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
|
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
|
||||||
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
|
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
|
||||||
|
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f h1:KUppIJq7/+SVif2QVs3tOP0zanoHgBEVAwHxUSIzRqU=
|
||||||
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
|
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
|
||||||
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw=
|
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw=
|
||||||
github.com/nacos-group/nacos-sdk-go/v2 v2.2.1/go.mod h1:ys/1adWeKXXzbNWfRNbaFlX/t6HVLWdpsNDvmoWTw0g=
|
github.com/nacos-group/nacos-sdk-go/v2 v2.2.1/go.mod h1:ys/1adWeKXXzbNWfRNbaFlX/t6HVLWdpsNDvmoWTw0g=
|
||||||
|
@ -1041,8 +1043,8 @@ gitlink.org.cn/jcce-pcm/pcm-participant-modelarts v0.0.0-20230719015658-08a29549
|
||||||
gitlink.org.cn/jcce-pcm/pcm-participant-modelarts v0.0.0-20230719015658-08a29549d86a/go.mod h1:BhOgwM1LC+BD46DjTaQyYQVZs1CikwI5Pl/6qzKUexc=
|
gitlink.org.cn/jcce-pcm/pcm-participant-modelarts v0.0.0-20230719015658-08a29549d86a/go.mod h1:BhOgwM1LC+BD46DjTaQyYQVZs1CikwI5Pl/6qzKUexc=
|
||||||
gitlink.org.cn/jcce-pcm/pcm-participant-octopus v0.0.0-20231011071802-c6a7637b74e4 h1:iv78VZ5+j6/VNkEyD/GSmTJ96rpxzpKDUNknAoXsAmg=
|
gitlink.org.cn/jcce-pcm/pcm-participant-octopus v0.0.0-20231011071802-c6a7637b74e4 h1:iv78VZ5+j6/VNkEyD/GSmTJ96rpxzpKDUNknAoXsAmg=
|
||||||
gitlink.org.cn/jcce-pcm/pcm-participant-octopus v0.0.0-20231011071802-c6a7637b74e4/go.mod h1:uyvpVqG1jHDXX+ubXI0RBwnWXzVykD/mliqGQIDvRoo=
|
gitlink.org.cn/jcce-pcm/pcm-participant-octopus v0.0.0-20231011071802-c6a7637b74e4/go.mod h1:uyvpVqG1jHDXX+ubXI0RBwnWXzVykD/mliqGQIDvRoo=
|
||||||
gitlink.org.cn/jcce-pcm/pcm-participant-openstack v0.0.0-20231023073226-621f06a5f10c h1:1w6KnIUnXYVzr2r/I67HFHH/3SbyjuTznOfwUt7dbHc=
|
gitlink.org.cn/jcce-pcm/pcm-participant-openstack v0.0.0-20231024105731-cbdceff549c9 h1:r352e/Vrnity+BgrWyWCgn8uT2xPg6O86g+H4aIOdX8=
|
||||||
gitlink.org.cn/jcce-pcm/pcm-participant-openstack v0.0.0-20231023073226-621f06a5f10c/go.mod h1:m75SVNfNa1TUBlQtBfR0CeETQ0ez2RIUqlSCn1Mb/js=
|
gitlink.org.cn/jcce-pcm/pcm-participant-openstack v0.0.0-20231024105731-cbdceff549c9/go.mod h1:m75SVNfNa1TUBlQtBfR0CeETQ0ez2RIUqlSCn1Mb/js=
|
||||||
gitlink.org.cn/jcce-pcm/pcm-participant-slurm v0.0.0-20230714030125-a52fa198ddf4 h1:r2hBP5G/bbkPpDTPk3ENnQxD82vkoYMSeNHYhNAVRX4=
|
gitlink.org.cn/jcce-pcm/pcm-participant-slurm v0.0.0-20230714030125-a52fa198ddf4 h1:r2hBP5G/bbkPpDTPk3ENnQxD82vkoYMSeNHYhNAVRX4=
|
||||||
gitlink.org.cn/jcce-pcm/pcm-participant-slurm v0.0.0-20230714030125-a52fa198ddf4/go.mod h1:zRdVJiv4r4jgBli2xpYGmV0n6Gmz8fkZ5pJaNK2MbTU=
|
gitlink.org.cn/jcce-pcm/pcm-participant-slurm v0.0.0-20230714030125-a52fa198ddf4/go.mod h1:zRdVJiv4r4jgBli2xpYGmV0n6Gmz8fkZ5pJaNK2MbTU=
|
||||||
gitlink.org.cn/jcce-pcm/utils v0.0.2 h1:Stif8W9C9TOCS2hw4g+OlOywDrsVYNrkiyKfBrWkT0w=
|
gitlink.org.cn/jcce-pcm/utils v0.0.2 h1:Stif8W9C9TOCS2hw4g+OlOywDrsVYNrkiyKfBrWkT0w=
|
||||||
|
|
Loading…
Reference in New Issue