Compare commits

...

1223 Commits

Author SHA1 Message Date
tzwang 96862bee70 Merge pull request 'change temporarily to kunshan resourcegroup' (#345) from tzwang/pcm-coordinator:master into master 2024-11-18 22:37:07 +08:00
TABLET-JNUKIN42\wtz10 1f99caf6a6 modify rpc errs 2024-11-18 22:37:02 +08:00
TABLET-JNUKIN42\wtz10 b54df06312 change temporarily to kunshan resourcegroup 2024-11-18 20:49:00 +08:00
tzwang d5dd6b6339 Merge pull request 'change temporarily to kunshan resourcegroup' (#344) from tzwang/pcm-coordinator:master into master 2024-11-18 20:48:22 +08:00
zhangweiii 9f8754067a Merge pull request '添加日志' (#343) from zhangweiii/pcm-coordinator:master into master 2024-11-11 21:03:24 +08:00
zhangwei 0005bfcd07 添加日志 2024-11-11 21:04:36 +08:00
jagger cb92b4f406 fix
Signed-off-by: jagger <cossjie@foxmail.com>
2024-11-11 20:37:07 +08:00
jagger b95b65aaf1 ci/cd optimization
Signed-off-by: jagger <cossjie@foxmail.com>
2024-11-11 20:22:29 +08:00
zhangweiii 44aca8bc0e Merge pull request 'bug fix' (#342) from zhangweiii/pcm-coordinator:master into master 2024-11-11 20:12:38 +08:00
zhangwei 634921d849 超算提交任务改为同步 2024-11-11 20:13:56 +08:00
jagger a364ded342 ci/cd optimization
Signed-off-by: jagger <cossjie@foxmail.com>
2024-11-11 20:01:29 +08:00
jagger 46c7a9e010 fix
Signed-off-by: jagger <cossjie@foxmail.com>
2024-11-11 19:43:19 +08:00
zhangweiii 205bcd4f91 Merge pull request 'bug fix' (#341) from zhangweiii/pcm-coordinator:master into master 2024-11-11 19:14:57 +08:00
zhangwei 3351dc5733 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator 2024-11-11 19:01:30 +08:00
zhangwei 755174effa 提交超算任务增加proxy address 2024-11-11 19:01:20 +08:00
zhangwei 8c08e49cea Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator 2024-11-11 17:29:12 +08:00
zhangwei c5e6d67d06 bug fix 2024-11-11 17:28:44 +08:00
zhangweiii 6fbd8d1736 Merge pull request 'bug fix' (#340) from zhangweiii/pcm-coordinator:master into master 2024-11-11 17:27:28 +08:00
tzwang 61a2513a51 Merge pull request 'added submit param not found funcs' (#339) from tzwang/pcm-coordinator:master into master 2024-11-11 16:11:35 +08:00
tzwang 6f83faea04 added submit param not found funcs 2024-11-11 16:12:26 +08:00
zhangweiii 2f10d7d71a Merge pull request '提交超算任务接口修改clusterId参数类型' (#338) from zhangweiii/pcm-coordinator:master into master 2024-11-11 15:41:28 +08:00
zhangwei 08d7ef9317 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator 2024-11-11 15:21:52 +08:00
zhangwei 4587a69b04 提交超算任务接口修改clusterId参数类型 2024-11-11 15:20:48 +08:00
jagger debf2d1863 fix
Signed-off-by: jagger <cossjie@foxmail.com>
2024-11-07 15:19:47 +08:00
jagger 4afad4ea22 fix CenterResources bug
Signed-off-by: jagger <cossjie@foxmail.com>
2024-11-07 15:07:50 +08:00
zhangwei b4896b8b38 bug fix 2024-11-06 20:54:22 +08:00
zhangweiii 98d071f750 Merge pull request 'bug fix' (#337) from zhangweiii/pcm-coordinator:master into master 2024-11-06 20:53:46 +08:00
zhangwei 0b07910415 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator 2024-11-06 19:08:47 +08:00
zhangweiii 816f7a2cbc Merge pull request 'bug fix' (#336) from zhangweiii/pcm-coordinator:master into master 2024-11-06 19:07:29 +08:00
zhangwei b70c45167c 修改超算任务提交 返回jobId 2024-11-06 19:06:42 +08:00
zhangwei b7c289a790 bug fix 2024-11-05 15:34:00 +08:00
zhangweiii bf949e6d9a Merge pull request 'bug fix' (#335) from zhangweiii/pcm-coordinator:master into master 2024-11-05 15:32:57 +08:00
jagger 64525fdc3e fix
Signed-off-by: jagger <cossjie@foxmail.com>
2024-11-04 15:35:03 +08:00
zhangwei a0290c4568 查询job信息 2024-11-04 15:20:30 +08:00
zhangweiii dcf7b60946 Merge pull request '查询job信息' (#334) from zhangweiii/pcm-coordinator:master into master 2024-11-04 15:20:04 +08:00
zhangweiii ba8469deef Merge pull request 'hpc cancel job' (#333) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: 017730851c
2024-11-01 15:47:33 +08:00
zhangwei 38357fcace hpc cancel job
Former-commit-id: 27120c4506
2024-11-01 15:48:47 +08:00
zhangwei 87ce5097b6 bug fix
Former-commit-id: a7ad691c87
2024-11-01 13:46:24 +08:00
zhangweiii 7f767741c5 Merge pull request 'bug fix' (#332) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: 3cbf5a774d
2024-11-01 13:45:09 +08:00
zhangwei 01a1810d65 bug fix
Former-commit-id: c8e60b5425
2024-11-01 13:39:04 +08:00
zhangweiii 336e7d5fa9 Merge pull request 'bug fix' (#331) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: e24472fa5f
2024-11-01 13:37:39 +08:00
zhangweiii 9eeb7888fe Merge pull request 'bug fix' (#330) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: 6c25e09283
2024-11-01 13:20:52 +08:00
zhangwei a5893b0654 bug fix
Former-commit-id: 979952abf1
2024-11-01 13:19:53 +08:00
zhangweiii e5f079de1e Merge pull request 'bug fix' (#329) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: 46a48f49e5
2024-11-01 09:49:06 +08:00
zhangwei cace500c1a Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 69ab9460c1
2024-11-01 09:47:20 +08:00
zhangwei 0f883f69b9 bug fix
Former-commit-id: 83d6a699cf
2024-11-01 09:47:03 +08:00
qiwang fbf24089fd fix: update HpcInfo 2024-10-31 18:10:19 +08:00
zhangwei f0cd6d5769 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
# Conflicts:
#	desc/core/pcm-core.api
#	go.mod
#	go.sum
#	internal/handler/routes.go
#	internal/logic/hpc/commithpctasklogic.go
#	internal/types/types.go
#	pkg/models/taskaiasynchronousmodel_gen.go


Former-commit-id: 1adf77da8a
2024-10-31 17:32:50 +08:00
zhangweiii ed5da106d4 Merge pull request 'bug fix' (#328) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: a2dffbc562
2024-10-31 17:32:07 +08:00
zhangwei 6b7d83b3be 超算任务提交
Former-commit-id: 91021ac1f9
2024-10-31 17:21:19 +08:00
qiwang 8461a125da feat: add asynCommitAiTask interface 2024-10-31 12:31:54 +08:00
Jake 0beb2acda0 center the icon 2024-10-31 09:55:52 +08:00
qiwang ae66df1119 feat: add getAdapterInfo interface for Operator encapsulation 2024-10-29 17:29:30 +08:00
jagger 6847b5f8f4 fix
Signed-off-by: jagger <cossjie@foxmail.com>
2024-10-26 17:23:46 +08:00
zhangweiii 327c2c0cf8 Merge pull request '新增超算取消任务接口' (#326) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: 148e131e49
2024-10-26 16:27:55 +08:00
zhangwei 9c1528a328 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 0a7983d935
2024-10-26 12:36:36 +08:00
zhangwei 25a394bc95 添加超算取消任务接口
Former-commit-id: d5500966d0
2024-10-26 12:35:24 +08:00
qiwang 92451c41d4 fix: update AiInfo task_ai_async and
Former-commit-id: c4a6452fac
2024-10-24 17:41:50 +08:00
qiwang 1da1c53ac4 fix: update AiInfo task_ai_async
Former-commit-id: 9ecc944d36
2024-10-24 16:54:14 +08:00
tzwang 437b1dbb3e Merge pull request 'fix getadapterbymodel bugs' (#325) from tzwang/pcm-coordinator:master into master
Former-commit-id: 6035200a68
2024-10-24 16:14:37 +08:00
tzwang 92428bcc06 fix getadepterByModel bugs
Former-commit-id: 1dc4ccd87f
2024-10-24 16:14:29 +08:00
qiwang 1bbb35d3cf fix: update AiInfo task_ai
Former-commit-id: 8d900ea964
2024-10-24 15:35:16 +08:00
qiwang 26ac572400 fix: add task_ai_async
Former-commit-id: 55fdcb01ab
2024-10-24 15:05:55 +08:00
qiwang b7a8602155 fix: add task_ai_modelarts
Former-commit-id: 9e9675e3bf
2024-10-23 14:25:15 +08:00
qiwang 86a670e59b fix: Restore taskAi field
Former-commit-id: bc6af6d16b
2024-10-23 11:11:23 +08:00
qiwang be97e73406 fix: Restore taskAi field
Former-commit-id: 5745f4a539
2024-10-23 11:03:41 +08:00
zhangwei b1cb906370 超算任务提交修改
Former-commit-id: e6dfc882d8
2024-10-22 22:09:51 +08:00
zhangweiii 657736014a Merge pull request '超算任务提交修改' (#324) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: da6d74b02e
2024-10-22 22:08:51 +08:00
zhangwei a1b3aa4ba6 移除ceph
Former-commit-id: 064ce4fba3
2024-10-22 21:18:03 +08:00
zhangweiii 86984a3225 Merge pull request '移除ceph' (#323) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: 0b82af422c
2024-10-22 21:17:23 +08:00
zhangweiii 702cf72ebc Merge pull request '移除ceph' (#322) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: 5d505e3b8b
2024-10-22 19:05:25 +08:00
zhangwei 791fe7bcf3 移除ceph
Former-commit-id: cdf6465ccd
2024-10-22 19:04:01 +08:00
zhangwei 9114f4e82c 移除ceph
Former-commit-id: 15b1d86045
2024-10-22 19:02:23 +08:00
zhangwei 057e36c455 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
# Conflicts:
#	internal/logic/adapters/createclusterlogic.go


Former-commit-id: 1e969cc3e7
2024-10-22 18:53:01 +08:00
zhangwei db63a5a3e2 根据集群id获取集群信息
Former-commit-id: eec83ab34f
2024-10-22 18:49:29 +08:00
qiwang 78e9711628 fix: Modify the format models.TaskAi of the Ai task_ai 2024-10-22 18:06:06 +08:00
zhouqunjie 60babd1921 ADD file via upload 2024-10-21 17:15:00 +08:00
qiwang 32103a1bfe fix: Modify models.TaskAi of the Ai task_ai 2024-10-21 15:51:51 +08:00
qiwang 1bd8315e13 fix: Modify models.TaskAi of the Ai task_ai 2024-10-18 16:09:05 +08:00
jagger 59c34f1455 暂时注释集群经纬度信息
Signed-off-by: jagger <cossjie@foxmail.com>
2024-10-17 21:35:53 +08:00
zw 2530919de2 注释经纬度
Former-commit-id: 9eb803f451
2024-10-17 21:27:42 +08:00
tzwang 5789f5190b Merge pull request 'fix instancelist bugs' (#321) from tzwang/pcm-coordinator:master into master 2024-10-15 18:09:54 +08:00
tzwang 456428c0d7 fix instancelist bugs 2024-10-15 18:10:14 +08:00
tzwang 27d76bbaab fix instancelist bugs 2024-10-15 17:27:03 +08:00
tzwang e13ae70935 Merge pull request 'fix instancelist bugs' (#320) from tzwang/pcm-coordinator:master into master 2024-10-15 17:26:26 +08:00
qiwang e27cb437ed fix: Modify the entity object of the Ai task 2024-10-15 16:28:19 +08:00
tzwang 24c8de7251 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator 2024-10-15 16:10:29 +08:00
tzwang 92ebac652a fix shuguangai inference cmd 2024-10-15 16:10:03 +08:00
tzwang 8327f91a83 Merge pull request 'fix shuguangai bugs' (#319) from tzwang/pcm-coordinator:master into master 2024-10-15 16:09:58 +08:00
qiwang 5e54e9830e fix: Modify the entity object of the Ai task 2024-10-15 09:52:30 +08:00
devad 5d5669b503 fix 2024-10-13 13:55:48 +08:00
devad 277ae3ea4c fix 2024-10-12 23:13:53 +08:00
devad d17090409e Add Docker build multi-platform support 2024-10-12 22:12:57 +08:00
zhangwei a322bb080a 添加environment变量
Former-commit-id: 0d3eeef29a
2024-10-12 18:22:32 +08:00
zhangwei f7f46e8561 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 3889abad54
2024-10-11 17:31:59 +08:00
zhangwei 4ea861cb75 hpc partition
Former-commit-id: 852bb93e2d
2024-10-11 17:31:39 +08:00
tzwang 0a20cda5f7 Merge pull request 'fix shuguang instance bugs' (#318) from tzwang/pcm-coordinator:master into master 2024-10-11 11:10:36 +08:00
tzwang f06000a526 fix shuguang instance bug 2024-10-11 11:10:08 +08:00
qiwang 6ab1fa8fd7 fix: add instance center Add fuzzy queries of ai 2024-10-09 11:51:20 +08:00
qiwang c12484bf2e fix: update instance center of ai 2024-10-09 09:46:55 +08:00
qiwang c005b8ab9c fix: update instance center of ai 2024-10-09 09:10:25 +08:00
jagger d2cd5980e3 fix
Signed-off-by: jagger <cossjie@foxmail.com>
2024-10-08 09:04:42 +08:00
qiwang 18deae3589 fix: add instance center of ai 2024-09-30 17:03:29 +08:00
qiwang 016e9a2296 fix: add instance center of ai 2024-09-30 11:29:04 +08:00
jagger a10d98ac46 fix
Signed-off-by: jagger <cossjie@foxmail.com>
2024-09-25 10:01:00 +08:00
qiwang a0e74c6e08 fix: update modelarts images inferurl of ai 2024-09-24 11:04:18 +08:00
tzwang 7cf0902f3c Merge pull request 'updated createdeployinstance logics' (#317) from tzwang/pcm-coordinator:master into master 2024-09-23 15:30:17 +08:00
tzwang 125536012d updated createdeploytask logic 2024-09-23 15:29:30 +08:00
zhangwei 5bc93f9e98 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
# Conflicts:
#	go.mod
#	go.sum
#	internal/logic/adapters/createclusterlogic.go


Former-commit-id: e39ad86008
2024-09-23 14:49:25 +08:00
tzwang f1f1697efe Merge pull request 'updated createdeploytask logics' (#316) from tzwang/pcm-coordinator:master into master 2024-09-23 10:53:32 +08:00
tzwang bf513496e7 updated createdeploytask logic 2024-09-23 10:53:20 +08:00
zhangwei 8395ac4490 bug fix
Former-commit-id: 1e766c2b30
2024-09-20 20:25:07 +08:00
tzwang 87d774d2e1 Merge pull request 'updated shuguang imageinfer logics' (#315) from tzwang/pcm-coordinator:master into master 2024-09-20 17:54:51 +08:00
tzwang 9c6b3801fd updated shuguang imageinfer func 2024-09-20 17:49:28 +08:00
zhangweiii 349b9660b1 GeoMap
Former-commit-id: 5383e3c264
2024-09-20 09:12:52 +08:00
zhangwei 3e11a1789b 集群添加坐标信息
Former-commit-id: 822ae45b3a
2024-09-19 19:56:13 +08:00
zhangwei 8e33750179 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: cead65aae1
2024-09-19 09:07:31 +08:00
qiwang 0003d147a0 fix: update modelarts ServiceName now.Unix of ai 2024-09-19 08:45:37 +08:00
tzwang 32bc8b11fe Merge pull request 'updated cron function' (#313) from tzwang/pcm-coordinator:master into master 2024-09-18 17:37:48 +08:00
tzwang 185f548b36 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator 2024-09-18 17:37:39 +08:00
tzwang b13d285504 updated cron func 2024-09-18 17:36:44 +08:00
jagger 6b0f506cd6 fix
Signed-off-by: jagger <cossjie@foxmail.com>
2024-09-18 09:13:23 +08:00
tzwang 9fff1b9786 Merge pull request 'upated cron func' (#312) from tzwang/pcm-coordinator:master into master 2024-09-14 17:18:32 +08:00
tzwang 2c3a0d515f updated cron func 2024-09-14 17:18:22 +08:00
qiwang 716d422535 Merge pull request 'Add modelarts of ai CheckModelExistence' (#311) from master_new_upmaster into master 2024-09-14 17:12:16 +08:00
qiwang 6dad353945 fix: add modelarts of ai CheckModelExistence 2024-09-14 17:01:21 +08:00
tzwang 14b15135ea Merge pull request 'updated deployinstance logics' (#310) from tzwang/pcm-coordinator:master into master 2024-09-14 16:00:56 +08:00
tzwang 0b8261f6f8 updated deployinstance logic 2024-09-14 15:58:57 +08:00
tzwang 46e4691fb9 Merge pull request 'updated deployinstance logics' (#309) from tzwang/pcm-coordinator:master into master 2024-09-14 14:43:05 +08:00
tzwang c37684548e updated deployinstance logic 2024-09-14 11:28:45 +08:00
tzwang 7da5bb63ca Merge pull request 'updated deployinstance status files' (#308) from tzwang/pcm-coordinator:master into master 2024-09-13 17:40:29 +08:00
tzwang 5153b6a31a updated deployinstance status files 2024-09-13 17:40:17 +08:00
tzwang 97d2af6f2d Merge pull request 'updated shuguang deployinstance logics' (#307) from tzwang/pcm-coordinator:master into master
Former-commit-id: abcac3579e
2024-09-13 15:41:42 +08:00
tzwang a525685907 updated shuguang InferDeployInstance logic
Former-commit-id: 8a1f7bd76a
2024-09-13 15:42:11 +08:00
tzwang 9b142e6ba1 Merge pull request 'updated shuguang deployinstance logics' (#306) from tzwang/pcm-coordinator:master into master
Former-commit-id: 8407ba4972
2024-09-12 17:36:17 +08:00
tzwang 5a15db9499 updated shuguang InferDeployInstance logic
Former-commit-id: 211870e061
2024-09-12 17:35:16 +08:00
tzwang 565c1455d2 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
# Conflicts:
#	.devops/aly.yml
#	Dockerfile
#	go.mod
#	go.sum
#	internal/storeLink/modelarts.go


Former-commit-id: d212265a2c
2024-09-12 17:34:47 +08:00
zhangwei 5cdb491d05 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
# Conflicts:
#	Dockerfile
#	etc/pcm.yaml
#	go.mod
#	go.sum
#	internal/logic/inference/deployinstancelistlogic.go
#	internal/logic/inference/getdeploytasksbytypelogic.go
#	internal/logic/inference/startallbydeploytaskidlogic.go
#	internal/logic/inference/stopallbydeploytaskidlogic.go
#	internal/storeLink/modelarts.go
#	internal/storeLink/storeLink.go


Former-commit-id: 6bcef559a9
2024-09-12 17:03:39 +08:00
qiwang 9e2023fbb1 fix: Modify modelarts of ai create instance 2024-09-12 16:01:20 +08:00
devad 1aa1cecfbf fix 2024-09-10 22:34:31 +08:00
devad 725ea39869 fix
Former-commit-id: c89d08e640
2024-09-10 20:30:44 +08:00
tzwang 5199dbf8f7 Merge pull request 'fix startall stopall bugs' (#305) from tzwang/pcm-coordinator:master into master
Former-commit-id: ee8207785f
2024-09-09 16:37:09 +08:00
tzwang 5104009600 fix stopall startall logic
Former-commit-id: ca3b3a57bd
2024-09-09 16:36:15 +08:00
tzwang db7dae88f0 Merge pull request 'fix startall stopall bugs' (#304) from tzwang/pcm-coordinator:master into master
Former-commit-id: bd27fac180
2024-09-09 15:28:37 +08:00
tzwang 6e872593c2 fix stopall startall logic
Former-commit-id: 80ee208c15
2024-09-09 15:27:38 +08:00
tzwang 985f2ef6e5 Merge pull request 'updated deployinstancelist logics' (#303) from tzwang/pcm-coordinator:master into master
Former-commit-id: 6b1f3a9b6a
2024-09-09 09:31:27 +08:00
tzwang 19838aab83 update deployinstancelist logic
Former-commit-id: e2761861c2
2024-09-09 09:27:46 +08:00
devad 67f000865a refactor: .devops/aly.yml
Former-commit-id: 579cab3591
2024-09-09 01:26:51 +00:00
devad aa2510ef6c refactor: .devops/aly.yml
Former-commit-id: d3cb7031c0
2024-09-09 01:11:44 +00:00
devad 66d007e8c5 feat: .devops/aly.yml
Former-commit-id: 0d45963239
2024-09-09 01:09:21 +00:00
devad 4a6297c548 refactor: delete .devops/未命名项目.yml
Former-commit-id: 68a28a9c73
2024-09-09 01:09:18 +00:00
devad 1847a28324 feat: .devops/未命名项目.yml
Former-commit-id: 873a4dcf33
2024-09-09 01:03:57 +00:00
qiwang d4b20fae0f fix: Modify etc file to extend interface response time
Former-commit-id: 3bbfbaea0c
2024-09-06 16:31:25 +08:00
qiwang eeddff6a02 fix: Complete the modelarts createServeic of ai
Former-commit-id: 2b5e5f5036
2024-09-06 15:09:00 +08:00
qiwang 2d79050b09 fix: Complete the modelarts createServeic of ai
Former-commit-id: 02ed1dfd88
2024-09-06 09:03:15 +08:00
zhangweiii e7020d6f95 Merge pull request 'dependence' (#302) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: f08ddee767
2024-09-04 17:07:20 +08:00
zhangwei 1b02a8c91c Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: cfb3f225fc
2024-09-04 16:57:33 +08:00
zhangwei c9a754e79b hpc新增字段
Former-commit-id: 5958b28a82
2024-09-04 16:56:22 +08:00
tzwang 90613ec81c Merge pull request 'updated texttotextinference logics' (#301) from tzwang/pcm-coordinator:master into master
Former-commit-id: bcdc325f56
2024-09-04 16:40:06 +08:00
tzwang ec64ec2007 updated texttotextinference logic
Former-commit-id: 74abd736b1
2024-09-04 16:37:31 +08:00
tzwang f7e3e91887 updated texttotextinference api
Former-commit-id: 1c9205ceae
2024-09-04 15:44:04 +08:00
tzwang 067277fd8c Merge pull request 'updated deployinstancelist logics' (#300) from tzwang/pcm-coordinator:master into master
Former-commit-id: 55a199ee46
2024-09-04 10:47:27 +08:00
tzwang 73bd1a7f08 updated deployinstancelist logic
Former-commit-id: 2be82315a1
2024-09-04 10:47:22 +08:00
tzwang d81bc5a2d9 Merge pull request 'updated createdeploytask logics' (#299) from tzwang/pcm-coordinator:master into master
Former-commit-id: 1e098dc4bc
2024-09-02 17:27:21 +08:00
tzwang 91bfc6e6b3 updated getadapterbymodel api
Former-commit-id: 8a6175e6d6
2024-09-02 17:25:31 +08:00
tzwang bcb664c704 updated createdeploytask logic
Former-commit-id: b90f79d81f
2024-09-02 17:20:45 +08:00
qiwang 37afd2a284 fix: Complete the modelarts createServeic of ai
Former-commit-id: b277641172
2024-08-31 11:29:08 +08:00
qiwang 2cb3826f64 Merge remote-tracking branch 'origin/master'
Former-commit-id: 8efc2320a5
2024-08-31 11:28:52 +08:00
tzwang d854e8ca23 Merge pull request 'updated deployinstance logics' (#298) from tzwang/pcm-coordinator:master into master
Former-commit-id: f78a7e526f
2024-08-30 17:46:49 +08:00
tzwang 9851e66a0e updated getdeploytaskbytype logic
Former-commit-id: 518ccaa4b1
2024-08-30 17:25:01 +08:00
tzwang 2cfd2a9cca Merge pull request 'updated getdepoytaskbytype logics' (#297) from tzwang/pcm-coordinator:master into master
Former-commit-id: f9dd5a14ca
2024-08-30 16:31:38 +08:00
tzwang 5bd7e859f9 updated getdeploytaskbytype logic
Former-commit-id: 39c631187c
2024-08-30 16:31:25 +08:00
tzwang 637c4a69fe Merge pull request 'updated deployinstancelogics' (#296) from tzwang/pcm-coordinator:master into master
Former-commit-id: 5e906a797d
2024-08-30 15:31:10 +08:00
tzwang 93b446714e updated deployinstancelistlogic
Former-commit-id: 4b21b863c4
2024-08-30 15:30:02 +08:00
qiwang b75f6fc662 fix: Complete the modelarts createServeic of ai
Former-commit-id: 44bb82e78d
2024-08-30 12:01:14 +08:00
qiwang c0092c1a14 fix: Complete the modelarts createServeic of ai
Former-commit-id: 319fb4908f
2024-08-30 11:38:15 +08:00
qiwang b97bfcdc39 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	internal/storeLink/modelarts.go


Former-commit-id: 9359f2b9f3
2024-08-30 10:21:01 +08:00
qiwang b2631704e3 Merge pull request 'Complete the modelarts createServeic of ai' (#295) from qiwang/pcm-coordinator:upmaster into master
Former-commit-id: 6ad8cc3a43
2024-08-30 10:18:21 +08:00
qiwang 837d9401c0 fix: Complete the modelarts createServeic of ai
Former-commit-id: 1d51c0bcbd
2024-08-30 10:17:59 +08:00
tzwang 649ebb58a1 Merge pull request 'updated deployinstance logics' (#294) from tzwang/pcm-coordinator:master into master
Former-commit-id: 837dde298c
2024-08-30 10:08:16 +08:00
tzwang 8fd497f24a Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: ccdf80eb5c
2024-08-30 09:49:40 +08:00
tzwang 5eda8232b1 updated imageinference logics
Former-commit-id: 99ca947923
2024-08-30 09:47:46 +08:00
qiwang 669db774f2 fix: Complete the modelarts createServeic of ai
Former-commit-id: d1e949d1e0
2024-08-30 09:18:38 +08:00
qiwang efbac11fe8 Merge pull request 'Complete the modelarts createServeic of ai' (#293) from upmaster into master
Former-commit-id: a7599f67e2
2024-08-30 09:11:02 +08:00
tzwang 9ec43307d7 Merge pull request 'updated createdeployinstance logics' (#292) from tzwang/pcm-coordinator:master into master
Former-commit-id: 3080046eb7
2024-08-29 17:24:02 +08:00
tzwang ef72b1014f updated createDeployInstance logics
Former-commit-id: 5b8465ca65
2024-08-29 17:21:10 +08:00
tzwang 3ebe01f35d updated CreateDeployTask api
Former-commit-id: fb4fc498ca
2024-08-29 16:54:09 +08:00
tzwang 04e72f9599 updated createDeployInstance logics
Former-commit-id: ae411caf7a
2024-08-29 16:49:42 +08:00
tzwang 13c3b60b57 updated CreateDeployTaskReq types
Former-commit-id: 078ffecc6a
2024-08-29 15:43:27 +08:00
tzwang b0a4b9ee27 Merge pull request 'updated deploytask logics' (#291) from tzwang/pcm-coordinator:master into master
Former-commit-id: a8f2b46f1c
2024-08-29 11:34:57 +08:00
tzwang c5b0dc925f updated getAdapterByModel logics
Former-commit-id: d777cb359c
2024-08-29 11:34:47 +08:00
tzwang 5a88f9e766 updated createDeployTask types
Former-commit-id: 87c4555d04
2024-08-29 11:12:43 +08:00
tzwang 7c6389d3d8 updated createDeployTask apis
Former-commit-id: c45af4d037
2024-08-29 11:10:28 +08:00
tzwang 7aad9ecd4d added createDeployTask logics
Former-commit-id: 52bab362ac
2024-08-29 10:54:33 +08:00
tzwang d0dbb2fe99 added createDeployTask apis
Former-commit-id: e3e9a46352
2024-08-29 10:48:17 +08:00
tzwang cfd0a6e168 Merge pull request 'updated imageinference logics' (#290) from tzwang/pcm-coordinator:master into master
Former-commit-id: eebb983c4b
2024-08-28 17:25:24 +08:00
tzwang 739948d184 updated imageinference logics
Former-commit-id: 3dde5aa691
2024-08-28 17:24:39 +08:00
tzwang 1f0e6c07d0 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 1e9ce8a151
2024-08-28 17:24:06 +08:00
tzwang 6f689ce788 updated inference.api
Former-commit-id: 84df5c7572
2024-08-28 16:45:11 +08:00
tzwang d7ebdebfea updated inference.api
Former-commit-id: 796f5afe07
2024-08-28 15:42:36 +08:00
tzwang e650da868a updated inference.api
Former-commit-id: f4093deb9a
2024-08-28 15:27:07 +08:00
tzwang 3c3d45fe62 updated imageinference logics
Former-commit-id: 1bb4a47ac9
2024-08-28 15:22:41 +08:00
qiwang 46fac6b148 fix: Complete the modelarts createServeic of ai
Former-commit-id: f31284ff45
2024-08-27 17:48:30 +08:00
tzwang a60e97134d updated inference api logics
Former-commit-id: 7c4b471eb2
2024-08-27 17:47:20 +08:00
tzwang b9ed8c5fa7 Merge pull request 'updated imageinference logics' (#289) from tzwang/pcm-coordinator:master into master
Former-commit-id: 7f31f95651
2024-08-27 17:47:18 +08:00
tzwang b016f42a0f updated GetRunningInstance apis
Former-commit-id: e3b83f6535
2024-08-27 16:22:08 +08:00
tzwang 9abbf03b33 updated GetRunningInstance apis
Former-commit-id: 8f2ac755f3
2024-08-27 15:55:18 +08:00
tzwang 8ab67fe868 updated GetRunningInstance apis
Former-commit-id: 580ae56220
2024-08-27 15:46:20 +08:00
tzwang 1103e589f4 updated inference api logics
Former-commit-id: 64f183b77e
2024-08-27 15:30:26 +08:00
tzwang 5ec517690a updated inference apis
Former-commit-id: d907a498a2
2024-08-27 15:09:58 +08:00
tzwang 46e3bc064f Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 71b7accd46
2024-08-27 11:21:06 +08:00
tzwang 271e3d69e4 updated inference apis
Former-commit-id: 8645e4ce15
2024-08-27 11:18:41 +08:00
zhouqunjie cbb6bb12f2 Merge pull request 'duplicate data' (#288) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: 7cbaf50ad4
2024-08-27 10:36:48 +08:00
Jake 58af849beb Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: b7838d8f6b
2024-08-27 10:35:17 +08:00
Jake c6c56da12b handle duplicate data
Former-commit-id: 2a7eeec140
2024-08-27 10:34:58 +08:00
tzwang 88f6e90b17 Merge pull request 'updated deployinstancelist logics' (#287) from tzwang/pcm-coordinator:master into master
Former-commit-id: 86418e14ba
2024-08-26 18:31:23 +08:00
tzwang b480227f0c updated deployinstancelist logic
Former-commit-id: 0f5f34d616
2024-08-26 18:30:33 +08:00
tzwang aaf7cf3cb5 updated getRunninginstances logic
Former-commit-id: 437d3a36b7
2024-08-26 15:02:01 +08:00
tzwang e58d00a980 Merge pull request 'added getrunninginstance api' (#286) from tzwang/pcm-coordinator:master into master
Former-commit-id: 7e7eb6bcb9
2024-08-23 17:26:57 +08:00
tzwang da674642ea updated getRunningInstanceByModel api
Former-commit-id: 2d48dac755
2024-08-23 17:18:04 +08:00
tzwang 3f21737673 added getRunningInstanceByModel api
Former-commit-id: 9660ea2405
2024-08-23 16:55:32 +08:00
tzwang 4f7314a2cd updated CreateInferDeployInstance logic
Former-commit-id: 3bbf914d39
2024-08-22 11:01:22 +08:00
tzwang 37c2569417 Merge pull request 'added CreateInferDeployInstance logics' (#285) from tzwang/pcm-coordinator:master into master
Former-commit-id: b026e33352
2024-08-21 17:32:19 +08:00
tzwang dc52eaee49 added CreateInferDeployInstance logic
Former-commit-id: c4c2ab8fdd
2024-08-21 17:27:20 +08:00
tzwang 70cf3c9cce Merge pull request 'fix deployinstancelist bugs' (#284) from tzwang/pcm-coordinator:master into master
Former-commit-id: 600999adbc
2024-08-19 16:34:47 +08:00
tzwang 6f1cb013c7 fix deploylist empty error
Former-commit-id: 9fc7692cf7
2024-08-19 16:34:25 +08:00
tzwang c55005074f Merge pull request 'fix stat empty errors' (#283) from tzwang/pcm-coordinator:master into master
Former-commit-id: 21fd8cf886
2024-08-17 15:31:34 +08:00
tzwang 515216ac1c Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 4866e1679f
2024-08-17 15:31:12 +08:00
tzwang 99c376f263 fix stat empty error
Former-commit-id: 630ed73490
2024-08-17 15:25:38 +08:00
jagger d9a6332755 fix
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 63fbff1b56
2024-08-16 10:30:38 +08:00
tzwang 3bd9b383a4 Merge pull request 'updated octopus getinferresultlogics' (#282) from tzwang/pcm-coordinator:master into master
Former-commit-id: 6d4d430ac2
2024-08-15 15:37:58 +08:00
tzwang 94b806c34f updated octopus getInferResultlogic
Former-commit-id: db824e8f2e
2024-08-15 15:37:31 +08:00
tzwang f271dd7126 Merge pull request 'fix startall deploytask bugs' (#281) from tzwang/pcm-coordinator:master into master
Former-commit-id: 40c695048f
2024-08-13 15:40:42 +08:00
tzwang 31d0096029 updated startall apis
Former-commit-id: fb95b3126f
2024-08-13 15:39:29 +08:00
jagger f78083133b fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 2095c8baee
2024-07-31 17:32:57 +08:00
jagger 4ab7290610 fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 4c64c4781c
2024-07-31 17:07:07 +08:00
jagger 899789af04 fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 51bb301987
2024-07-31 16:54:48 +08:00
tzwang 775153d886 Merge pull request 'updated deployinstancestatus logics' (#280) from tzwang/pcm-coordinator:master into master
Former-commit-id: 4f7e622c54
2024-07-31 16:30:15 +08:00
tzwang 1e5b77cf4f updated startall apis
Former-commit-id: 5c9609b143
2024-07-31 16:30:03 +08:00
tzwang ecd7b7c186 updated startall apis
Former-commit-id: dfb16c919d
2024-07-31 16:27:15 +08:00
tzwang cabb7fc252 Merge pull request 'updated deployinstancestatus logics' (#279) from tzwang/pcm-coordinator:master into master
Former-commit-id: 3191dd67ee
2024-07-31 16:22:54 +08:00
tzwang ff87869ff9 updated startall apis
Former-commit-id: 50c594f817
2024-07-31 16:22:47 +08:00
tzwang ad7fa723c3 fix startall apis
Former-commit-id: 12ca4d7bdd
2024-07-31 15:14:07 +08:00
tzwang 96626932ea updated startall apis
Former-commit-id: a3f4540e8d
2024-07-31 11:28:20 +08:00
tzwang 8c6fda81eb Merge pull request 'updated deployinstance logics' (#278) from tzwang/pcm-coordinator:master into master
Former-commit-id: 2d1a34712b
2024-07-31 11:12:37 +08:00
tzwang 179af7cd4a updated startall logics
Former-commit-id: b2d525b2fd
2024-07-31 11:12:12 +08:00
tzwang 1ec58ac8f2 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: ae4c26cce8
2024-07-31 11:11:23 +08:00
jagger deafa7cecf fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 7c7beeb5e2
2024-07-31 10:55:04 +08:00
tzwang 7af11688ef added startall logics
Former-commit-id: 28d49b1a13
2024-07-31 10:37:08 +08:00
tzwang 4bd778ba3a updated DeployTask apis
Former-commit-id: a02581d9d1
2024-07-31 10:17:17 +08:00
tzwang a152ee7576 added DeployTask apis
Former-commit-id: a9b5c42c5f
2024-07-31 09:41:02 +08:00
qiwang 4ed1e829bb fix: Complete the modelarts GetResourceStats of ai
Former-commit-id: b23d85fa84
2024-07-29 16:17:24 +08:00
tzwang bb2b8263a8 Merge pull request 'fix deployinstance bugs' (#277) from tzwang/pcm-coordinator:master into master
Former-commit-id: dddbe7cd18
2024-07-27 16:17:06 +08:00
tzwang 8c20e3afea fix deployinstance status
Former-commit-id: 3dd4eb610f
2024-07-27 16:15:10 +08:00
tzwang 764ce65e8d Merge pull request 'fix deployinstance logics' (#276) from tzwang/pcm-coordinator:master into master
Former-commit-id: c6ea68e62c
2024-07-27 15:08:15 +08:00
tzwang 1f868c58c4 fix deployinstance status
Former-commit-id: 8e34db7011
2024-07-27 15:07:19 +08:00
tzwang 1b475c5b63 Merge pull request 'updated deployinstance status' (#275) from tzwang/pcm-coordinator:master into master
Former-commit-id: c566f49ac2
2024-07-26 17:40:46 +08:00
tzwang 3e84f88efc Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: c7b10f2aec
2024-07-26 17:40:08 +08:00
tzwang 452d125837 updated updatedeployinstanceStatus
Former-commit-id: 2c8cec00c3
2024-07-26 17:39:29 +08:00
tzwang 68872134a0 Merge pull request 'updated deployinstance logics' (#274) from tzwang/pcm-coordinator:master into master
Former-commit-id: b858434acd
2024-07-26 15:38:45 +08:00
tzwang 8434ba3a7c Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: a7f859e30d
2024-07-26 15:37:26 +08:00
tzwang ea42c89ac0 updated deployinstance logics
Former-commit-id: 0f4117443e
2024-07-26 15:37:11 +08:00
jagger 7ac9ad4914 fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 3448a8c4e0
2024-07-26 15:15:22 +08:00
tzwang da6f5c3170 Merge pull request 'updated deployinstance logics' (#273) from tzwang/pcm-coordinator:master into master
Former-commit-id: d40b46439c
2024-07-26 10:42:22 +08:00
tzwang 129788bf2e updated deployinstance logics
Former-commit-id: 62bf3561fa
2024-07-26 10:42:01 +08:00
tzwang 1e21bc32cd updated deployinstance logics
Former-commit-id: 867e75c75e
2024-07-26 10:30:00 +08:00
qiwang 658fedaad6 Merge remote-tracking branch 'origin/master'
Former-commit-id: c797cc12a5
2024-07-26 10:25:50 +08:00
qiwang aeb6c95a4f fix: Complete the modelarts GetResourceStats of ai
Former-commit-id: 27c660d415
2024-07-26 10:25:28 +08:00
tzwang b231c6e722 Merge pull request 'updated deployinstance logics' (#272) from tzwang/pcm-coordinator:master into master
Former-commit-id: 1df20b161a
2024-07-26 09:56:52 +08:00
tzwang c474b35d06 updated deployinstance logics
Former-commit-id: 2a5268e3ca
2024-07-26 09:56:32 +08:00
qiwang 8880f0762d Merge remote-tracking branch 'origin/master'
# Conflicts:
#	go.mod


Former-commit-id: 8bbb72142d
2024-07-25 17:19:40 +08:00
tzwang 2744cdd1df Merge pull request 'updated deployinstance logics' (#271) from tzwang/pcm-coordinator:master into master
Former-commit-id: 2d73079c8a
2024-07-25 17:13:35 +08:00
tzwang 6003e14e73 updated deployinstance logics
Former-commit-id: 6ce56194e8
2024-07-25 17:13:10 +08:00
qiwang 488d4bd832 fix: Complete the modelarts GetResourceStats of ai
Former-commit-id: 92d809e27f
2024-07-25 17:12:15 +08:00
tzwang 70ce8aadaa updated StopDeployInstance rpcs
Former-commit-id: 739d039f21
2024-07-25 15:55:53 +08:00
tzwang 8260fff8b7 updated deployinstance stat proto
Former-commit-id: c7632227ea
2024-07-25 15:51:21 +08:00
tzwang 343e0d5b74 updated deployinstancestat rpcs
Former-commit-id: 45719ef937
2024-07-25 14:56:46 +08:00
tzwang a6ce316c73 added deployinstancestat rpcs
Former-commit-id: 4fca3dba57
2024-07-25 11:13:10 +08:00
tzwang 9280c2f27a added deployinstance stat proto
Former-commit-id: df080e5be0
2024-07-25 10:07:43 +08:00
tzwang a2f99bf2d0 updated inferurl logics
Former-commit-id: 0c4ee483a0
2024-07-24 17:55:33 +08:00
tzwang 75e196771b Merge pull request 'updated deployinstance logics' (#270) from tzwang/pcm-coordinator:master into master
Former-commit-id: fe336bccd8
2024-07-24 11:37:08 +08:00
tzwang ef9cbab35d updated deployinstance logics
Former-commit-id: f8fd2a3222
2024-07-24 11:36:27 +08:00
tzwang 122922e637 Merge pull request 'fix missing gomod' (#269) from tzwang/pcm-coordinator:master into master
Former-commit-id: 167933f98d
2024-07-23 17:24:47 +08:00
tzwang 8be2fba071 fix missing gomod
Former-commit-id: 727abda5a3
2024-07-23 17:24:31 +08:00
tzwang 68defdf78f Merge pull request 'added deployinstance apis' (#268) from tzwang/pcm-coordinator:master into master
Former-commit-id: 85c7246136
2024-07-23 16:25:11 +08:00
tzwang c681628396 added deployinstance apis
Former-commit-id: f1871de123
2024-07-23 16:20:50 +08:00
tzwang 680575176e Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: d4306ccab3
2024-07-23 15:40:48 +08:00
qiwang a831a14e4f Merge pull request 'Complete the modelarts deployment of ai' (#267) from qiwang/pcm-coordinator:master_0722 into master
Former-commit-id: 9567eb7b86
2024-07-23 14:43:07 +08:00
qiwang ef0336af41 fix: Complete the modelarts deployment of ai
Former-commit-id: 5982f5019a
2024-07-23 14:31:52 +08:00
tzwang 4f8da64f71 updated deployinstance model
Former-commit-id: 542a8cc8d9
2024-07-22 17:05:58 +08:00
tzwang 11ed4137b0 Merge pull request 'added deployinstance logics' (#266) from tzwang/pcm-coordinator:master into master
Former-commit-id: 9352e4cc0c
2024-07-22 15:48:03 +08:00
tzwang 61d4ea3af7 added deployinstance logics
Former-commit-id: 84e32bcb69
2024-07-22 15:47:20 +08:00
tzwang d24f5dd7a8 add deployinstance model
Former-commit-id: 0beb6347de
2024-07-22 15:14:05 +08:00
tzwang 08bdfd7f1e Merge pull request 'added DeployInstanceList' (#265) from tzwang/pcm-coordinator:master into master
Former-commit-id: dd11146bfc
2024-07-18 11:05:46 +08:00
tzwang 4e63d24aa4 added DeployInstanceList
Former-commit-id: 8c76d8c87f
2024-07-18 11:05:19 +08:00
tzwang 46a1e6dc0b Merge pull request 'update imageinference' (#264) from tzwang/pcm-coordinator:master into master
Former-commit-id: 18be398c77
2024-07-18 10:56:23 +08:00
tzwang 3b030e661d update imageinference
Former-commit-id: a3cde2d1d3
2024-07-18 10:54:35 +08:00
tzwang 4f3418eb28 update imageinference
Former-commit-id: e184c0f785
2024-07-16 17:43:34 +08:00
tzwang 74841c0655 Merge pull request 'updated aioption struct' (#263) from tzwang/pcm-coordinator:master into master
Former-commit-id: 30cc75a85d
2024-07-12 17:59:37 +08:00
tzwang 4120d60511 updated aioption
Former-commit-id: ba671ba0ca
2024-07-12 17:58:43 +08:00
tzwang a5e6313974 updated clusterResource stats
Former-commit-id: 165801769d
2024-07-12 17:39:17 +08:00
tzwang 7d2ac609e1 updated clusterResource stats
Former-commit-id: 8ecbfaedf3
2024-07-12 17:38:49 +08:00
jagger 7aff254442 fix ci/cd bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 21e0db72fa
2024-07-12 11:09:46 +08:00
tzwang dc59be8eba Merge pull request 'fix imageinfer bugs' (#262) from tzwang/pcm-coordinator:master into master
Former-commit-id: cc5871d2d1
2024-07-10 18:40:15 +08:00
tzwang 0deaf16f7d fix imageinfer bugs
Former-commit-id: c12a5a3dba
2024-07-10 18:38:16 +08:00
tzwang 063024a8fa Merge pull request 'fix sync status bugs' (#261) from tzwang/pcm-coordinator:master into master
Former-commit-id: 4ab0f1aa1f
2024-07-08 17:09:48 +08:00
tzwang 1f19eda9fb fix sync status bugs
Former-commit-id: cc45b03277
2024-07-08 17:08:36 +08:00
devad ad7efcc226 refactor: delete .devops/rpc.yml
Former-commit-id: 7380b83758
2024-07-04 02:34:33 +00:00
devad 1f03829dba refactor: delete .devops/api-ci.yml
Former-commit-id: 5b041e4c58
2024-07-04 02:34:26 +00:00
devad ebafb68559 Update Dockerfile
Former-commit-id: 49a23cb5b0
2024-07-04 10:29:08 +08:00
devad 832b2a485d refactor: .devops/build.yml
Former-commit-id: 84d8c12f07
2024-07-04 01:26:01 +00:00
devad bc5a526c1e refactor: .devops/build.yml
Former-commit-id: fc06510e01
2024-07-04 01:24:32 +00:00
devad 11e64d8fb5 feat: .devops/build.yml
Former-commit-id: 7ce107b663
2024-07-04 01:17:45 +00:00
jagger 6aa89132a8 fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 2d3e239f42
2024-07-03 16:10:50 +08:00
qiwang c60c2a819f Merge pull request 'update vm 0703' (#260) from master_wq_infer into master
Former-commit-id: 940176d831
2024-07-03 11:29:35 +08:00
qiwang c2f6d668ff Merge remote-tracking branch 'origin/master' into master_wq_infer
Former-commit-id: ca2cdc6a0b
2024-07-03 11:27:25 +08:00
qiwang d648394d08 fix: update task_vm 0703
Former-commit-id: bd0465a6b4
2024-07-03 11:26:10 +08:00
zhouqunjie ce65e5f4a0 Merge pull request 'restructure' (#259) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: 8c7054323a
2024-07-03 09:48:13 +08:00
Jake 78b3261492 restructure
Former-commit-id: 85ed149ca1
2024-07-03 09:46:33 +08:00
Jake a0ced1bcdd Merge branch 'master' of https://gitlink.org.cn/zhouqunjie/pcm-coordinator
# Conflicts:
#	api/desc/inference/inference.api
#	api/internal/logic/inference/inferencetaskdetaillogic.go
#	api/internal/types/types.go


Former-commit-id: d3d48e1b97
2024-07-03 09:05:34 +08:00
tzwang 1a00d3e77f Merge pull request 'fix tasklist bugs' (#258) from tzwang/pcm-coordinator:master into master
Former-commit-id: e3891d047b
2024-06-28 18:11:36 +08:00
tzwang 180e8fabf1 fix pagelist bugs
Former-commit-id: 12fdb36125
2024-06-28 18:09:19 +08:00
devad ce86e01cb9 refactor: .devops/api-ci.yml
Former-commit-id: 26de3f099e
2024-06-28 03:05:33 +00:00
jagger 5784840bf2 fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 64e69c712a
2024-06-28 11:00:56 +08:00
devad d0d42e32a9 refactor: .devops/api-ci.yml
Former-commit-id: 9c561ef36f
2024-06-28 02:58:03 +00:00
devad f5983fb9a1 refactor: .devops/api-ci.yml
Former-commit-id: 36b0d664f5
2024-06-28 02:55:36 +00:00
devad ed242ed515 refactor: .devops/api-ci.yml
Former-commit-id: 7e5d7fa617
2024-06-28 02:43:07 +00:00
devad fadeb666ff feat: .devops/api-ci.yml
Former-commit-id: 9aaf827df3
2024-06-28 02:41:49 +00:00
zhangweiii b804be8376 Merge pull request 'screen' (#257) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: 79b5fff86d
2024-06-28 09:59:19 +08:00
jagger 4f36d9325c fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 9b912a88dc
2024-06-28 09:25:16 +08:00
zhangwei 6315d8c5e1 screen
Former-commit-id: e5c25ffa60
2024-06-28 09:24:58 +08:00
zhangwei 047b9ff912 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: b4e6a91899
2024-06-28 09:09:15 +08:00
devad 5ba09371c1 fix bugs
Former-commit-id: 4e5d6953eb
2024-06-28 00:48:52 +00:00
tzwang 55d7906115 Merge pull request 'fix staticweight bugs' (#256) from tzwang/pcm-coordinator:master into master
Former-commit-id: 7ccd2fcf78
2024-06-27 17:45:52 +08:00
tzwang 03fe44be19 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 712208c0b8
2024-06-27 17:45:06 +08:00
tzwang 0cc7c186c5 fix staticweight bug
Former-commit-id: 982092d0ae
2024-06-27 17:44:54 +08:00
jagger 0b23594787 fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: e171caddd1
2024-06-27 17:42:24 +08:00
jagger 605745d0fe fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 588fc8dca5
2024-06-27 17:33:10 +08:00
jagger 20f538da5b fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: e6b870d4a7
2024-06-27 17:26:51 +08:00
jagger 785ce4f22c fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: ea26e0ca40
2024-06-27 17:07:03 +08:00
jagger f823538feb fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 9770d848e7
2024-06-27 16:52:25 +08:00
jagger 5cc569b431 Merge remote-tracking branch 'upstream/master' into upmaster
Former-commit-id: 5cb5ec7b20
2024-06-27 15:54:46 +08:00
jagger 79b5134594 fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 37b5cbe848
2024-06-27 15:54:21 +08:00
tzwang 8db36853c5 Merge pull request 'fix staticweight bugs' (#255) from tzwang/pcm-coordinator:master into master
Former-commit-id: fa87ec18c5
2024-06-27 15:45:44 +08:00
tzwang e5582bbbcb fix staticweight bug
Former-commit-id: fe3017c8e0
2024-06-27 15:44:58 +08:00
tzwang ee87491df4 fix imageinfer api bug
Former-commit-id: 4efe95aa95
2024-06-27 11:20:05 +08:00
qiwang c83412b42f Merge pull request 'update task_vm vminfo 0627' (#254) from master_wq_infer into master
Former-commit-id: fc9b235366
2024-06-27 10:05:12 +08:00
qiwang d4ccd8e716 Merge remote-tracking branch 'origin/master' into master_wq_infer
Former-commit-id: e96dddf8fe
2024-06-27 09:56:51 +08:00
qiwang 54bf196b5f fix: update task_vm 0626
Former-commit-id: 2dede3eca7
2024-06-27 09:52:35 +08:00
zhangwei 1cd3fbb1e2 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: a6b8cdc300
2024-06-27 09:15:03 +08:00
tzwang e5c17d1a92 Merge pull request 'fix imageinfer bugs' (#253) from tzwang/pcm-coordinator:master into master
Former-commit-id: dad65ff462
2024-06-26 18:38:48 +08:00
tzwang 28e9deea2c fix imageinfer api bug
Former-commit-id: 1b914196fd
2024-06-26 18:35:15 +08:00
tzwang 10e39bbd61 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: b9a6313598
2024-06-26 17:14:02 +08:00
qiwang 3b72e45609 Merge pull request 'update vminfo 0626' (#252) from master_wq_infer into master
Former-commit-id: 952745cccc
2024-06-26 17:03:10 +08:00
qiwang 02d5da24f0 fix: update vminfo 0626
Former-commit-id: d3d9e20695
2024-06-26 16:58:52 +08:00
tzwang bee190493f updated taskmodel api type
Former-commit-id: 8d89e912f5
2024-06-26 16:31:09 +08:00
tzwang dd2d384c10 Merge pull request 'fix crontask bugs' (#251) from tzwang/pcm-coordinator:master into master
Former-commit-id: d9ad00b59a
2024-06-26 09:32:00 +08:00
tzwang 504b3e95d9 fix crontask bug
Former-commit-id: 0a317a3ff1
2024-06-26 09:28:08 +08:00
tzwang 86397eb0a6 Merge pull request 'fix tasklist bugs' (#250) from tzwang/pcm-coordinator:master into master
Former-commit-id: d822ad04d4
2024-06-25 22:59:06 +08:00
tzwang c2f5349f5c fix tasklist bugs
Former-commit-id: f97b9f3eac
2024-06-25 22:55:12 +08:00
tzwang 7cdd089dd8 Merge pull request 'fix crontask bugs' (#249) from tzwang/pcm-coordinator:master into master
Former-commit-id: 4888b8fb91
2024-06-25 22:13:26 +08:00
tzwang 27dd00af1c fix crontask bug
Former-commit-id: 545109fd92
2024-06-25 22:07:11 +08:00
tzwang 5bb6a21235 Merge pull request 'fix infer api bugs' (#248) from tzwang/pcm-coordinator:master into master
Former-commit-id: fce6ce6b33
2024-06-25 21:36:59 +08:00
tzwang c0b64237ba updated textinfer api
Former-commit-id: 0ae4e41fae
2024-06-25 21:33:28 +08:00
jagger 127c10de85 fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: b7dc164417
2024-06-25 20:53:22 +08:00
qiwang 7cf6423270 fix: add image log 0625
Former-commit-id: 513de69ad8
2024-06-25 20:41:19 +08:00
qiwang 5986898a1e Merge remote-tracking branch 'origin/master'
Former-commit-id: 896e2ef9f2
2024-06-25 20:28:11 +08:00
qiwang 62923ca197 fix: add iamge log 0625
Former-commit-id: c48e976f5b
2024-06-25 20:27:54 +08:00
jagger 8428cc0ebb fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 04902084af
2024-06-25 20:25:47 +08:00
qiwang f66f4d15ff Merge pull request 'update ai 0625' (#247) from master_wq_aireasoning into master
Former-commit-id: 0e42c83392
2024-06-25 20:07:22 +08:00
qiwang cf0491bc8b Merge remote-tracking branch 'origin/master' into master_wq_aireasoning
Former-commit-id: dbdcf9d4a6
2024-06-25 20:01:44 +08:00
qiwang 45b1171fb0 fix: update taskai 0625
Former-commit-id: 8f0176a0e3
2024-06-25 20:01:38 +08:00
tzwang 886c7cf1a8 Merge pull request 'fix textinfer bugs' (#246) from tzwang/pcm-coordinator:master into master
Former-commit-id: 96808c3c7f
2024-06-25 19:23:01 +08:00
tzwang fd0e823490 updated textinfer api
Former-commit-id: d0c9203bfb
2024-06-25 19:19:48 +08:00
tzwang 25df0704ea Merge pull request 'updated textinfer api' (#245) from tzwang/pcm-coordinator:master into master
Former-commit-id: 7a5f76a8df
2024-06-25 18:46:39 +08:00
tzwang ee58f60bc6 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 0e6fd2e792
2024-06-25 18:42:51 +08:00
tzwang 125c9a3ce3 updated textinfer api
Former-commit-id: 462ab959ad
2024-06-25 18:42:42 +08:00
tzwang 2d8ce51ad6 Merge pull request 'added textinfer api' (#244) from tzwang/pcm-coordinator:master into master
Former-commit-id: 108b1a8c78
2024-06-25 18:27:38 +08:00
tzwang e6b9d3d23b added textinfer api
Former-commit-id: bfdce90251
2024-06-25 18:19:18 +08:00
tzwang 60012ab0fb Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 08477e9764
2024-06-25 18:17:49 +08:00
tzwang c9084ff093 added textinference api
Former-commit-id: ac9509e26c
2024-06-25 17:12:37 +08:00
tzwang 1ee960f52a added textinference api
Former-commit-id: d32678e386
2024-06-25 17:06:40 +08:00
tzwang 8e81dc9390 Merge pull request 'fix octopus imageinfer url bugs' (#243) from tzwang/pcm-coordinator:master into master
Former-commit-id: 883c58b1d1
2024-06-25 15:57:02 +08:00
tzwang 2cd7f793b4 fix octopus imageUrls bugs
Former-commit-id: 80d1702160
2024-06-25 15:53:12 +08:00
qiwang 4b4ed4b2ba Merge pull request 'update ai 0625' (#242) from master_wq_aireasoning into master
Former-commit-id: 3d23e2d9db
2024-06-25 10:43:12 +08:00
qiwang fe022df672 Merge remote-tracking branch 'origin/master' into master_wq_aireasoning
Former-commit-id: eb2e773773
2024-06-25 10:36:59 +08:00
qiwang b880b5b2eb fix: update taskai 0625
Former-commit-id: 0297a4c6a4
2024-06-25 10:36:50 +08:00
qiwang 21a22614b1 Merge pull request 'update ai 0625' (#241) from master_wq_aireasoning into master
Former-commit-id: b940c8fcff
2024-06-25 10:16:14 +08:00
qiwang 4572a67e6c Merge remote-tracking branch 'origin/master' into master_wq_aireasoning
Former-commit-id: 5455b81b0f
2024-06-25 10:11:53 +08:00
qiwang 49c415adab fix: update taskai 0625
Former-commit-id: 712cc1b7bc
2024-06-25 10:11:47 +08:00
qiwang ac683e2329 fix: update taskai 0625
Former-commit-id: 1e45411185
2024-06-25 10:09:01 +08:00
zhangwei ba46c23ecd Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 803dbd4a65
2024-06-25 09:32:37 +08:00
tzwang 3ec3adc6a1 Merge pull request 'fix aicron bugs' (#240) from tzwang/pcm-coordinator:master into master
Former-commit-id: 9df923975a
2024-06-24 18:35:02 +08:00
tzwang 1fecfb409b fix aiCron bugs
Former-commit-id: 1e4bd6e3bb
2024-06-24 18:31:16 +08:00
zhangwei c25cc58f3e Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: a6430e7329
2024-06-22 22:58:52 +08:00
tzwang 13a99c2f73 Merge pull request 'fix aitask bugs' (#239) from tzwang/pcm-coordinator:master into master
Former-commit-id: 4d4a02505f
2024-06-22 22:35:58 +08:00
tzwang d96b150b7d fix aitask bugs
Former-commit-id: be342bbe8f
2024-06-22 22:32:38 +08:00
zhangwei b3b9acc4bd Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 98b5feb798
2024-06-22 22:07:46 +08:00
tzwang 8c1415e9fa Merge pull request 'fix aitask bugs' (#238) from tzwang/pcm-coordinator:master into master
Former-commit-id: 1c42c4ca87
2024-06-22 21:47:11 +08:00
tzwang a25eba9f96 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 9d4435a0bf
2024-06-22 21:43:14 +08:00
tzwang 2f8aeed716 fix aitask bugs
Former-commit-id: f27191add1
2024-06-22 21:42:57 +08:00
tzwang 3363408433 Merge pull request 'fix tasklimit bugs' (#237) from tzwang/pcm-coordinator:master into master
Former-commit-id: a85fa2d644
2024-06-22 21:20:15 +08:00
zhangwei 7f791a9e6b Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 0c57af8f02
2024-06-22 21:18:20 +08:00
tzwang 4fd24d2f80 fix aitask bugs
Former-commit-id: 1fbc69fee0
2024-06-22 21:16:51 +08:00
jagger 984edd943d fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 881a700c2d
2024-06-22 21:03:22 +08:00
zhangwei 5ab5fbf2cc Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 385f5f1c52
2024-06-22 20:42:44 +08:00
tzwang 57ebcf92be Merge pull request 'fix aitask time bugs' (#236) from tzwang/pcm-coordinator:master into master
Former-commit-id: 96c776d1c0
2024-06-22 20:25:10 +08:00
tzwang dbb54c3924 fix aitasktime bugs
Former-commit-id: 5ba30dd2fc
2024-06-22 20:21:17 +08:00
tzwang ae657125d1 Merge pull request 'fix noticeinfo bugs' (#235) from tzwang/pcm-coordinator:master into master
Former-commit-id: 5f1f61275d
2024-06-22 19:23:41 +08:00
zhangwei 9c3255a446 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: b591317824
2024-06-22 19:21:45 +08:00
zhangwei 6bdfa98ff0 screen
Former-commit-id: 3083efc6ab
2024-06-22 19:21:31 +08:00
tzwang f193d6ab1f fix noticeinfo bugs
Former-commit-id: 6261719c61
2024-06-22 19:20:14 +08:00
zhouqunjie 8f1fd4af5b tasktypedict info
Former-commit-id: c750780c29
2024-06-22 18:22:14 +08:00
zhangwei 4a1bdc268e Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
# Conflicts:
#	api/desc/core/pcm-core.api


Former-commit-id: e6ab78097d
2024-06-22 17:48:44 +08:00
jagger 4185ffac47 fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 7bb2b54fa6
2024-06-22 17:44:30 +08:00
tzwang 7da9c4d240 Merge pull request 'fix shuguang imageinferurl bugs' (#234) from tzwang/pcm-coordinator:master into master
Former-commit-id: f8b8dfe7c0
2024-06-22 17:36:48 +08:00
tzwang 13d51e2b81 fix shuguangai imageinferurl api
Former-commit-id: c4a9034308
2024-06-22 17:33:21 +08:00
qiwang 47a06945be Merge pull request 'update taskai 0622' (#233) from master_wq_aireasoning into master
Former-commit-id: 072748a28a
2024-06-22 17:18:21 +08:00
zhangwei d851ec5572 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 59b87d86ec
2024-06-22 17:16:31 +08:00
tzwang 9895ec5591 Merge pull request 'fix taskaisub model struct' (#232) from tzwang/pcm-coordinator:master into master
Former-commit-id: 6c402b63e9
2024-06-22 17:15:24 +08:00
qiwang 7e56973fc6 Merge remote-tracking branch 'origin/master' into master_wq_aireasoning
# Conflicts:
#	pkg/models/taskaisubmodel_gen.go


Former-commit-id: af771f9854
2024-06-22 17:15:11 +08:00
zhangwei 1f537e1686 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: e643d7f753
2024-06-22 17:13:38 +08:00
tzwang 424a53b342 fix taskaisub model
Former-commit-id: bbcda0e965
2024-06-22 17:12:02 +08:00
qiwang 29a8a01861 fix: update taskai 0622
Former-commit-id: 1b9957c3c7
2024-06-22 17:11:43 +08:00
qiwang 855e7c739e fix: update taskai 0622
Former-commit-id: e34b868020
2024-06-22 17:07:05 +08:00
zhangwei 19ca559051 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 352ba59abd
2024-06-22 16:55:22 +08:00
zhangwei 841e6c36f2 screen
Former-commit-id: 60c449340e
2024-06-22 16:54:32 +08:00
zhouqunjie 0e11cbd5f2 task ai sub
Former-commit-id: 31fce577fe
2024-06-22 16:20:43 +08:00
qiwang 5757cd47a3 fix: update modelarts access_address 0622
Former-commit-id: c913e9759a
2024-06-22 15:44:11 +08:00
tzwang 031b016476 Merge pull request 'fix imageinfer bugs' (#231) from tzwang/pcm-coordinator:master into master
Former-commit-id: e41c76c6d8
2024-06-22 15:41:52 +08:00
tzwang 3891d1c73b updated imageinfer api
Former-commit-id: 2f5167a75b
2024-06-22 15:38:17 +08:00
jagger 21f5919396 fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 1178ca75f5
2024-06-22 15:26:17 +08:00
zhouqunjie 48a3fc718e Merge remote-tracking branch 'origin/master'
Former-commit-id: 843a128665
2024-06-22 15:20:53 +08:00
zhouqunjie 3f32ddb1f6 task ai sub
Former-commit-id: 044290e63a
2024-06-22 15:20:45 +08:00
zhouqunjie b626a9a185 Revert "task ai sub"
This reverts commit 7ae6282867 [formerly 33de4df1da].


Former-commit-id: b34a6c977c
2024-06-22 15:10:09 +08:00
qiwang d6e6176294 fix: update modelarts image 0622
Former-commit-id: fb842f9690
2024-06-22 15:04:02 +08:00
zhouqunjie 7ae6282867 task ai sub
Former-commit-id: 33de4df1da
2024-06-22 14:55:43 +08:00
zhangwei 6f1edf393e Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 801b0b3ade
2024-06-22 10:54:05 +08:00
jagger df733bcff2 Dockerfile dependent upgrade
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: a37f526225
2024-06-22 10:13:14 +08:00
zhangwei f368684027 screen
Former-commit-id: a4310fbb6c
2024-06-22 10:01:44 +08:00
tzwang ab9e7071f6 Merge pull request 'updated imageinfer api' (#230) from tzwang/pcm-coordinator:master into master
Former-commit-id: 5a85df1b43
2024-06-21 20:14:23 +08:00
tzwang 0f271360d2 updated imageinfer api
Former-commit-id: 2b0e2a5639
2024-06-21 20:10:51 +08:00
tzwang f600a0c98d Merge pull request 'updated imageinfer api' (#229) from tzwang/pcm-coordinator:master into master
Former-commit-id: a0c5f2c659
2024-06-21 19:31:13 +08:00
tzwang 1bfd8e052a updated imageinfer api
Former-commit-id: 56ea124571
2024-06-21 19:27:33 +08:00
tzwang 928ba4f4dd Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: e63c9ac9bf
2024-06-21 16:42:52 +08:00
qiwang ec23b29052 Merge pull request 'update modelarts 0621' (#228) from master-wq into master
Former-commit-id: b2a2002c1b
2024-06-21 15:55:04 +08:00
qiwang e41e15295c fix: update modelarts 0621
Former-commit-id: b06631520c
2024-06-21 15:43:29 +08:00
tzwang 63e6303152 added modeltypes api
Former-commit-id: 5640bcde20
2024-06-21 15:20:46 +08:00
tzwang b412019647 updated imageinfer api
Former-commit-id: 0f843ea0e8
2024-06-21 11:40:34 +08:00
zhouqunjie 63fab9b14c Merge pull request 'call ac-rpc in coordinator to get infer url' (#227) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: b8df413891
2024-06-21 10:54:48 +08:00
zhouqunjie 81b4025e9b call ac-rpc in coordinator to get infer url
Former-commit-id: 87c47b7497
2024-06-21 10:51:10 +08:00
qiwang 053cba88e8 Merge pull request 'update vmInfo' (#226) from master-wq into master
Former-commit-id: d73bef60d5
2024-06-21 10:39:24 +08:00
qiwang daa41d1dbc Merge remote-tracking branch 'origin/master' into master-wq
Former-commit-id: 8638366742
2024-06-21 10:32:12 +08:00
qiwang e845c2dde1 fix: update vm 0621
Former-commit-id: a41b7b4276
2024-06-21 10:31:56 +08:00
qiwang 421afa3839 fix: update vm 0621
Former-commit-id: 2a4cc67256
2024-06-21 10:28:06 +08:00
tzwang 7ab1758f5a Merge pull request 'added imageinfer api' (#225) from tzwang/pcm-coordinator:master into master
Former-commit-id: 799bf77a7e
2024-06-20 20:44:03 +08:00
tzwang 734280ea00 added imageinfer api
Former-commit-id: 96ae7d54f3
2024-06-20 20:39:10 +08:00
tzwang bee590f969 updated imageinference api
Former-commit-id: f8b560cea1
2024-06-20 17:16:06 +08:00
tzwang 99d96327ac updated imageinference api
Former-commit-id: f02b83693b
2024-06-20 11:31:29 +08:00
tzwang 0a0182a1bb updated imageinference api
Former-commit-id: 87a8f48882
2024-06-19 19:35:01 +08:00
tzwang eb4ca38875 updated imageinference api
Former-commit-id: cb39280dcc
2024-06-19 19:30:09 +08:00
tzwang 5a0d3a9428 updated imageinference api
Former-commit-id: 37f69eb747
2024-06-19 19:22:46 +08:00
tzwang cfecebc3b8 added imageinference api
Former-commit-id: 88cfe68d5d
2024-06-19 16:24:51 +08:00
tzwang b4b93d2c09 added imageinference api
Former-commit-id: 8bf23cca01
2024-06-19 16:06:47 +08:00
qiwang 4181adbbf2 Merge pull request 'update modelarts 0618' (#224) from master-wq into master
Former-commit-id: e5a2115b2b
2024-06-18 17:13:46 +08:00
qiwang f5e737696b Merge remote-tracking branch 'origin/master' into master-wq
Former-commit-id: 00b07c6e6c
2024-06-18 17:06:43 +08:00
qiwang 877433d224 fix: update modelarts 0618
Former-commit-id: 6c41d56380
2024-06-18 17:00:47 +08:00
jagger 523f2a594a Add dependency directories
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 5205416f5a
2024-06-17 11:32:37 +08:00
qiwang 7cae5b03ae Merge pull request 'update modelarts' (#223) from master-wq into master
Former-commit-id: 8ec84383c3
2024-06-14 17:34:02 +08:00
qiwang d09b872f42 Merge remote-tracking branch 'origin/master' into master-wq
Former-commit-id: a81094f3b6
2024-06-14 17:26:48 +08:00
qiwang a16f9fc13d fix: update modelarts 0614
Former-commit-id: d7c0b75c05
2024-06-14 17:16:55 +08:00
zhangweiii e048f1bd8c Merge pull request 'Remove redundant code' (#222) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: d4b5d263f6
2024-06-11 15:16:49 +08:00
zhangwei 7a9578cd52 移除多余代码
Former-commit-id: bda0bf7f31
2024-06-11 10:46:32 +08:00
zhangwei 83fa3218ab Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
# Conflicts:
#	api/internal/cron/cron.go
#	api/internal/scheduler/database/aiStorage.go


Former-commit-id: 30a9579deb
2024-06-11 09:05:45 +08:00
zhangwei 8ba618bfdd 移除多余代码
Former-commit-id: 94004d05b1
2024-06-11 09:03:53 +08:00
tzwang 9cd2e072b2 Merge pull request 'fix noticeinfo bugs' (#221) from tzwang/pcm-coordinator:master into master
Former-commit-id: 738c04b5d9
2024-06-07 18:55:57 +08:00
tzwang b0de44251b fix noticeinfo bugs
Former-commit-id: fb2dfbd4d7
2024-06-07 18:52:24 +08:00
tzwang 4b2087311a Merge pull request 'fix bugs' (#220) from tzwang/pcm-coordinator:master into master
Former-commit-id: 818b7110f1
2024-06-07 14:55:07 +08:00
tzwang ed6cf043d0 fix clusterResouces bugs
Former-commit-id: 4a96ca7331
2024-06-07 14:51:48 +08:00
tzwang 11e01683a2 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 7b49a92d6a
2024-06-07 14:48:30 +08:00
tzwang 813e25fb3b fix clusterResouces bugs
Former-commit-id: d9dc30e426
2024-06-07 14:48:16 +08:00
qiwang e84cb0463b Merge pull request 'update vminfo 0607' (#219) from master-wq into master
Former-commit-id: d60022f2e5
2024-06-07 11:00:48 +08:00
tzwang 8bd0fcac07 Merge pull request 'fix clusterResouces bugs' (#218) from tzwang/pcm-coordinator:master into master
Former-commit-id: 065653b186
2024-06-07 10:48:41 +08:00
tzwang 226fd9a7bd fix clusterResouces bugs
Former-commit-id: 390a0d6762
2024-06-07 10:45:26 +08:00
tzwang 7bfbed0ce9 Merge pull request 'fix clusterResouces bugs' (#217) from tzwang/pcm-coordinator:master into master
Former-commit-id: dd2de7fa06
2024-06-07 10:42:39 +08:00
tzwang e53e9d5800 fix clusterResouces bugs
Former-commit-id: da9b51cd92
2024-06-07 10:38:10 +08:00
qiwang e851b16c0e fix: update vmInfo 0607
Former-commit-id: 029eeaba93
2024-06-07 09:53:19 +08:00
tzwang f4d1587527 updated clusterResource model
Former-commit-id: d279ddc845
2024-06-07 09:39:59 +08:00
qiwang f2fb6bb4ec fix: update vmInfo 060601
Former-commit-id: ccb597154a
2024-06-07 09:12:05 +08:00
jagger 2f45fef202 fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 7ea30faf01
2024-06-06 20:59:58 +08:00
tzwang 4d97270321 Merge pull request 'fix clusterResouces bugs' (#216) from tzwang/pcm-coordinator:master into master
Former-commit-id: 39e79e5834
2024-06-06 19:13:00 +08:00
tzwang ccbf2a00f1 fix clusterResouces bugs
Former-commit-id: 52c5b84d89
2024-06-06 19:08:51 +08:00
tzwang 83f8865dd2 Merge pull request 'fix clusterResouces bugs' (#215) from tzwang/pcm-coordinator:master into master
Former-commit-id: 85a2da220a
2024-06-06 17:13:36 +08:00
tzwang 8ffc0106d7 fix clusterResouces bugs
Former-commit-id: c977dc8748
2024-06-06 17:10:06 +08:00
qiwang 5db1db5bea Merge pull request 'update vminfo 060601' (#214) from master-wq into master
Former-commit-id: 5c1c0d40d8
2024-06-06 12:28:10 +08:00
qiwang c2a3b77aff fix: update vmInfo 060601
Former-commit-id: 8d2c4ce27e
2024-06-06 12:24:11 +08:00
tzwang 014d07ba50 Merge pull request 'added cron updateClusterResources' (#213) from tzwang/pcm-coordinator:master into master
Former-commit-id: 3189cf9d5f
2024-06-06 10:57:58 +08:00
tzwang b61e434f75 added cron updateClusterResources
Former-commit-id: f38bd68df8
2024-06-06 10:53:48 +08:00
qiwang 04f0eae608 Merge pull request 'update vminfo 0606' (#212) from master-wq into master
Former-commit-id: b0960aa18e
2024-06-06 10:51:13 +08:00
qiwang a1d6951493 fix: update vmInfo 0606
Former-commit-id: 98a2d98122
2024-06-06 10:47:28 +08:00
qiwang bf0ae0877d Merge pull request 'update vminfo 0606' (#211) from master-wq into master
Former-commit-id: 1299105095
2024-06-06 10:37:46 +08:00
qiwang db9fe273d8 fix: update vmInfo 0606
Former-commit-id: a1711e74b8
2024-06-06 10:30:48 +08:00
devad 8de946e139 Merge pull request 'fix bug' (#209) from devad/pcm-coordinator:master into master
Former-commit-id: c354ec6d0a
2024-06-05 18:36:37 +08:00
tzwang 7694577478 Merge pull request 'added updateadpter' (#210) from tzwang/pcm-coordinator:master into master
Former-commit-id: d0aa503293
2024-06-05 18:34:45 +08:00
tzwang da4c0e4717 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: f4d1ca4412
2024-06-05 18:29:53 +08:00
tzwang cdcbc84372 added cron updateadapters
Former-commit-id: 00c5b593ca
2024-06-05 18:29:30 +08:00
jagger 255643d246 Merge remote-tracking branch 'upstream/master' into upstream
Former-commit-id: b6ced17038
2024-06-05 17:57:27 +08:00
jagger ba84c312a3 fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: ac8e28da5b
2024-06-05 17:56:59 +08:00
qiwang 7de7d92930 Merge pull request 'update vminfo' (#208) from master-wq into master
Former-commit-id: 3d117351d7
2024-06-05 17:29:56 +08:00
qiwang f66138afa0 Merge remote-tracking branch 'origin/master' into master-wq
Former-commit-id: e150842727
2024-06-05 17:25:22 +08:00
qiwang c227103dbd fix: update vmInfo
Former-commit-id: 2bfc197d20
2024-06-05 17:25:03 +08:00
zhangwei 68e497760f 移除多余代码
Former-commit-id: 6e245fdcda
2024-06-05 15:54:25 +08:00
jagger e29002b4d6 fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: a6d7814781
2024-06-04 17:36:24 +08:00
devad a908f671a6 Merge pull request 'fix bug' (#207) from devad/pcm-coordinator:master into master
Former-commit-id: ee2394c862
2024-06-04 15:27:10 +08:00
jagger d8e8370e5b fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 53039ebcdb
2024-06-04 15:23:16 +08:00
devad 378ed17411 Merge pull request 'fix bug' (#206) from devad/pcm-coordinator:master into master
Former-commit-id: 36aa756e18
2024-05-31 17:13:17 +08:00
jagger 321a054df2 fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: afd3e450e1
2024-05-31 17:09:00 +08:00
qiwang 91e71e1b80 Merge pull request 'update vminfo' (#205) from master-wq into master
Former-commit-id: 5fbf4b2e62
2024-05-26 17:30:34 +08:00
qiwang 641a762620 fix: update vmInfo
Former-commit-id: fbc9276038
2024-05-26 17:25:56 +08:00
qiwang 1a089124bb Merge pull request 'update vmInfo' (#204) from master-wq into master
Former-commit-id: d3a873d45c
2024-05-25 10:08:04 +08:00
qiwang 79620eacdb Merge pull request 'update vmInfo' (#203) from master-wq into master
Former-commit-id: 7331583d19
2024-05-24 16:45:16 +08:00
qiwang 5738c04525 Merge remote-tracking branch 'origin/master' into master-wq
Former-commit-id: 6c5ab94b5e
2024-05-24 16:40:11 +08:00
qiwang f73f2e8456 fix: update vmInfo
Former-commit-id: c3bce34810
2024-05-24 16:35:22 +08:00
qiwang c3a6190fa1 Merge pull request 'update vmInfo' (#202) from master-wq into master
Former-commit-id: cf388c3e00
2024-05-23 16:10:53 +08:00
qiwang db11ebdd67 Merge remote-tracking branch 'origin/master' into master-wq
Former-commit-id: 23324fa3ab
2024-05-23 16:05:29 +08:00
qiwang 68c4469969 fix: update vmInfo
Former-commit-id: 99cbee2f2c
2024-05-23 16:05:08 +08:00
jagger 55cece2e7d fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 35f7cdd644
2024-05-22 11:57:49 +08:00
tzwang 969fb1d832 Merge pull request 'fix task bugs' (#201) from tzwang/pcm-coordinator:master into master
Former-commit-id: 1cbcfb05bd
2024-05-22 11:55:55 +08:00
tzwang 7fcfcfe7ac Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 28da880d85
2024-05-22 11:52:05 +08:00
tzwang 296901c592 fix LOG bugs
Former-commit-id: 15e2a7f765
2024-05-22 11:51:46 +08:00
jagger f70207a2a4 fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 489bb153b6
2024-05-22 11:41:56 +08:00
tzwang 75086c1d7e Merge pull request 'fix tasklog bugs' (#200) from tzwang/pcm-coordinator:master into master
Former-commit-id: f613c07c15
2024-05-22 10:12:53 +08:00
devad 40f65a958b Merge pull request 'fix bug' (#199) from devad/pcm-coordinator:master into master
Former-commit-id: 63eeb98474
2024-05-22 10:09:31 +08:00
tzwang 705afead2b fix LOG bugs
Former-commit-id: 71434c3baf
2024-05-22 10:08:31 +08:00
jagger 10456d0e57 fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 7bdaf82a11
2024-05-22 10:01:57 +08:00
qiwang 1f28682e6c Merge pull request 'add RandomStrategy' (#198) from master-wq into master
Former-commit-id: cb88296195
2024-05-21 19:03:20 +08:00
qiwang bbccccb408 Merge remote-tracking branch 'origin/master' into master-wq
# Conflicts:
#	api/internal/scheduler/schedulers/aiScheduler.go


Former-commit-id: 4a5c08df66
2024-05-21 19:00:18 +08:00
qiwang ed059e3863 Merge remote-tracking branch 'origin/master' into master-wq
Former-commit-id: f59ee459bf
2024-05-21 18:56:46 +08:00
qiwang 7e8670492f fix: add ai Random RandomStrategy
Former-commit-id: 005e2279af
2024-05-21 18:56:18 +08:00
jagger c8a3734d74 fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: f8d094ff12
2024-05-21 18:43:41 +08:00
tzwang 0e479bba2b Merge pull request 'fix taskresult bugs' (#197) from tzwang/pcm-coordinator:master into master
Former-commit-id: 9c354fa83a
2024-05-21 16:34:42 +08:00
tzwang 9a2953ae42 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 635b0e3e18
2024-05-21 16:31:31 +08:00
tzwang 8037550224 fix taskresult bugs
Former-commit-id: b906f3f0a6
2024-05-21 16:31:12 +08:00
tzwang c489fad8e9 Merge pull request 'fix tasklist bugs' (#196) from tzwang/pcm-coordinator:master into master
Former-commit-id: 8557465fcf
2024-05-21 15:16:12 +08:00
tzwang 246eee1b36 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: c0aa9b5fb8
2024-05-21 15:12:40 +08:00
tzwang ba26039043 fix tasklist bugs
Former-commit-id: a37be139ca
2024-05-21 15:11:54 +08:00
tzwang 22049179a8 Merge pull request 'fix strategy bugs' (#195) from tzwang/pcm-coordinator:master into master
Former-commit-id: 16ea48f023
2024-05-21 11:04:39 +08:00
tzwang bf2019bf3f Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: e464751f27
2024-05-21 11:01:25 +08:00
tzwang de5d7ec1f1 fix strategy bugs
Former-commit-id: 1a10655de7
2024-05-21 11:00:29 +08:00
jagger 01fd992d63 fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 0fc35eae8d
2024-05-21 10:53:51 +08:00
tzwang f2bb7d673a Merge pull request 'fix tasklist bugs' (#194) from tzwang/pcm-coordinator:master into master
Former-commit-id: 31a30cf0f1
2024-05-21 10:53:41 +08:00
tzwang d4db154bc7 fix tasklist time bugs
Former-commit-id: f86a6d74fa
2024-05-21 10:50:13 +08:00
jagger b1b30d2fdb Merge remote-tracking branch 'upstream/master' into upstream
Former-commit-id: 313b664136
2024-05-21 10:44:11 +08:00
jagger f0d461cbef fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 20538e4d45
2024-05-21 10:43:31 +08:00
tzwang 477df1fb00 fix tasklist bugs
Former-commit-id: 689adf62b5
2024-05-21 10:18:50 +08:00
zhouqunjie 954c29b8ea ADD file via upload
Former-commit-id: 84e5bd2f37
2024-05-21 09:39:57 +08:00
zhouqunjie c68c943a70 Delete deploy/yaml.tar.gz
Former-commit-id: 5575cdc55e
2024-05-21 09:39:57 +08:00
jagger 375de5c4b2 fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: bf0f783538
2024-05-21 09:22:37 +08:00
tzwang 3f4d8924d8 Merge pull request 'fix tasklist bugs' (#193) from tzwang/pcm-coordinator:master into master
Former-commit-id: 2bec5f413e
2024-05-21 09:01:32 +08:00
tzwang 6a3d79c82d Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 98a7d3a544
2024-05-21 08:58:16 +08:00
tzwang 9d5e75b0c2 fix tasklist bugs
Former-commit-id: 06cd3c9ada
2024-05-21 08:57:10 +08:00
jagger 1a2e4b031a fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: b2946b0f69
2024-05-20 21:13:06 +08:00
qiwang 1d4709f66b Merge pull request 'add RandomStrategy' (#192) from master-wq into master
Former-commit-id: e475d2c4e7
2024-05-20 20:54:42 +08:00
qiwang fa1390fed2 fix: add ai Random RandomStrategy
Former-commit-id: 6293f4eeb0
2024-05-20 20:43:55 +08:00
tzwang 68ffa06ece Merge pull request 'fix tasklist bugs' (#191) from tzwang/pcm-coordinator:master into master
Former-commit-id: 150403b0de
2024-05-20 20:39:09 +08:00
tzwang bc8d65af40 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 51daa59a94
2024-05-20 20:34:25 +08:00
tzwang 00d56e62dc fix tasklist bugs
Former-commit-id: 64b3cd1678
2024-05-20 20:30:15 +08:00
qiwang af7b932962 NewRandomStrategy
Former-commit-id: 6d0df33c37
2024-05-20 20:29:28 +08:00
qiwang 122075a3cb Merge remote-tracking branch 'origin/master' into master-wq
Former-commit-id: 75a3fba2c4
2024-05-20 20:19:23 +08:00
qiwang d4e18c8796 fix: add ai Random RandomStrategy
Former-commit-id: bde21281fe
2024-05-20 20:18:37 +08:00
jagger 61f7363302 fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: adc07bd843
2024-05-20 19:58:33 +08:00
tzwang 2fe3f2f976 Merge pull request 'fix aicenter bugs' (#189) from tzwang/pcm-coordinator:master into master
Former-commit-id: 1474ff0e48
2024-05-20 19:14:55 +08:00
tzwang adfc8947ff Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 2eaff96cb7
2024-05-20 19:11:04 +08:00
tzwang 6b6aa42d01 fix aicenter bugs
Former-commit-id: d9185bf867
2024-05-20 19:10:43 +08:00
tzwang 90b3e9b027 Merge pull request 'added clusterbalance api' (#188) from tzwang/pcm-coordinator:master into master
Former-commit-id: fc0251f2c2
2024-05-20 16:52:25 +08:00
tzwang 766c862af7 added getclusterbalance api
Former-commit-id: 856cdfb1b2
2024-05-20 16:48:09 +08:00
tzwang ff117751b0 updated types
Former-commit-id: 898388856c
2024-05-20 16:19:06 +08:00
tzwang 130b116b52 added get balance api
Former-commit-id: 2c8df40865
2024-05-20 15:46:49 +08:00
tzwang 4555a50afa Merge pull request 'fix task status' (#187) from tzwang/pcm-coordinator:master into master
Former-commit-id: 08601cbd58
2024-05-20 11:20:39 +08:00
tzwang 79db3cd444 fix task time bugs
Former-commit-id: ea14c8fc26
2024-05-20 11:06:19 +08:00
tzwang 4852740e70 Merge pull request 'fix task updatetime bugs' (#186) from tzwang/pcm-coordinator:master into master
Former-commit-id: 5dda4aebfe
2024-05-19 22:57:11 +08:00
tzwang 6c724b4ab9 fix task updatedtime bugs
Former-commit-id: 226201747e
2024-05-19 22:52:41 +08:00
tzwang ed1929d356 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: a0c077a795
2024-05-19 17:06:52 +08:00
tzwang 5f3476decf Merge pull request 'fix' (#1) from devad/pcm-coordinator:master into master
Former-commit-id: 734c3784f9
2024-05-19 17:00:32 +08:00
devad a977f63f63 fix
Former-commit-id: 443ebf0046
2024-05-17 21:09:44 +08:00
tzwang ce0d5a9b32 fix db bugs
Former-commit-id: 55a997bc76
2024-05-17 19:43:25 +08:00
tzwang 25d27ac332 Merge pull request 'fix submit bugs' (#185) from tzwang/pcm-coordinator:master into master
Former-commit-id: f2f03d3e93
2024-05-17 17:42:36 +08:00
tzwang 5ecf478439 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 65ebc4dfab
2024-05-17 17:39:05 +08:00
tzwang f42a48b27f fix submit bugs
Former-commit-id: 249398644e
2024-05-17 17:38:48 +08:00
qiwang 96ab6a81a6 fix: update ai Replicas
Former-commit-id: e4f63e1505
2024-05-17 17:35:48 +08:00
tzwang e03488692b Merge pull request 'fix submit bugs' (#184) from tzwang/pcm-coordinator:master into master
Former-commit-id: 7d8763f768
2024-05-17 17:24:57 +08:00
tzwang 258258b04f fix submit bugs
Former-commit-id: b3b4da6986
2024-05-17 17:21:31 +08:00
devad daa9e05151 Merge pull request 'fix' (#183) from devad/pcm-coordinator:master into master
Former-commit-id: 4b4da69507
2024-05-17 16:59:05 +08:00
jagger 974fcf0590 fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: a8b52619ad
2024-05-17 16:53:22 +08:00
tzwang ed8889a6f9 Merge pull request 'fix aischeduler bugs' (#182) from tzwang/pcm-coordinator:master into master
Former-commit-id: b2e2007bfe
2024-05-16 18:22:20 +08:00
tzwang 02f991ec1a Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: e9d012131a
2024-05-16 18:18:21 +08:00
tzwang f8a4656d83 fix aischeduler bugs
Former-commit-id: 4df953f2a6
2024-05-16 18:17:57 +08:00
devad 2259fc5c8b Merge pull request 'fix' (#181) from devad/pcm-coordinator:master into master
Former-commit-id: 11b845eb29
2024-05-16 17:56:36 +08:00
jagger 70a8f48058 fix
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 7898052cec
2024-05-16 17:50:51 +08:00
tzwang ba367102ac Merge pull request 'fix aischeduler bugs' (#180) from tzwang/pcm-coordinator:master into master
Former-commit-id: 5d2c35a482
2024-05-16 16:59:09 +08:00
tzwang fffc3b9718 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 8deb2ba33c
2024-05-16 16:54:57 +08:00
zhangweiii 3a456348e4 Merge pull request 'Modify path' (#179) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: ce774c69e0
2024-05-16 16:50:26 +08:00
tzwang 62ecd4e2e4 fix aischeduler bugs
Former-commit-id: 887857a40b
2024-05-16 16:49:50 +08:00
zhangwei 3825703ede modify path
Former-commit-id: e65fecbe3d
2024-05-16 16:46:02 +08:00
qiwang 32b4c340be Merge pull request 'modify ai replicas' (#178) from master-wq into master
Former-commit-id: 1fe43cd8ef
2024-05-16 16:08:21 +08:00
qiwang 961ec2d790 Merge remote-tracking branch 'origin/master' into master-wq
# Conflicts:
#	api/internal/logic/schedule/schedulesubmitlogic.go
#	api/internal/scheduler/database/aiStorage.go


Former-commit-id: dd876d4244
2024-05-16 15:58:34 +08:00
qiwang b2eb0a6156 fix: update ai Replicas
Former-commit-id: f08e733c5b
2024-05-16 15:49:53 +08:00
tzwang 7101925e9c Merge pull request 'fix aitasklist bugs' (#177) from tzwang/pcm-coordinator:master into master
Former-commit-id: e174a7654e
2024-05-16 11:24:40 +08:00
tzwang c8d0f54f5c fix aitasklist bugs
Former-commit-id: b955cc4049
2024-05-16 11:20:26 +08:00
tzwang ab187a3579 Merge pull request 'updated scheduleResult' (#176) from tzwang/pcm-coordinator:master into master
Former-commit-id: 7398d71826
2024-05-15 18:34:54 +08:00
tzwang 9764c139bb updated resourcetype
Former-commit-id: 349f96c869
2024-05-15 18:31:36 +08:00
tzwang a336b737f0 updated scheduleResult
Former-commit-id: 5158fe0420
2024-05-15 18:29:20 +08:00
tzwang 95b2258e2c updated types
Former-commit-id: 4e459de033
2024-05-15 17:41:57 +08:00
tzwang 3f9e814e88 added jobid to scheduleResult api
Former-commit-id: 3a2e77a99a
2024-05-15 17:34:02 +08:00
tzwang 120dbecc1d updated aioption protobuf
Former-commit-id: 1e23b5326c
2024-05-15 16:57:40 +08:00
tzwang a64dc47c9c updated aioption api
Former-commit-id: 4f975cb266
2024-05-15 16:48:43 +08:00
tzwang cda53ae916 updated scheduleResult
Former-commit-id: 38db46a22a
2024-05-15 16:13:00 +08:00
qiwang a2342261f5 Merge pull request 'create vm task' (#175) from master-wq into master
Former-commit-id: 495d29591d
2024-05-15 15:52:03 +08:00
qiwang e4df9839ad Merge remote-tracking branch 'origin/master' into master-wq
Former-commit-id: b92e02d0b7
2024-05-15 15:47:48 +08:00
qiwang 2a478ef3ab fix: create vm task
Former-commit-id: 0686e64ffc
2024-05-15 15:47:01 +08:00
zhouqunjie 85fda53847 ADD file via upload
Former-commit-id: f77949496a
2024-05-15 10:54:09 +08:00
zhouqunjie 942ff0af82 Delete deploy/pcm.sql
Former-commit-id: 8176da185e
2024-05-15 10:53:25 +08:00
zhouqunjie e5f7296c43 ADD file via upload
Former-commit-id: 2e540a0c1c
2024-05-15 10:32:30 +08:00
zhouqunjie 8bfd6d54d6 Delete deploy/pcm-yaml.zip
Former-commit-id: 4bfedc3b22
2024-05-15 10:32:18 +08:00
tzwang 8f5d161236 Merge pull request 'fix aitask status' (#174) from tzwang/pcm-coordinator:master into master
Former-commit-id: a67aa626fc
2024-05-14 17:51:35 +08:00
tzwang 9b518d0182 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: b8f86f8afb
2024-05-14 17:48:13 +08:00
tzwang 3b5295a08e fix aitask status bugs
Former-commit-id: 4f84669624
2024-05-14 17:46:00 +08:00
zhouqunjie 91d27d99c4 Merge pull request 'fix' (#173) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: 4ba4128e94
2024-05-14 17:41:00 +08:00
Jake 896aa2c5ab fix
Former-commit-id: a9e47ada3f
2024-05-14 17:36:37 +08:00
tzwang fcd12bbe61 Merge pull request 'fix db bugs' (#172) from tzwang/pcm-coordinator:master into master
Former-commit-id: 91e8e0532c
2024-05-14 15:07:48 +08:00
tzwang bd3f60d62e fix db bugs
Former-commit-id: 3e372dc02f
2024-05-14 15:03:31 +08:00
tzwang 564380be1a Merge remote-tracking branch 'origin/master'
Former-commit-id: 1a42880f26
2024-05-14 10:49:41 +08:00
tzwang 06aea0b26a updated aitask model
Former-commit-id: c6d375391a
2024-05-14 10:49:09 +08:00
zhouqunjie 1127b2edd3 Merge pull request 'merge conflict' (#171) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: a05b4cc310
2024-05-14 10:47:04 +08:00
Jake 7d067b0082 merge conflict
Former-commit-id: b6a6a7c963
2024-05-14 10:43:58 +08:00
Jake 6304fee876 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
# Conflicts:
#	api/internal/logic/hpc/commithpctasklogic.go


Former-commit-id: b2c609dfe2
2024-05-14 10:41:23 +08:00
Jake 374bb1a5ad change log level
Former-commit-id: f8155160b3
2024-05-14 10:40:06 +08:00
tzwang e4d9f0a5dd Merge pull request 'fix task list bugs' (#170) from tzwang/pcm-coordinator:master into master
Former-commit-id: 2e5c1028a1
2024-05-14 08:50:21 +08:00
tzwang dd1142245c fix task list bugs
Former-commit-id: c71b8802cd
2024-05-14 08:46:47 +08:00
tzwang 075f3cab09 Merge pull request 'fix ai task time bugs' (#169) from tzwang/pcm-coordinator:master into master
Former-commit-id: 8908c540c2
2024-05-13 15:29:52 +08:00
tzwang 520cfc00d9 updated aitask apis
Former-commit-id: 3b5a3d75f2
2024-05-13 15:22:21 +08:00
tzwang e2fc3b8b87 fix task time bugs
Former-commit-id: ee55e0cc23
2024-05-13 11:34:45 +08:00
qiwang a48a44a05a fix: create vm task
Former-commit-id: 62cd009153
2024-05-13 10:32:15 +08:00
zhouqunjie 25ea887815 ADD file via upload
Former-commit-id: 657362611c
2024-05-13 10:06:08 +08:00
zhouqunjie b6606bc890 Delete deploy/pcm.sql
Former-commit-id: 3dec75bd71
2024-05-13 10:05:45 +08:00
zhouqunjie ffc0f11fee ADD file via upload
Former-commit-id: 3b9ec36ca7
2024-05-13 10:04:19 +08:00
zhouqunjie 6aa80d91c5 Delete deploy/pcm.sql
Former-commit-id: 778b99e294
2024-05-13 10:02:48 +08:00
zhouqunjie a6b17dd36d ADD file via upload
Former-commit-id: a02377cee6
2024-05-13 09:45:14 +08:00
zhouqunjie 48807f3eef Delete deploy/pcm-yaml.zip
Former-commit-id: 9473e8df7a
2024-05-13 09:45:14 +08:00
zhouqunjie 975e957321 ADD file via upload
Former-commit-id: b18631cbd6
2024-05-13 09:33:55 +08:00
zhouqunjie f9c5f6d158 Delete deploy/pcm.sql
Former-commit-id: bceb316dbb
2024-05-13 09:33:34 +08:00
tzwang dd545cf7cf Merge pull request 'fix resource not found' (#168) from tzwang/pcm-coordinator:master into master
Former-commit-id: 50c2b5a6df
2024-05-13 09:10:14 +08:00
tzwang 99985ec130 updated octopus cardname
Former-commit-id: a62d3350bd
2024-05-12 22:50:48 +08:00
tzwang e7eaa2be38 Merge pull request 'fix submit bugs' (#167) from tzwang/pcm-coordinator:master into master
Former-commit-id: f37ad9723b
2024-05-11 19:37:12 +08:00
tzwang f8a94bb090 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 2953ff979b
2024-05-11 19:26:17 +08:00
tzwang e12f80725e fix log bugs
Former-commit-id: 92a183cafa
2024-05-11 19:25:33 +08:00
tzwang a0181ba9d6 Merge pull request 'fix bugs' (#166) from tzwang/pcm-coordinator:master into master
Former-commit-id: 3842e14c1e
2024-05-11 18:44:08 +08:00
tzwang 8ccb51cab0 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: e31d516e8d
2024-05-11 18:40:26 +08:00
tzwang c4d4e74d33 fix status bugs
Former-commit-id: 547178d1d6
2024-05-11 18:40:06 +08:00
zhangweiii 9a34b347d2 Merge pull request 'delete alertrule' (#165) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: d4bf35b826
2024-05-11 18:31:26 +08:00
zhangwei c14b67d312 delete alertrule
Former-commit-id: dcff95ad60
2024-05-11 18:28:07 +08:00
zhangwei 81f81d209e Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
# Conflicts:
#	api/desc/pcm.api


Former-commit-id: 9163707ba3
2024-05-11 18:25:47 +08:00
zhangwei 256da70aaf delete alertrule
Former-commit-id: 22a1225ebf
2024-05-11 18:24:04 +08:00
tzwang a779216f68 fix convert bugs
Former-commit-id: 8e1dae6f6d
2024-05-11 18:04:19 +08:00
tzwang 52aa14c613 fix convert bugs
Former-commit-id: 3cb8e750a3
2024-05-11 17:59:03 +08:00
qiwang f264ac5124 Merge pull request 'create vm server' (#164) from master-wq into master
Former-commit-id: f8d87615e7
2024-05-11 16:51:49 +08:00
qiwang e07106841f fix:update create vm task
Former-commit-id: f8c57df90c
2024-05-11 16:31:42 +08:00
devad b31e368a0f Merge pull request 'fix bug' (#163) from devad/pcm-coordinator:master into master
Former-commit-id: 298c662b49
2024-05-11 16:21:36 +08:00
jagger 9722801813 fix bug
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 1ef360be0c
2024-05-11 16:18:09 +08:00
zhouqunjie 60b2c9d4dc Merge pull request 'fix bug' (#162) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: 0e915b60db
2024-05-11 15:45:49 +08:00
zhouqunjie 91c38d66fd fix bug
Former-commit-id: a32dab848d
2024-05-11 15:42:52 +08:00
zhouqunjie 8bc4176932 Merge pull request 'multiple adapters for hps task submit' (#161) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: 9e788a4d5b
2024-05-11 15:18:55 +08:00
qiwang 935af66c47 Merge pull request 'modify interface' (#160) from qiwang/pcm-coordinator:upmaster_wq into master
Former-commit-id: b385a66a69
2024-05-11 15:15:59 +08:00
zhouqunjie 3eb71a7bf5 multiple adapters for hps task submit
Former-commit-id: 27cbca8bf1
2024-05-11 15:15:46 +08:00
qiwang 8660032d12 fix:update vm network
Former-commit-id: ae5fdf0aa1
2024-05-11 15:09:38 +08:00
qiwang 7fe42f6f5a Merge pull request 'modify interface' (#159) from qiwang/pcm-coordinator:upmaster_wq into master
Former-commit-id: 3fda1514b5
2024-05-11 14:45:55 +08:00
qiwang ce25b1da6b fix:update vm network
Former-commit-id: 4220ea329a
2024-05-11 14:42:22 +08:00
tzwang 4ad5511380 Merge pull request 'added api getcomputecards' (#158) from tzwang/pcm-coordinator:master into master
Former-commit-id: 4ee8201a37
2024-05-11 11:26:56 +08:00
tzwang 6e82702876 added api getcomputecards
Former-commit-id: 4514161574
2024-05-11 11:22:29 +08:00
qiwang eaf1b1b953 Merge pull request 'modify interface' (#157) from qiwang/pcm-coordinator:upmaster_wq into master
Former-commit-id: ad60528232
2024-05-11 10:23:03 +08:00
qiwang 4047bc98dd fix:update vm network
Former-commit-id: 3195ae6397
2024-05-11 10:17:06 +08:00
qiwang b785b72103 create vm server
create vm server


Former-commit-id: f607c16cd6
2024-05-11 09:23:39 +08:00
qiwang f01a0c6354 Merge remote-tracking branch 'upstream/master' into upmaster_wq
# Conflicts:
#	pkg/models/taskvmmodel_gen.go


Former-commit-id: f857097a06
2024-05-11 09:18:02 +08:00
qiwang 3b59c81b2b fix:create vm server
Former-commit-id: 647fd9512c
2024-05-11 09:14:48 +08:00
qiwang 54dd6a7eb2 fix:create vm server
Former-commit-id: d45c7c3228
2024-05-11 08:58:57 +08:00
zhouqunjie 40ea4818a4 Merge pull request 'merge conflict' (#155) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: e0e198e173
2024-05-10 22:20:06 +08:00
zhouqunjie 3657d0aea5 Merge pull request 'Update the format of the readme document' (#129) from Tuberrr/pcm-coordinator:master into master
Former-commit-id: 7c8fe588e2
2024-05-10 22:19:27 +08:00
Jake 7c41605443 merge conflict
Former-commit-id: 6bb70e13e9
2024-05-10 22:16:23 +08:00
zhouqunjie 891467285d Merge pull request 'send notice in core && adapter and cluster info saved in subtask' (#154) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: dad3f892e7
2024-05-10 22:10:40 +08:00
Jake b61d9b3a52 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: a47bea1ee2
2024-05-10 22:07:32 +08:00
Jake 0fbbf4c454 send notice in core && adapter and cluster info saved in subtask
Former-commit-id: 6d85d7373c
2024-05-10 22:07:06 +08:00
tzwang e863fbc3c8 Merge pull request 'updated downloadalgorithmcode logic' (#153) from tzwang/pcm-coordinator:master into master
Former-commit-id: 49e88aea08
2024-05-10 21:53:51 +08:00
tzwang 3392fa01ac updated downloadalgorithmcode logic
Former-commit-id: 75272c3ecd
2024-05-10 21:50:03 +08:00
tzwang 2be17617f2 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: ed4726637c
2024-05-10 19:48:55 +08:00
devad 3c76868d68 Merge pull request 'fix' (#152) from devad/pcm-coordinator:master into master
Former-commit-id: 0cb763b283
2024-05-10 17:36:22 +08:00
jagger aab396a23e Merge remote-tracking branch 'upstream/master' into upstream
Former-commit-id: f65bf31b12
2024-05-10 17:28:44 +08:00
jagger c5def7491f fix
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 5e50a3782f
2024-05-10 17:28:02 +08:00
tzwang 3c4e18f8d4 updated api desc
Former-commit-id: 1fcf13a7f3
2024-05-10 17:20:52 +08:00
tzwang 8fba0ec699 Merge pull request 'updated tasklist' (#151) from tzwang/pcm-coordinator:master into master
Former-commit-id: 98b579a842
2024-05-10 16:23:23 +08:00
tzwang 275e14a758 added updating aitask status to taskList
Former-commit-id: 8908fee9e0
2024-05-10 16:17:33 +08:00
zhouqunjie 004da905ae Merge pull request 'core task status sync' (#150) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: 46158af2b2
2024-05-10 10:56:32 +08:00
Jake a10714ed57 core task status sync
Former-commit-id: 5127989241
2024-05-10 10:53:24 +08:00
zhouqunjie 94150afe35 Merge pull request 'algorithem code logic update' (#149) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: 78683618d2
2024-05-09 19:36:28 +08:00
Jake eb9d633b17 algorithm logic code update
Former-commit-id: 816a4270bc
2024-05-09 19:33:22 +08:00
tzwang 1b9a73c0a0 Merge pull request 'updated schedule apis' (#148) from tzwang/pcm-coordinator:master into master
Former-commit-id: 33c256400e
2024-05-09 19:17:55 +08:00
tzwang aa9d7c2538 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: db0c3e45cb
2024-05-09 19:14:02 +08:00
tzwang 6bc14cfabd updated protobuf
Former-commit-id: 6e3382beb8
2024-05-09 19:11:44 +08:00
zhouqunjie 4690d1fa5a Merge pull request 'push notice when new hpc job submitted' (#147) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: 05a7657839
2024-05-09 19:08:46 +08:00
Jake 8d8d6a9822 push notice when new hpc job submitted
Former-commit-id: 459845bff6
2024-05-09 19:05:16 +08:00
tzwang fb957526e5 added getComputeCards api
Former-commit-id: 78b5fa73e9
2024-05-09 18:54:25 +08:00
zhouqunjie 7280f07e31 Merge pull request 'change table name' (#146) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: 3da3040b03
2024-05-09 18:40:35 +08:00
Jake 4849b93853 table name changed
Former-commit-id: 5776bc0274
2024-05-09 18:37:24 +08:00
tzwang fa2c7b1aa9 Merge pull request 'fix aiOverview timeout bugs' (#145) from tzwang/pcm-coordinator:master into master
Former-commit-id: 38786fb3fe
2024-05-09 16:17:40 +08:00
tzwang 9ec3a048b0 gen algorithmcode proto
Former-commit-id: 5efb7dd3ac
2024-05-09 16:11:29 +08:00
tzwang c3486ec099 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 24c55d85e3
2024-05-09 16:01:03 +08:00
tzwang 0e155cb657 added algorithmscode api
Former-commit-id: 60b3ed6bb4
2024-05-09 16:00:40 +08:00
qiwang 35c19eee23 Merge pull request 'public interface' (#144) from qiwang/pcm-coordinator:upmaster_wq into master
Former-commit-id: 384d17f522
2024-05-09 15:19:58 +08:00
qiwang a57e0b7ba8 Merge remote-tracking branch 'upstream/master' into upmaster_wq
# Conflicts:
#	api/desc/pcm.api
#	api/internal/handler/routes.go


Former-commit-id: e8916b1c9f
2024-05-09 15:16:23 +08:00
qiwang e6f213bd8e fix:public interface
Former-commit-id: f214352aa4
2024-05-09 15:09:29 +08:00
zhouqunjie 6a6ab03c68 Merge pull request 'fix bug' (#143) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: f13989d5a6
2024-05-09 15:02:54 +08:00
Jake 868419d47a bug fix
Former-commit-id: 96c17e81c0
2024-05-09 14:46:32 +08:00
tzwang f9cdacad6a Merge pull request 'updated aicenteroverview logic' (#142) from tzwang/pcm-coordinator:master into master
Former-commit-id: b6b0e39f51
2024-05-08 18:55:24 +08:00
tzwang 9b8c7d36e6 updated aicenteroverview logic
Former-commit-id: 497d6e9121
2024-05-08 18:52:02 +08:00
devad 0220945d67 Merge pull request 'fix' (#141) from devad/pcm-coordinator:master into master
Former-commit-id: cc046b4520
2024-05-08 18:42:35 +08:00
jagger eedc344b40 fix
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 7fa31bdee9
2024-05-08 18:38:54 +08:00
devad 40b55c952f Merge pull request 'fix' (#140) from devad/pcm-coordinator:master into master
Former-commit-id: 0a4bd04078
2024-05-08 17:23:24 +08:00
jagger 9253222152 fix
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: ab7b8cfac5
2024-05-08 17:19:51 +08:00
tzwang 70212751f5 Merge pull request 'updated gettasklist logic' (#139) from tzwang/pcm-coordinator:master into master
Former-commit-id: 58e1dc340d
2024-05-07 20:09:21 +08:00
tzwang 10e21a9499 updated gettasklist logic
Former-commit-id: af8ea56c03
2024-05-07 20:05:00 +08:00
zhangweiii 53576b752f Merge pull request 'schedule situation' (#138) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: 90832ead72
2024-05-07 18:04:17 +08:00
devad f9885d64ff Merge pull request 'fix' (#137) from devad/pcm-coordinator:master into master
Former-commit-id: 83ce60817e
2024-05-07 17:59:52 +08:00
jagger 576df04079 fix
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 74bdba75d1
2024-05-07 17:55:43 +08:00
tzwang 8f381d5030 Merge pull request 'updated ai functions' (#136) from tzwang/pcm-coordinator:master into master
Former-commit-id: c445929004
2024-05-07 17:05:13 +08:00
tzwang 353c4630f2 fix conflict
Former-commit-id: 84868190bf
2024-05-07 17:02:11 +08:00
tzwang 60359ea095 updated getCentertaskList function
Former-commit-id: 0c2585ad33
2024-05-07 16:55:35 +08:00
zhangwei d678f52b1f Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 35b75b870b
2024-05-07 09:46:58 +08:00
qiwang 6bc4512013 Merge pull request 'Create virtual machine task' (#135) from qiwang/pcm-coordinator:wizard_vm into master
Former-commit-id: d80828a656
2024-05-06 15:32:51 +08:00
devad a4db9e349d Merge pull request 'fix' (#134) from devad/pcm-coordinator:master into master
Former-commit-id: afb13e3017
2024-05-06 15:06:18 +08:00
jagger cbf44ff184 fix
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 153446e456
2024-05-06 15:00:50 +08:00
qiwang f4d1b72c17 fix:Create virtual machine task
Former-commit-id: 86a445db5f
2024-05-06 14:52:46 +08:00
zhangwei 9dad924d78 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 12258ac43e
2024-05-06 08:39:54 +08:00
zhangwei 3539f6342d schedule situation
Former-commit-id: 502ab492f7
2024-05-06 08:39:35 +08:00
jagger ff7aae0a88 fix
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 7ea02a9f7d
2024-04-30 19:19:02 +08:00
tzwang 95c43cf271 updated ai db functions
Former-commit-id: c1a9ee1950
2024-04-30 17:35:56 +08:00
zhangweiii cf52f868ce Merge pull request 'schedule situation' (#133) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: d8fe5a1885
2024-04-30 17:32:29 +08:00
zhangwei 8078d94e35 schedule situation
Former-commit-id: ce8a129089
2024-04-30 17:28:29 +08:00
zhangwei fb85474d7a schedule situation
Former-commit-id: 82a4d7235f
2024-04-30 16:35:26 +08:00
tzwang caa8ad19a1 Merge pull request 'updated ai overview functions' (#132) from tzwang/pcm-coordinator:master into master
Former-commit-id: 1a78382c11
2024-04-30 16:33:00 +08:00
zhangwei 96c044e273 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: ec90c9fc2e
2024-04-30 16:30:49 +08:00
zhangwei 27c0aa6fc4 schedule situation
Former-commit-id: 460875a761
2024-04-30 16:29:16 +08:00
tzwang 7701012136 updated ai overview functions
Former-commit-id: b6896236e3
2024-04-30 16:28:51 +08:00
jagger d7e8a4942a fix
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 9916288076
2024-04-30 16:26:53 +08:00
tzwang 18cadd528d updated cluster resource db model
Former-commit-id: 2904365c03
2024-04-30 16:18:14 +08:00
devad 040af2f210 Merge pull request 'impl cloud Scheduling Algorithm' (#131) from devad/pcm-coordinator:master into master
Former-commit-id: b47f89b2d7
2024-04-30 16:12:48 +08:00
jagger 61338174e8 fix
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 0d2a0bae21
2024-04-30 16:07:53 +08:00
tzwang 2722f689b6 updated task queue db model
Former-commit-id: 76d7651903
2024-04-30 15:33:09 +08:00
zhangwei fdc7d53cd9 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 91f8be93a0
2024-04-30 15:15:37 +08:00
tzwang 60b726b08c added task queue db model
Former-commit-id: 7b30cf9bb2
2024-04-30 15:10:18 +08:00
jagger dd5d975df2 impl cloud Scheduling Algorithm
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 7f60b20934
2024-04-29 21:46:07 +08:00
tzwang 16a23a8d77 Merge pull request 'updated scheduler submit function' (#130) from tzwang/pcm-coordinator:master into master
Former-commit-id: 340a25e672
2024-04-29 17:56:11 +08:00
tzwang cee3ae17bd updated schedule submit func
Former-commit-id: 8bfeec069c
2024-04-29 17:51:25 +08:00
tzwang 239ca4fc17 updated aitask model
Former-commit-id: 2092d2b735
2024-04-29 17:45:37 +08:00
tzwang 50083890bd updated aitask model
Former-commit-id: 390f37794e
2024-04-29 16:39:56 +08:00
zhouqunjie ec4619fd4e Update pcm_deploy.md
Former-commit-id: e59f2dec60
2024-04-29 16:14:49 +08:00
zhouqunjie 507de87a91 ADD file via upload
Former-commit-id: d4b47bc342
2024-04-29 15:44:28 +08:00
zhouqunjie b9fcf581cf ADD file via upload
Former-commit-id: b6467fdc7e
2024-04-29 15:43:57 +08:00
zhouqunjie 0d720dcdc5 Delete deploy/pcm-yaml.zip
Former-commit-id: 97dc4bbd3a
2024-04-29 15:43:45 +08:00
Tuberrr 92d2b31f76 Update README.md
Former-commit-id: daf75cec37
2024-04-29 15:39:41 +08:00
Tuberrr 4fa42ed433 Update README.md
Former-commit-id: 406286681b
2024-04-29 15:35:54 +08:00
Tuberrr eecb885413 Update README.md
Former-commit-id: 71476e27b7
2024-04-29 15:34:49 +08:00
Tuberrr 4838de910c Update README.md
Former-commit-id: c595a58fd9
2024-04-29 15:34:04 +08:00
Tuberrr c15cc7254a Update README.md
Former-commit-id: 55b9855d04
2024-04-29 15:33:42 +08:00
Tuberrr 03cc3fe978 Update README.md
Former-commit-id: 835b51a8d2
2024-04-29 15:31:58 +08:00
zhouqunjie 22047807d9 ADD file via upload
Former-commit-id: 70c83cbfa1
2024-04-29 14:25:51 +08:00
zhouqunjie 8a1fe82fd5 ADD file via upload
Former-commit-id: f20eb974f8
2024-04-29 14:20:15 +08:00
zhouqunjie db96fbbb25 Delete deploy/pcm-yaml.zip
Former-commit-id: 6b26220e68
2024-04-29 14:19:58 +08:00
tzwang 15c991ead1 generate aitask model
Former-commit-id: 7878a3900d
2024-04-29 11:12:43 +08:00
devad 9ecd0190d5 Merge pull request 'add task details' (#128) from devad/pcm-coordinator:master into master
Former-commit-id: 32190d9b2b
2024-04-29 11:07:53 +08:00
jagger 8aba7624a6 Add task details
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 570946ed48
2024-04-29 11:03:50 +08:00
jagger ec5a02955d Merge remote-tracking branch 'upstream/master' into upstream
Former-commit-id: 71b2870ead
2024-04-29 11:02:24 +08:00
zhouqunjie b9ee118d40 ADD file via upload
Former-commit-id: 49adcc5176
2024-04-29 11:01:14 +08:00
zhouqunjie 4e5ff68278 Delete deploy/pcm-yaml.zip
Former-commit-id: 8a91b7b683
2024-04-29 11:01:03 +08:00
zhouqunjie ee2925541c ADD file via upload
Former-commit-id: ef3c890ea5
2024-04-29 11:00:04 +08:00
zhouqunjie 8b0be416b4 Delete deploy/pcm-yaml.zip
Former-commit-id: cc78fb706c
2024-04-29 11:00:03 +08:00
jagger 9a369dc329 Merge remote-tracking branch 'upstream/master' into upstream
# Conflicts:
#	api/desc/pcm.api
#	api/internal/handler/routes.go


Former-commit-id: 3af5fcc802
2024-04-29 10:56:54 +08:00
qiwang 60d1d32bb8 Add home page ovewview
Former-commit-id: b4ca40b408
2024-04-29 10:46:15 +08:00
qiwang b794b9d16f Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
# Conflicts:
#	api/desc/pcm.api


Former-commit-id: 683c0fa4f8
2024-04-29 10:42:38 +08:00
qiwang f6f30ad61f fix:add home overview
Former-commit-id: 157b474d9e
2024-04-29 10:33:47 +08:00
zhouqunjie fc88ab014a ADD file via upload
Former-commit-id: 5b67f6b63a
2024-04-29 10:17:26 +08:00
tzwang c151c8db07 added ai task db model
Former-commit-id: b81c68d0f5
2024-04-29 10:10:15 +08:00
tzwang 46913fb677 generate ai center overview logic
Former-commit-id: 1f661622ed
2024-04-28 18:21:26 +08:00
tzwang 9bd725380e added ai center overview apis
Former-commit-id: 02ea4ae3c9
2024-04-28 18:02:29 +08:00
jagger aae72f2743 Merge remote-tracking branch 'upstream/master' into upstream
Former-commit-id: 6685492d03
2024-04-28 17:11:48 +08:00
zhouqunjie a063430723 Merge pull request 'yaml link' (#126) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: cb36582543
2024-04-28 15:32:35 +08:00
zhouqunjie 9ed059527e deploy doc
Former-commit-id: 90a7d4a914
2024-04-28 15:29:41 +08:00
zhouqunjie b5a4a25ed5 Merge pull request 'pcm deploy doc' (#125) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: 5dec03d976
2024-04-28 15:25:50 +08:00
zhouqunjie d8e07f0055 deploy doc
Former-commit-id: 961558d9f1
2024-04-28 15:22:30 +08:00
jagger 2bdc7b866d fix
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: b3cd5cb160
2024-04-26 18:50:09 +08:00
tzwang 190c158322 added get algorithmcode funcs
Former-commit-id: ed06d1cb96
2024-04-26 18:19:44 +08:00
zhangweiii 4453d4ae55 Merge pull request 'alert' (#124) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: 15540513ed
2024-04-26 17:23:19 +08:00
zhangwei bf943b2390 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: f2384ab38a
2024-04-26 16:37:09 +08:00
zhangwei 2210db4d3c adapter info
Former-commit-id: c717f0f1d0
2024-04-26 16:27:26 +08:00
tzwang 14c3af1e1b Merge pull request 'added ai getJobLog api' (#123) from tzwang/pcm-coordinator:master into master
Former-commit-id: e599d45c10
2024-04-26 11:10:45 +08:00
tzwang f0a707689c updated getJobLog api
Former-commit-id: 23ffca2a8d
2024-04-26 10:38:49 +08:00
tzwang 10c719fc01 updated getAiJobLog handler
Former-commit-id: caaa3466f4
2024-04-25 18:28:30 +08:00
tzwang b919452c43 added getJobLog api handler
Former-commit-id: d03433d970
2024-04-25 18:08:11 +08:00
tzwang f3ce064dae updated getJobLog api logic
Former-commit-id: ff312781e1
2024-04-25 16:51:59 +08:00
tzwang 1281f6d61b generate getJobLog api
Former-commit-id: 922c4149bb
2024-04-25 16:04:22 +08:00
tzwang 189c833f5d generate getJobLog api
Former-commit-id: cf3cfd9b6f
2024-04-25 16:03:13 +08:00
zhangwei 8fd635b4a7 query task num
Former-commit-id: 2e88ecb4d7
2024-04-25 10:09:57 +08:00
tzwang c0dcacb06d added getAiJobLog apis
Former-commit-id: 5379463930
2024-04-24 17:23:43 +08:00
zhangwei 9d1f98b478 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
# Conflicts:
#	api/internal/types/types.go


Former-commit-id: 405b1832b2
2024-04-22 15:14:56 +08:00
zhangwei f32b20bd18 Add filtering fields to the alarm list
Former-commit-id: f99531dec1
2024-04-22 15:14:26 +08:00
devad b4b8d13d63 Merge pull request 'fix returns the data structure' (#122) from devad/pcm-coordinator:master into master
Former-commit-id: 17d3a5ee20
2024-04-19 17:50:16 +08:00
jagger 0515e9702c fix returns the data structure
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 9b3933586a
2024-04-19 17:43:45 +08:00
devad 47b6379437 Merge pull request 'fix' (#121) from devad/pcm-coordinator:master into master
Former-commit-id: 72c6cf998c
2024-04-19 17:12:54 +08:00
jagger 4fe78dee51 feat: Task status statistics
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 2c01ea8c25
2024-04-19 17:09:54 +08:00
zhangweiii a407bbd4ff Merge pull request 'merge' (#120) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: d051c2ca11
2024-04-19 17:07:41 +08:00
zhangwei 64da465e76 merge
Former-commit-id: 8dafe47efc
2024-04-19 17:04:37 +08:00
zhangweiii 9b315b2e6a Merge pull request 'alert' (#119) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: ea1f5f0a84
2024-04-19 16:58:11 +08:00
zhangwei 8ea6d19eb4 merge
Former-commit-id: 7a02b3ac98
2024-04-19 16:54:52 +08:00
zhangwei 56851224ad Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
# Conflicts:
#	api/internal/types/types.go


Former-commit-id: 7b326c485e
2024-04-19 16:54:27 +08:00
zhangwei e07d030f7b Sync Cluster Load
Former-commit-id: 0eac6041b3
2024-04-19 16:53:02 +08:00
devad 304f0c7dae Merge pull request 'Task status statistics' (#118) from devad/pcm-coordinator:master into master
Former-commit-id: 4e3fe85ecd
2024-04-19 16:50:33 +08:00
jagger 70fdfe2e95 feat: Task status statistics
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 158b74d8ae
2024-04-19 16:47:26 +08:00
zhouqunjie 902ec2291f Merge pull request 'amend:hpc overview resp' (#117) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: e69d0cc918
2024-04-19 16:26:34 +08:00
zhouqunjie a6fed83267 amend:hpc overview resp
Former-commit-id: 64b50119aa
2024-04-19 16:23:21 +08:00
zhouqunjie 01603bf170 Merge pull request 'hpc resource overview' (#116) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: 1d127fdec9
2024-04-19 16:07:31 +08:00
zhouqunjie 58263827d1 hpc resource overview
Former-commit-id: cfb5c293ce
2024-04-19 16:04:36 +08:00
jagger e195bb4d89 Merge branch 'refs/heads/upstream'
Former-commit-id: aabbc1719d
2024-04-19 15:45:01 +08:00
jagger 6f9cf73cd4 fix
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 836d8f7f97
2024-04-19 15:40:01 +08:00
zhangwei 464c6aa5d5 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
# Conflicts:
#	api/desc/core/pcm-core.api


Former-commit-id: b4ae22c9ce
2024-04-18 15:56:56 +08:00
zhangwei 79749b3ed7 alert list
Former-commit-id: 454efc36db
2024-04-18 15:54:32 +08:00
tzwang 9766e68075 Merge pull request 'updated adapterid to schedule apis' (#115) from tzwang/pcm-coordinator:master into master
Former-commit-id: 4c9cce1bec
2024-04-17 18:34:36 +08:00
tzwang ddd5433c3b updated handler
Former-commit-id: c5ac28d222
2024-04-17 18:30:54 +08:00
tzwang cf5d5792ee updated ai scheduler api
Former-commit-id: ebe3c21d6d
2024-04-17 06:17:13 -04:00
tzwang ea7216e153 added adapterId for ai scheduler submit func
Former-commit-id: 94e73c0fd3
2024-04-17 17:57:35 +08:00
zhouqunjie 9da9d9a3a6 Merge pull request 'notice impl' (#114) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: 945ee35bb9
2024-04-17 17:35:23 +08:00
Jake 30546cd295 notice impl
Former-commit-id: 7d9d6aff1b
2024-04-17 17:32:23 +08:00
tzwang a440f41fbf Merge pull request 'updated ai scheduler getdatabases and getalgorithms funcs' (#113) from tzwang/pcm-coordinator:master into master
Former-commit-id: 29a22371cd
2024-04-16 16:55:40 +08:00
tzwang 5d3da2c8a3 updated shuguangai getresources func
Former-commit-id: edfde2b701
2024-04-16 16:50:08 +08:00
zhouqunjie 0ebbbfdb85 Merge pull request 'version retract' (#112) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: 829e00003d
2024-04-15 12:11:11 +08:00
Jake 1f40cfaba7 retract version
Former-commit-id: 4bf26036e7
2024-04-15 12:07:51 +08:00
zhouqunjie 6efe5ea312 Merge pull request 'push resource info' (#111) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: b065b3210b
2024-04-15 10:45:07 +08:00
Jake 4c3240c547 Merge branch 'master' of https://gitlink.org.cn/zhouqunjie/pcm-coordinator
# Conflicts:
#	api/internal/types/types.go


Former-commit-id: a15861b507
2024-04-15 10:42:09 +08:00
Jake 2c145623fd push hpc resource info
Former-commit-id: ac91ce5f20
2024-04-15 10:38:44 +08:00
qiwang 9120c935fc Merge pull request 'submit vm model' (#110) from qiwang/pcm-coordinator:master into master
Former-commit-id: fc5e2a0ff0
2024-04-12 17:48:52 +08:00
qiwang 773e75f0d6 feat:submit vm model
Former-commit-id: 4955139d43
2024-04-12 17:44:19 +08:00
tzwang 76ca864472 Merge pull request 'fix ai scheduler bugs' (#109) from tzwang/pcm-coordinator:master into master
Former-commit-id: 1a46411fbc
2024-04-11 19:33:11 +08:00
tzwang 997a0de27f fix aischeduler bugs
Former-commit-id: bdf9f72c09
2024-04-11 19:29:23 +08:00
tzwang 766ca71dc7 Merge remote-tracking branch 'origin/master'
Former-commit-id: 9e218d5843
2024-04-11 19:21:45 +08:00
tzwang 41c0ed7844 updated scheduleResult api
Former-commit-id: 1329122018
2024-04-11 07:21:04 -04:00
tzwang 7f6b9cf0ca Merge remote-tracking branch 'origin/master'
Former-commit-id: 458812fca2
2024-04-11 19:14:45 +08:00
zhangwei 47a8d02d9f Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: adc1448071
2024-04-11 18:46:33 +08:00
zhangwei 7cbdf8d91b add metrics target
Former-commit-id: 3d7f18b273
2024-04-11 18:46:12 +08:00
tzwang 3d320d4ab0 fix aiClusterMap bugs
Former-commit-id: 9a2a5eb7bc
2024-04-11 18:29:13 +08:00
zhouqunjie 97572584c2 Merge pull request 'hpc resource overview' (#108) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: cb374bb324
2024-04-11 17:49:29 +08:00
Jake 6d6c7f4e47 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 32aa80967d
2024-04-11 17:46:38 +08:00
Jake 7fce97fb6f hpc resource overview
Former-commit-id: 6fe283469d
2024-04-11 17:45:32 +08:00
tzwang 5601adeffd Merge pull request 'updated ai submit task api and fix bugs' (#107) from tzwang/pcm-coordinator:master into master
Former-commit-id: 7a3214ca2b
2024-04-11 17:36:08 +08:00
tzwang 5b0fe44f51 updated schedule clusterId bugs
Former-commit-id: fc08b0aaed
2024-04-11 17:31:46 +08:00
jagger 529d333d76 Merge branch 'refs/heads/upmaster'
# Conflicts:
#	api/internal/types/types.go
#	go.sum


Former-commit-id: f3ec691387
2024-04-10 16:17:34 +08:00
devad 84576a9b7d Merge pull request 'fix dict bugs' (#106) from devad/pcm-coordinator:hot_fix into master
Former-commit-id: 4a51cebc79
2024-04-10 09:43:58 +08:00
jagger 5da458b1a6 fix dict bugs
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 12dde250bf
2024-04-10 09:39:11 +08:00
jagger 5d03296353 fix bugs
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 0dfcf5d24e
2024-04-10 09:17:47 +08:00
qiwang 864bd92dfb Merge pull request 'Add virtual machine overview interface' (#105) from qiwang/pcm-coordinator:master into master
Former-commit-id: b60efd016c
2024-04-09 16:39:41 +08:00
qiwang 368fe3b279 feat:Add virtual machine overview interface
Former-commit-id: f7e3262935
2024-04-09 16:31:33 +08:00
zhangwei f2b871bba2 node load
Former-commit-id: 59a88853d6
2024-04-09 15:12:44 +08:00
zhangwei d78a523b58 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: ddbc1cb95a
2024-04-09 10:30:19 +08:00
zhangwei b3aa276ff7 告警消息查询
Former-commit-id: aba3c3cff2
2024-04-09 10:09:26 +08:00
zhouqunjie ef8369baeb Merge pull request 'goctl generate types' (#104) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: c2a9bffb7b
2024-04-08 17:36:12 +08:00
Jake 42ea96a01e goctl generate types
Former-commit-id: 22558cc63e
2024-04-08 17:33:07 +08:00
tzwang bad375502f Merge pull request 'updated ai scheduler pcm.api' (#103) from tzwang/pcm-coordinator:master into master
Former-commit-id: fbd8808431
2024-04-08 17:29:20 +08:00
tzwang 5c0a3de849 updated pcm.api and ai storage
Former-commit-id: ad231ed21f
2024-04-08 17:25:59 +08:00
zhangweiii 801c1b9cb5 Merge pull request 'alert' (#102) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: e884d1e964
2024-04-08 09:20:26 +08:00
zhangwei 2929b6e0f3 alert
Former-commit-id: b59e446af7
2024-04-08 09:16:52 +08:00
zhangwei a46bd191d0 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 70b84d8e6d
2024-04-08 08:49:21 +08:00
zhangwei 24610ac92b alert
Former-commit-id: d0e5f3565f
2024-04-08 08:49:01 +08:00
tzwang 8538c63012 Merge pull request 'fix import bugs' (#101) from tzwang/pcm-coordinator:master into master
Former-commit-id: 9f24d580c6
2024-04-07 19:50:15 +08:00
tzwang 14b1b36e28 Merge remote-tracking branch 'origin/master'
Former-commit-id: 546fb5f5be
2024-04-07 19:46:46 +08:00
tzwang 286e58f9d6 updated error imports
Former-commit-id: 895dceb1e6
2024-04-07 19:44:55 +08:00
tzwang 265d0f71e2 Merge pull request 'updated storelink imports' (#100) from tzwang/pcm-coordinator:master into master
Former-commit-id: 26626535da
2024-04-07 18:39:43 +08:00
tzwang 6af7f4da0d updated storelink imports
Former-commit-id: bc16ee0d15
2024-04-07 18:36:39 +08:00
jagger 571e7603c7 fix bugs
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 8902acbd35
2024-04-07 18:11:11 +08:00
zhangweiii c12a923700 alert
Former-commit-id: 10432ed17c
2024-04-07 17:17:19 +08:00
zhangwei e39d3305df Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: c876889eb9
2024-04-07 17:13:55 +08:00
zhangwei a8660d5d5b alert
Former-commit-id: 545aa90815
2024-04-07 17:11:35 +08:00
zhouqunjie f27cafed58 Merge pull request 'goctl generate types' (#98) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: 8ace4e771e
2024-04-07 17:00:35 +08:00
Jake 74789e940d goctl generate types
Former-commit-id: 36cf496693
2024-04-07 16:57:54 +08:00
tzwang 72fbb7c787 Merge pull request 'updated pcm.api' (#97) from tzwang/pcm-coordinator:master into master
Former-commit-id: 7a56f0e4d0
2024-04-07 16:53:34 +08:00
tzwang cdd7fe9dca updated schedule submit task api logic
Former-commit-id: 72fe516fb2
2024-04-07 16:50:30 +08:00
qiwang 0554198000 Merge pull request 'Add the survival_time field' (#96) from qiwang/pcm-coordinator:master into master
Former-commit-id: 8f5a7a83bf
2024-04-03 14:59:28 +08:00
qiwang f5c2309f85 Merge pull request 'Add the survival_time field' (#95) from qiwang/pcm-coordinator:master into master
Former-commit-id: 2b67b31d9d
2024-04-03 14:54:14 +08:00
qiwang c57cbc89ed feat:Add the survival_time field
Former-commit-id: 6010107783
2024-04-03 14:52:32 +08:00
qiwang 6ad1cbfcfb feat:Add the survival_time field
Former-commit-id: fbb71d90bc
2024-04-03 14:48:44 +08:00
tzwang dbe2363339 updated type convert function
Former-commit-id: c1a500ed22
2024-04-02 18:35:42 +08:00
tzwang 5b4b7f88eb Merge pull request 'fix getresources bugs' (#94) from tzwang/pcm-coordinator:master into master
Former-commit-id: 875557407a
2024-04-02 16:56:50 +08:00
tzwang db55f5e5a3 fix getresources and dynamicResources strategy bugs
Former-commit-id: fb05379230
2024-04-02 16:53:27 +08:00
qiwang 03264327d7 Merge pull request 'feat:add create mulserver interface' (#93) from qiwang/pcm-coordinator:master into master
Former-commit-id: 76270ffaeb
2024-04-02 16:37:53 +08:00
qiwang 2599f8a564 feat:add create mulserver interface
Former-commit-id: b917936a20
2024-04-02 16:28:47 +08:00
qiwang 2809aef72f feat:add create mulserver interface
Former-commit-id: daa650029a
2024-04-02 16:24:00 +08:00
zhouqunjie 3cc5772c17 Merge pull request 'fix:ai option params' (#92) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: 42fda2f07a
2024-04-02 11:36:11 +08:00
Jake 0c4ba98073 fix:ai option params
Former-commit-id: 365e08ce5e
2024-04-02 11:33:19 +08:00
tzwang cc0b729639 Merge pull request 'updated ai scheduler' (#91) from tzwang/pcm-coordinator:master into master
Former-commit-id: ef44753204
2024-04-01 17:57:04 +08:00
tzwang 69757c9f5b updated return type of aischeduler submit
Former-commit-id: c8de6c78b1
2024-04-01 17:53:42 +08:00
qiwang 42ed7225e1 Merge pull request 'modify parameters' (#90) from qiwang/pcm-coordinator:master into master
Former-commit-id: 35f5fee1af
2024-04-01 12:42:14 +08:00
qiwang ac80f68dc9 feat:modify listserver interface
Former-commit-id: 0a1f53f6fa
2024-04-01 12:39:07 +08:00
qiwang 73f07ec0dc Merge pull request 'modify interface' (#89) from qiwang/pcm-coordinator:master into master
Former-commit-id: 6d72fcc8a0
2024-04-01 12:31:58 +08:00
qiwang 81b5676559 feat:modify listserver interface
Former-commit-id: 6e81bf4997
2024-04-01 12:25:51 +08:00
tzwang b09a45bd5b added scheduler api aioptions
Former-commit-id: 634213a618
2024-04-01 11:22:09 +08:00
tzwang 1de507e136 Merge pull request 'fix scheduler cycle import error' (#88) from tzwang/pcm-coordinator:master into master
Former-commit-id: da86729a03
2024-03-30 16:48:51 +08:00
tzwang 6b2ae7c0f5 fix cycle import err
Former-commit-id: 7b1ada2f3e
2024-03-30 16:44:10 +08:00
tzwang 96f3a16b71 modified all missing request context
Former-commit-id: 9cfed9e9e3
2024-03-29 17:45:28 +08:00
devad b20d0cbee7 Merge pull request 'fix bugs' (#87) from devad/pcm-coordinator:master into master
Former-commit-id: 990658095c
2024-03-29 10:52:36 +08:00
jagger ec761c8a2c fix bugs
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 8bb7ace86b
2024-03-29 10:48:50 +08:00
zhangweiii d72ef79f42 Merge pull request 'monitoring' (#84) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: a388cd365f
2024-03-29 10:00:54 +08:00
zhangwei cecdf2be3a alert
Former-commit-id: fe32efbdb3
2024-03-29 09:33:48 +08:00
zhangwei 1c4e684b60 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
# Conflicts:
#	api/desc/pcm.api
#	api/internal/handler/routes.go
#	go.sum


Former-commit-id: 0c0b514bc5
2024-03-29 09:18:11 +08:00
zhangwei 1d9134dfda alert
Former-commit-id: e98823088a
2024-03-29 09:15:23 +08:00
tzwang 3065d16756 Merge pull request 'updated acquire resources concurrently' (#86) from tzwang/pcm-coordinator:master into master
Former-commit-id: 2559e61a8d
2024-03-28 17:37:49 +08:00
tzwang acdd2abbfe updated acquire resources concurrently
Former-commit-id: a8d6c0ac6b
2024-03-28 17:33:59 +08:00
devad ba27393ba0 Merge pull request 'Task Management - Task list' (#85) from devad/pcm-coordinator:master into master
Former-commit-id: 41d06eaa9b
2024-03-28 16:39:46 +08:00
jagger 6d6ee06022 feat: Task Management - Task list
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 1dfdd0b3de
2024-03-28 16:36:20 +08:00
zhangwei 63a5116910 prometheus metrics
Former-commit-id: b21e2651f1
2024-03-28 16:32:48 +08:00
qiwang d22e2f1161 Merge pull request 'Add field to create virtual machine' (#82) from qiwang/pcm-coordinator:master into master
Former-commit-id: 1b5aac65a3
2024-03-28 10:58:28 +08:00
qiwang 283ec33612 feat:Add field to create virtual machine
Former-commit-id: e4a4ee4118
2024-03-28 10:54:35 +08:00
qiwang 26839292ae feat:Add field to create virtual machine
Former-commit-id: 0c78204eba
2024-03-28 10:53:39 +08:00
qiwang 5d3d48faee Merge pull request 'Add virtual machine interfaces' (#81) from qiwang/pcm-coordinator:master into master
Former-commit-id: 763071ba76
2024-03-27 17:52:46 +08:00
qiwang 83d4e3f055 feat:Add field to create virtual machine
Former-commit-id: 6ed75ea655
2024-03-27 17:47:33 +08:00
zhangweiii 4233dddada Merge pull request 'monitoring' (#80) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: 91656d096e
2024-03-27 14:40:02 +08:00
zhangwei b1b7fbe0e2 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: f3af07e360
2024-03-27 14:37:33 +08:00
zhangwei 8b43bbcbd4 prometheus metrics
Former-commit-id: 190a78c2e7
2024-03-27 14:35:52 +08:00
devad 8100e4e0fe Merge pull request 'fix' (#79) from devad/pcm-coordinator:master into master
Former-commit-id: 350259a124
2024-03-27 11:18:39 +08:00
jagger 2bd5d4ef99 🐛 fix bugs
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 43a66ceaca
2024-03-27 11:15:04 +08:00
devad 0f2b302b07 Merge pull request 'fix' (#78) from devad/pcm-coordinator:master into master
Former-commit-id: 8c6abe6b1b
2024-03-27 11:14:27 +08:00
jagger 4e2b15ad1a 🐛 fix bugs
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 3c3bbaa0a5
2024-03-27 11:11:23 +08:00
devad 2914bdb7d9 Merge pull request 'fix bugs' (#77) from devad/pcm-coordinator:master into master
Former-commit-id: c3d4d5629b
2024-03-27 11:01:43 +08:00
jagger aa7d4f0b87 🐛 fix bugs
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 367ad56fcd
2024-03-27 10:57:11 +08:00
zhangweiii 4cab08db5d Merge pull request 'metircs' (#76) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: 02e65867d1
2024-03-27 09:50:34 +08:00
zhangwei 1f61eb7e12 prometheus metrics
Former-commit-id: abcbf3ec88
2024-03-27 09:46:25 +08:00
zhouqunjie 4ba32bb014 Merge pull request 'hpc overview interfaces' (#75) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: ce9d470a5b
2024-03-26 19:16:06 +08:00
Jake f570bd5c30 Merge branch 'master' of https://gitlink.org.cn/zhouqunjie/pcm-coordinator
Former-commit-id: 0c4c166b6d
2024-03-26 19:12:38 +08:00
Jake 8bd1c02fe4 hpc overview interfaces
Former-commit-id: cd54d2f170
2024-03-26 19:11:28 +08:00
tzwang e6dca0708e Merge pull request 'added ai scheduler getAlgorithms by tasktype and dataset' (#74) from tzwang/pcm-coordinator:master into master
Former-commit-id: fc2264d7ab
2024-03-26 17:42:47 +08:00
tzwang d56e4bd69f updated shuguangAi GetResourceStats
Former-commit-id: 2e69f55130
2024-03-26 17:36:04 +08:00
zhangweiii bf5a5f6a8f Merge pull request 'monitoring' (#73) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: e55cb94ef4
2024-03-26 17:15:01 +08:00
zhangwei 496a3757c6 Resolve Conflict
Former-commit-id: 7bf9595417
2024-03-26 17:10:41 +08:00
zhangwei d62c25c4dd Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
# Conflicts:
#	api/desc/pcm.api
#	api/internal/handler/core/listdomainresourcehandler.go
#	api/internal/handler/routes.go
#	go.mod
#	go.sum


Former-commit-id: b139679e41
2024-03-26 17:05:16 +08:00
zhangwei 2b27073ac4 monitoring
Former-commit-id: bc8021349d
2024-03-26 17:01:29 +08:00
tzwang 08138fe02e added GetAlgorithms for ai scheduler
Former-commit-id: 02fabcc30a
2024-03-26 16:34:46 +08:00
qiwang 50d8cfe9db Merge pull request 'Add virtual machine interfaces' (#71) from qiwang/pcm-coordinator:master into master
Former-commit-id: c3e65f881c
2024-03-26 15:53:30 +08:00
qiwang 2cc0167361 feat:Add field to create virtual machine
Former-commit-id: 42e3e3d809
2024-03-26 15:49:24 +08:00
devad 04f756bc79 Merge pull request 'fix bugs' (#70) from devad/pcm-coordinator:fix_dev into master
Former-commit-id: c20c9dbb5a
2024-03-26 10:29:52 +08:00
jagger 0aba064a94 🐛 fix bugs
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 3023468120
2024-03-26 10:24:00 +08:00
qiwang 42bb16387f Merge pull request 'Add virtual machine interfaces' (#69) from qiwang/pcm-coordinator:master into master
Former-commit-id: d7a35331ce
2024-03-26 09:41:56 +08:00
qiwang 00bee1b830 feat:Add field to create virtual machine
Former-commit-id: 4b22f78193
2024-03-26 09:39:01 +08:00
qiwang 186741d480 Merge pull request 'Add field to create virtual machine' (#68) from qiwang/pcm-coordinator:master into master
Former-commit-id: 32e055d907
2024-03-25 20:16:09 +08:00
qiwang fdee604568 feat:Add field to create virtual machine
Former-commit-id: 6d09c5b808
2024-03-25 20:12:38 +08:00
qiwang 9c1e7b31e0 fix:Modify configuration file fields
Former-commit-id: 14e2d76333
2024-03-25 19:41:58 +08:00
qiwang f3277b72d8 fix:Modify configuration file fields
Former-commit-id: 3fa5bd31a0
2024-03-25 19:37:55 +08:00
qiwang eb2d695cbc fix:Modify configuration file fields
Former-commit-id: ecd908cee4
2024-03-25 19:09:15 +08:00
zhouqunjie 429b5faf20 Merge pull request 'hpc task submit' (#67) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: 34c6a8e007
2024-03-25 15:16:35 +08:00
zhouqunjie f8edde58f1 Merge branch 'master' of https://gitlink.org.cn/zhouqunjie/pcm-coordinator
Former-commit-id: a3af50a8d7
2024-03-25 15:12:28 +08:00
zhouqunjie 45b483566b submit hpc task
Former-commit-id: dbe3f6554b
2024-03-25 15:11:40 +08:00
qiwang 869279e19f Merge pull request 'Modify the interface for querying the number of clusters' (#66) from qiwang/pcm-coordinator:master into master
Former-commit-id: e5b3488ecc
2024-03-25 15:10:56 +08:00
qiwang 4b81450c68 Merge remote-tracking branch 'origin/master' into upmaster
Former-commit-id: 013dc8645f
2024-03-25 15:02:55 +08:00
qiwang ae3f90f593 fix:Modify the interface for querying the number of clusters
Former-commit-id: 1be1acd2b0
2024-03-25 15:02:06 +08:00
zw 2d59b6ef3a alert manager
Former-commit-id: 7c10915517
2024-03-24 17:09:21 +08:00
zhangwei e03dd1eede Providing metrics information to Prometheus
Former-commit-id: fb3fc7f706
2024-03-22 17:28:00 +08:00
tzwang 6641c7452f Merge pull request 'updated strategy module' (#65) from tzwang/pcm-coordinator:master into master
Former-commit-id: 20a3916d2c
2024-03-22 17:21:00 +08:00
tzwang c39c628670 modified staticWeight strategy and separate it from algorithm
Former-commit-id: 77630a215c
2024-03-22 17:16:19 +08:00
qiwang 8be78f4ba6 Merge pull request 'modify parameters' (#64) from qiwang/pcm-coordinator:master into master
Former-commit-id: d02ffd8d63
2024-03-22 16:00:30 +08:00
qiwang 882c4c0e83 fix:Modify configuration file fields
Former-commit-id: e4ef82f78c
2024-03-22 15:57:18 +08:00
qiwang 1d1b024e09 Merge remote-tracking branch 'origin/master' into upmaster
# Conflicts:
#	api/internal/types/types.go


Former-commit-id: 844ae53a2e
2024-03-22 15:56:35 +08:00
qiwang c6ad5637be fix:Modify configuration file fields
Former-commit-id: b3e7609f70
2024-03-22 15:53:31 +08:00
tzwang 1cb0a39320 modified shuguangai getResourceStats
Former-commit-id: a108e00353
2024-03-21 18:02:45 +08:00
zhangweiii d5dc85dca5 Merge pull request 'monitoring' (#63) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: 416bd0e54c
2024-03-21 16:28:22 +08:00
zhangwei 09c070b483 Providing metrics information to Prometheus
Former-commit-id: 62e24cde4f
2024-03-21 16:25:30 +08:00
devad 93ecc639c4 Merge pull request 'fix bug' (#62) from devad/pcm-coordinator:master into master
Former-commit-id: e9294decee
2024-03-21 15:21:26 +08:00
jagger 5d90bbad1f 🐛 fix bugs
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 29128e0ca2
2024-03-21 15:16:38 +08:00
devad 0f88808bf6 Merge pull request 'fix bugs' (#61) from devad/pcm-coordinator:master into master
Former-commit-id: ab0b39f4ed
2024-03-21 14:39:41 +08:00
jagger f685ce4045 Merge remote-tracking branch 'upstream/master'
Former-commit-id: 145e24a917
2024-03-21 09:18:21 +08:00
jagger cac72a9fe3 🐛 fix bugs
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 9a5898242b
2024-03-21 09:17:41 +08:00
zhangweiii e40a9bb2d0 Merge pull request 'monitoring' (#60) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: f2536eb942
2024-03-21 09:16:03 +08:00
zhangweiii 3839579c94 Merge pull request 'monitoring' (#59) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: 6bbc009e18
2024-03-21 09:14:26 +08:00
zhangwei 7b6c0223d9 Providing metrics information to Prometheus
Former-commit-id: c4ccd504af
2024-03-21 09:13:17 +08:00
zhangwei 021092b6b4 Providing metrics information to Prometheus
Former-commit-id: fcca6c8438
2024-03-21 09:11:12 +08:00
tzwang 918d95ad72 Merge pull request 'added dynamic resources strategy for the ai scheduler' (#58) from tzwang/pcm-coordinator:master into master
Former-commit-id: 3a8e24cd06
2024-03-20 17:41:03 +08:00
tzwang c807d544ca modified ai platform getResourcestats methods and dynamicResources strategy
Former-commit-id: ee8836b10b
2024-03-20 17:35:41 +08:00
zhouqunjie 9ab14b2f01 Merge pull request 'add pull and push task api' (#57) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: 6ae13da052
2024-03-19 09:52:39 +08:00
zhouqunjie f7bc50869e Merge remote-tracking branch 'zhouqunjie/master'
Former-commit-id: f413ad93b7
2024-03-19 09:49:16 +08:00
zhouqunjie d3ff595ea1 add pull and push task api
Former-commit-id: 40540a6dd0
2024-03-19 09:47:55 +08:00
qiwang 6998787fbd Merge pull request 'Statistics on the number of new virtual machine networks and mirror networks' (#56) from qiwang/pcm-coordinator:master into master
Former-commit-id: 5c9909161a
2024-03-19 09:41:32 +08:00
qiwang 88c674e0b9 Merge remote-tracking branch 'origin/master' into master0312
# Conflicts:
#	api/etc/pcm.yaml


Former-commit-id: 8f9cd14748
2024-03-19 09:22:51 +08:00
qiwang 93df06ada0 fix:Statistics on the number of new virtual machine networks and mirror networks
Former-commit-id: 22e384a381
2024-03-19 09:21:49 +08:00
tzwang fd71bfba72 modified ai option and dynamicResource strategy
Former-commit-id: 98ae246782
2024-03-15 17:34:49 +08:00
devad 3279fde8c4 Merge pull request 'fix bugs' (#55) from devad/pcm-coordinator:master into master
Former-commit-id: 5f5fe61f2b
2024-03-15 15:32:30 +08:00
jagger b831ff2204 🐛 fix bugs
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: f030b1c53b
2024-03-15 15:27:13 +08:00
tzwang f2cf784a7d modified shuguangai and octopus task submit options for empty algorithmname
Former-commit-id: a5e9379e51
2024-03-14 17:19:08 +08:00
devad 2d6bd7f6a1 Merge pull request 'fix bugs' (#54) from devad/pcm-coordinator:master into master
Former-commit-id: 6556395817
2024-03-14 17:15:23 +08:00
jagger 5f76de52a3 Merge branch 'upmaster'
# Conflicts:
#	api/desc/core/pcm-core.api


Former-commit-id: 83f9081ed9
2024-03-14 17:11:05 +08:00
jagger 1bd68400ce 🐛 fix bugs
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 53a7c41f3f
2024-03-14 17:06:43 +08:00
zhouqunjie a9eb0bf5a2 Merge pull request 'add clusterType info for hpc task' (#53) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: f5d398397a
2024-03-14 17:05:56 +08:00
zhangweiii 6dcb3862d1 Providing metrics information to Prometheus
Former-commit-id: 5d84c61c35
2024-03-14 17:04:32 +08:00
zhouqunjie 7c18ceb63c add clusterType info for hpc task
Former-commit-id: bfc1b11eb5
2024-03-14 17:02:35 +08:00
zhangwei 43bd51ce09 Providing metrics information to Prometheus
Former-commit-id: f3afc76fa6
2024-03-14 16:57:12 +08:00
zhouqunjie eaba4e8c55 Merge pull request 'change hpc model structure' (#51) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: 51843d2899
2024-03-14 11:24:37 +08:00
zhouqunjie 7cb535a739 change hpc model structure
Former-commit-id: e1c2ea6e84
2024-03-14 11:21:28 +08:00
devad 8abba1912b Merge pull request 'Dictionary data lists support paging queries Signed-off-by' (#50) from devad/pcm-coordinator:master into master
Former-commit-id: e9baacfc14
2024-03-14 10:45:33 +08:00
jagger 5a314f4cf8 Dictionary data lists support paging queries
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: bd79becb75
2024-03-14 10:41:06 +08:00
zhouqunjie 9e3188afe6 Merge pull request 'pcm-client for participant to pull and push task info' (#49) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: d86cc9d529
2024-03-13 20:53:00 +08:00
zhouqunjie cbc4674662 pcm-client for participant to pull and push task info
Former-commit-id: 9e0057609c
2024-03-13 20:49:10 +08:00
tzwang 05cfa23329 Merge pull request 'updated aitask submit implementations' (#48) from tzwang/pcm-coordinator:master into master
Former-commit-id: d9cd1d41ac
2024-03-13 17:37:34 +08:00
tzwang a32ff30ff0 modified aitask submit options
Former-commit-id: 1eb8398a89
2024-03-13 17:33:09 +08:00
tzwang 2f9462965e modified submit shuguangai implementation
Former-commit-id: 840111b6bb
2024-03-12 17:47:00 +08:00
qiwang 9781b44f88 Merge pull request 'modify parameters' (#47) from qiwang/pcm-coordinator:master into master
Former-commit-id: 3987ef1380
2024-03-12 17:06:41 +08:00
qiwang 24ff6528ab Merge branch 'upmaster'
# Conflicts:
#	api/etc/pcm.yaml


Former-commit-id: b11a7b51f7
2024-03-12 17:03:19 +08:00
qiwang dff5870e3e fix:modify virtual machine interfaces
Former-commit-id: 565a4a6b57
2024-03-12 16:58:11 +08:00
zhouqunjie 1dfff160ae Merge pull request 'missing submit to delete routes' (#46) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: bd1a46df12
2024-03-12 16:56:29 +08:00
zhouqunjie aa6b343f34 missing submit to delete routes
Former-commit-id: a624db8401
2024-03-12 16:53:50 +08:00
qiwang bda5f58086 fix:modify virtual machine interfaces
Former-commit-id: 36de12f7ea
2024-03-12 16:50:22 +08:00
tzwang 0ab53fa6ca Merge remote-tracking branch 'origin/master'
Former-commit-id: c2e19df4b8
2024-03-12 15:55:24 +08:00
zhouqunjie 0e2e6ff3c1 Merge pull request 'hpc job submit' (#44) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: 3f9d10aa4d
2024-03-12 15:17:34 +08:00
zhouqunjie 9824a3e38a hpc job submit
Former-commit-id: b8bbe255f0
2024-03-12 15:13:30 +08:00
devad 271175d0c2 Merge pull request 'Dictionary configuration function is implemented' (#43) from devad/pcm-coordinator:master into master
Former-commit-id: fabd218b26
2024-03-11 18:39:18 +08:00
jagger ab544705ac Merge branch 'upmaster'
Former-commit-id: bbf246369e
2024-03-11 18:35:04 +08:00
jagger b8dbe7312e Dictionary configuration function is implemented
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 3408273f72
2024-03-11 18:34:59 +08:00
zhangweiii a0616c749a Merge pull request 'center resources' (#42) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: c1e77049b6
2024-03-11 16:55:23 +08:00
zhangwei 074c9175cb centerResources
Former-commit-id: efde0d5a96
2024-03-11 16:52:09 +08:00
tzwang eeae93c9bd Merge remote-tracking branch 'origin/master'
Former-commit-id: 3e3d7b0a8c
2024-03-11 15:33:09 +08:00
qiwang fabd4b4125 Merge pull request 'modify virtual machine interfaces' (#41) from qiwang/pcm-coordinator:master into master
Former-commit-id: 035e66bc34
2024-03-11 10:26:07 +08:00
qiwang d9f0f3d204 fix:modify virtual machine interfaces
Former-commit-id: 3c32995455
2024-03-11 10:18:05 +08:00
qiwang ab25d152cb Merge pull request 'Add virtual machine interfaces' (#40) from qiwang/pcm-coordinator:master into master
Former-commit-id: 7ec6c07728
2024-03-08 17:31:08 +08:00
zhangwei 4a7e646e0e ClusterList
Former-commit-id: 839fd4761e
2024-03-08 17:28:50 +08:00
qiwang 71568bc063 fix:Add virtual machine interfaces
Former-commit-id: 42d9e80409
2024-03-08 17:19:02 +08:00
qiwang d0aca6fff6 fix:Add virtual machine interfaces
Former-commit-id: de79300334
2024-03-08 15:40:35 +08:00
tzwang 6f181c313a modified octopus functions generateAlgorithmId
Former-commit-id: 0440af0e37
2024-03-07 17:28:43 +08:00
zhangweiii 32bee79af3 Merge pull request 'dependence' (#37) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: 9de512ee32
2024-03-02 09:36:24 +08:00
zhangwei 6bf9dd6475 Cyclic dependence
Former-commit-id: dc93a69f07
2024-03-02 09:33:39 +08:00
zhangweiii b99b2322df Merge pull request 'dependence' (#36) from zhangweiii/pcm-coordinator:master into master
Former-commit-id: 7c412649d3
2024-03-01 18:09:34 +08:00
zhangwei 5b83d02f1f Cyclic dependence
Former-commit-id: 9975fdb4d6
2024-03-01 18:06:25 +08:00
tzwang 9e0b96d647 Merge pull request 'updated Aischeduler implementations' (#35) from tzwang/pcm-coordinator:master into master
Former-commit-id: 4a48e5c1e4
2024-03-01 17:17:09 +08:00
tzwang 7487707f3d modified ai option
Former-commit-id: dc33df489a
2024-03-01 17:07:41 +08:00
zhangweiii 6c57e3188f dependence
Former-commit-id: d8d63c116d
2024-03-01 11:29:31 +08:00
zhangwei e425abb5b0 Cyclic dependence
Former-commit-id: 28e9d5c366
2024-03-01 11:23:55 +08:00
zhangwei b04fb7eea7 Cyclic dependence
Former-commit-id: 9e82aae4fd
2024-03-01 11:21:31 +08:00
tzwang bfe7597644 modified shuguangai submit parameters
Former-commit-id: 5d86dc8ff4
2024-02-29 17:30:40 +08:00
devad 26c5e59e1a Merge pull request 'fix bugs' (#31) from devad/pcm-coordinator:master into master
Former-commit-id: 6739241de1
2024-02-29 17:13:27 +08:00
jagger 8b036eca12 🐛 fix bugs
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 40b2c7fee4
2024-02-29 17:10:24 +08:00
devad 8ec766cb42 Merge pull request 'The adapter cluster adds an update method' (#30) from devad/pcm-coordinator:master into master
Former-commit-id: eefc9a75e9
2024-02-29 16:41:57 +08:00
jagger e58521fd0a The adapter cluster adds an update method
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 78e3c7a683
2024-02-29 16:37:10 +08:00
devad d306348461 Merge pull request 'GetAdapterRelation returns data structure changes' (#29) from devad/pcm-coordinator:master into master
Former-commit-id: de69357d9b
2024-02-29 15:40:15 +08:00
jagger 795be902de 👽 Returns data structure changes
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 726568a74f
2024-02-29 15:35:33 +08:00
tzwang 88b3c355d8 Merge pull request 'ai platforms implications modified' (#28) from tzwang/pcm-coordinator:master into master
Former-commit-id: fe276e98a1
2024-02-28 16:45:07 +08:00
tzwang 1356ad5932 modified octopus, shuguangai implications
Former-commit-id: 62cac010a0
2024-02-28 16:38:03 +08:00
devad b610f7e582 Merge pull request 'Adapter supports fuzzy name query' (#27) from devad/pcm-coordinator:master into master
Former-commit-id: c3f0f5b3f1
2024-02-28 15:43:41 +08:00
jagger 5df75a03e1 adapter supports fuzzy name query
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: fd15722cd3
2024-02-28 15:40:02 +08:00
qiwang 0121f045fb Merge pull request 'Increase the number of clusters, adapters, and tasks' (#26) from qiwang/pcm-coordinator:master into master
Former-commit-id: 9dcb0036e7
2024-02-28 10:26:15 +08:00
qiwang 296df89ac5 fix:modify the number of clusters, adapters, and tasks
Former-commit-id: 8f27b00b8a
2024-02-28 10:22:26 +08:00
qiwang bf8969f1a6 fix:Increase the number of clusters, adapters, and tasks
Former-commit-id: 65112cc063
2024-02-27 18:18:06 +08:00
tzwang e2ffaeee37 modified storelink queryspec implications
Former-commit-id: 41c7236f52
2024-02-27 17:46:10 +08:00
tzwang 40bb2d8f04 modified octopus submit options
Former-commit-id: 96d68b07d1
2024-02-26 17:33:08 +08:00
tzwang efdf09649d updated ai octopus
Former-commit-id: e1760e20de
2024-02-26 00:36:35 +08:00
tzwang c7597592f9 modified octopus implementations
Former-commit-id: 163c0a8fd0
2024-02-23 17:52:02 +08:00
tzwang e62f734614 updated schedule submit
Former-commit-id: d80ce1e704
2024-02-22 21:13:27 +08:00
tzwang 05aa692150 modified pcm.api
Former-commit-id: 4ad39580a9
2024-02-22 17:20:58 +08:00
tzwang 07e5bcb5ba Merge pull request 'modified storelink submit method' (#25) from tzwang/pcm-coordinator:master into master
Former-commit-id: 5577c5808e
2024-02-21 17:13:01 +08:00
tzwang c1855def29 modified aioption and submit func
Former-commit-id: c7dce696d7
2024-02-21 17:04:03 +08:00
tzwang 7e70ac5693 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	api/desc/pcm.api
#	api/internal/handler/schedule/schedulegetairesourcetypeshandler.go
#	api/internal/handler/schedule/schedulegetaitasktypeshandler.go
#	api/internal/handler/schedule/schedulegetdatasetshandler.go
#	api/internal/handler/schedule/schedulegetstrategyhandler.go
#	api/internal/handler/schedule/schedulesubmithandler.go


Former-commit-id: 70155c1001
2024-02-20 15:17:21 +08:00
devad e1333d7676 Merge pull request 'Adapter bind cluster impl' (#24) from devad/pcm-coordinator:master into master
Former-commit-id: 35d2a76097
2024-02-20 09:25:29 +08:00
tzwang 3102a154c5 modified schedule apis
Former-commit-id: a30d161c27
2024-02-05 17:27:33 +08:00
jagger cedeb777e2 Adapter bind cluster impl
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: b661bec135
2024-02-05 16:56:19 +08:00
tzwang ceaad28539 added schedule apis
Former-commit-id: eed1ae30dd
2024-02-05 13:01:45 +08:00
zhangweiii 7ff38eb22f Remove the useless code
Former-commit-id: 56b299e5d4
2024-02-05 11:59:11 +08:00
zhangwei a616e914c6 Remove the useless code
Former-commit-id: eebee72d1c
2024-02-05 11:56:27 +08:00
tzwang a878233ccf Merge pull request 'added schedule.api into pcm.api' (#22) from tzwang/pcm-coordinator:master into master
Former-commit-id: 9652fc452b
2024-02-05 11:50:15 +08:00
zhangwei a0c9f23255 Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 19b1b24a6c
2024-02-05 11:05:26 +08:00
zhangwei 25ebbd510b Remove the useless code
Former-commit-id: 9c7a158e34
2024-02-05 10:27:30 +08:00
tzwang 757f30c92b added schedule.api and modified ai scheduler implementations
Former-commit-id: 9c9d0562d2
2024-02-04 23:05:21 +08:00
tzwang 58baf6b6ea Merge remote-tracking branch 'origin/master'
Former-commit-id: 8cd5a25168
2024-02-03 11:46:26 +08:00
zhangweiii 0435a6c5aa Center Resources top3
Former-commit-id: a0a1dc23af
2024-02-02 16:33:45 +08:00
zhangwei 1bc9dbdd3b Center Resources top3
Former-commit-id: a39562abc8
2024-02-02 16:28:52 +08:00
tzwang e2ca3b5be4 modified shuguangAi implementations
Former-commit-id: ec3fe090a5
2024-02-02 11:28:19 +08:00
tzwang 41474ecaff modified storage implementations
Former-commit-id: 06cbd0eae6
2024-02-01 17:27:18 +08:00
tzwang 41c93839f9 Merge pull request 'scheduler module modified' (#19) from tzwang/pcm-coordinator:master into master
Former-commit-id: 90cf569b70
2024-02-01 16:33:58 +08:00
tzwang c18e5a484c modified executor implementations
Former-commit-id: 4cf3a7804d
2024-02-01 16:29:55 +08:00
nudtpc aaf822020d approved
Former-commit-id: 3db1a6ac45
2024-02-01 10:36:27 +08:00
jagger 3d3e2e80bc add adapter impl
Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: a6090b9e54
2024-01-31 18:48:48 +08:00
tzwang 3cc16100fa added shuguangai cluster resources function
Former-commit-id: 3f03d5c3a2
2024-01-31 17:45:14 +08:00
tzwang b04a3f1255 updated aiScheduler
Former-commit-id: 9b8d271bb1
2024-01-31 11:24:00 +08:00
tzwang 75543eacae Merge pull request 'updated strategy parameters' (#17) from tzwang/pcm-coordinator:master into master
Former-commit-id: 44a3dfd14d
2024-01-30 17:40:38 +08:00
tzwang 125b94cf9c updated strategies of the scheduler and their params
Former-commit-id: c301ea7fef
2024-01-30 17:33:48 +08:00
tzwang 7d91e83a4a added options for the strategy and the scheduler
Former-commit-id: a81ff31b7c
2024-01-29 17:42:07 +08:00
zhangwei 356d4e6176 Obtain cluster list information according to participantId
Former-commit-id: 5af0d344af
2024-01-29 16:52:28 +08:00
tzwang 6949d513df Merge pull request 'static weight algorithm' (#15) from JoYang/pcm-coordinator:master into master
Former-commit-id: 40d527663f
2024-01-29 10:01:13 +08:00
Jo Yang 4cf1e23cf9 static weight algorithm
Former-commit-id: 2c1e37f6fb
2024-01-29 08:54:43 +08:00
tzwang ea2c9412d3 Merge pull request 'modified storelink module structure' (#14) from tzwang/pcm-coordinator:master into master
Former-commit-id: 2c539fe282
2024-01-26 17:26:50 +08:00
tzwang 449f3d7eec refactor the scheduler and storelink modules
Former-commit-id: b72e4e416a
2024-01-26 17:18:09 +08:00
tzwang 6496cfce3c Merge pull request 'moved the scheduler module' (#13) from tzwang/pcm-coordinator:master into master
Former-commit-id: 859c6baca3
2024-01-26 09:35:56 +08:00
tzwang 53213a8525 refactor the scheduler
Former-commit-id: 326d505dc1
2024-01-26 09:30:12 +08:00
tzwang e5a37df3c7 moved the scheduler module api internal
Former-commit-id: eb40826910
2024-01-25 18:06:11 +08:00
tzwang bf27a2d75c Merge pull request 'scheduler module modified' (#12) from tzwang/pcm-coordinator:master into master
Former-commit-id: 7cceae0438
2024-01-24 18:10:59 +08:00
tzwang 8882790591 scheduler refactor modified
Former-commit-id: dbf14eb6b8
2024-01-24 17:59:33 +08:00
devad c89fddca14 Fix ci/cd bug
Former-commit-id: dc2a3a4fc4
2024-01-24 11:22:08 +08:00
tzwang b9e79dc671 scheduler refactor modified
Former-commit-id: 1e70763e7f
2024-01-24 11:16:59 +08:00
jagger 9039fe2daa fix: ci/cd bug
Closes #10

Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: d47ff79765
2024-01-24 11:16:22 +08:00
tzwang 73c2c43468 scheduler refactor updated
Former-commit-id: 8d2fffb6f6
2024-01-23 17:51:11 +08:00
tzwang 0c87a541c5 scheduler refactor updated
Former-commit-id: 95e2b32695
2024-01-23 11:42:10 +08:00
tzwang 6c8dae6a78 modified ai scheduler struct
Former-commit-id: 761d378c4d
2024-01-22 23:15:01 +08:00
tzwang c22a9cc8f0 Merge pull request 'updated the scheduler module' (#8) from tzwang/pcm-coordinator:master into master
Former-commit-id: 2e745f2c7a
2024-01-19 17:40:44 +08:00
tzwang aac4ee3c67 scheduler refactor updated
Former-commit-id: 3c4f190ce8
2024-01-19 17:31:57 +08:00
tzwang 3b17ce4606 Merge pull request 'scheduler refactor updated' (#6) from tzwang/pcm-coordinator:master into master
Former-commit-id: 18455bc5a0
2024-01-17 17:15:40 +08:00
tzwang c6b6692a27 scheduler refactor updated3
Former-commit-id: 651ce567ab
2024-01-17 17:07:04 +08:00
tzwang cd56cd79d0 Merge pull request 'scheduler refactor updated2' (#5) from tzwang/pcm-coordinator:master into master
Former-commit-id: 0ef41cdf98
2024-01-17 11:26:09 +08:00
tzwang 5bbdd32340 scheduler refactor updated2
Former-commit-id: edf0488247
2024-01-17 11:23:00 +08:00
tzwang 20377c1f11 Merge pull request 'scheduler refactor updated' (#4) from tzwang/pcm-coordinator:master into master
Former-commit-id: f95e482ae3
2024-01-17 10:34:48 +08:00
tzwang 3e6a5cfff0 scheduler refactor updated
Former-commit-id: b75e9f6cff
2024-01-17 10:26:58 +08:00
tzwang bcbf6d3538 Merge pull request 'Refactor scheduler structure' (#2) from scheduler_restruct into master
Former-commit-id: 7d21cf74eb
2024-01-12 17:06:44 +08:00
zhouqunjie 5f7476d8dd approved
Former-commit-id: 5ea020ffff
2024-01-12 16:59:07 +08:00
jagger 1749361172 fix: Interface apps/list returns duplicate data
Closes #4

Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 22456e59e1
2024-01-12 15:30:08 +08:00
zhouqunjie d12b85f60a fix
Former-commit-id: 94e2e5afec
2024-01-11 16:05:48 +08:00
zhouqunjie b89cd6a800 update url of readme_zh
Former-commit-id: 603574b381
2024-01-11 16:00:08 +08:00
zhouqunjie bbad8ebe04 readme update
Former-commit-id: 2e84df498a
2024-01-11 15:57:44 +08:00
zhouqunjie e9359849e3 readme update
Former-commit-id: 2203e780fe
2024-01-11 15:53:26 +08:00
tzwang 30cbc89410 调度结构refactor2
Former-commit-id: 2221bb8578
2024-01-10 16:40:49 +08:00
tzwang 90b4dbb3a2 调度结构refactor1
Former-commit-id: eb41726104
2024-01-10 11:30:21 +08:00
qiwang 990c4cf0be fix:增加VmInfoList
Former-commit-id: 65fdb3d873
2024-01-05 11:46:34 +08:00
qiwang b675deb8ff fix:增加VmInfoList
Former-commit-id: 3288ae6838
2024-01-05 11:19:08 +08:00
qiwang 6310118bf4 fix:增加VmInfoList
Former-commit-id: cc686d681f
2024-01-04 16:15:52 +08:00
devad d77b8eba27 fix bugs
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: 4eee4c12a9
2024-01-03 16:40:25 +08:00
devad 7654945c07 暂停、启动应用接口实现
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: d409682046
2024-01-03 16:01:34 +08:00
devad fb0c6029bd fix bugs
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: a1cfa43774
2024-01-03 15:04:26 +08:00
devad 9c9d836bac cloud app重启接口实现
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: 7300f017fa
2024-01-03 13:05:19 +08:00
devad a2a8653824 cloud app重启接口实现
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: 3ad235d75e
2024-01-03 13:01:03 +08:00
devad 6e5e7e3923 cloud app重启接口实现
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: ab602b43a6
2024-01-03 12:51:18 +08:00
devad f3f919200b cloud app删除接口实现
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: a899d04925
2024-01-03 11:43:36 +08:00
devad 13551239ff 增加删除app接口
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: f40f21e142
2024-01-02 20:03:25 +08:00
zhangwei 277a1b3549 监控添加校验
Former-commit-id: 3f71c6c2bd
2024-01-02 17:06:00 +08:00
zhangwei c42afa719a 监控修改
Former-commit-id: 6546b9888a
2023-12-29 17:10:31 +08:00
zhangwei 74bfb9c5b7 队列添加done操作
Former-commit-id: 03494c2361
2023-12-27 19:09:45 +08:00
zhangwei 0f837a7c62 移除redis
Former-commit-id: f15cf213cd
2023-12-27 15:57:13 +08:00
zhangwei 4817c96ba7 Merge remote-tracking branch 'origin/develop-Dec'
Former-commit-id: ff6e6d46cb
2023-12-27 15:50:26 +08:00
zhangwei 693b1e7473 移除
Former-commit-id: 57e703c2da
2023-12-27 15:00:53 +08:00
zhangwei 772c628fe1 监控修改
Former-commit-id: ccdecc6eae
2023-12-18 18:29:29 +08:00
devad 1e825ca29b cloud表namespace取nsID的值
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: 33a134e92f
2023-12-18 11:49:21 +08:00
devad cefbf7ecf5 增加应用列表状态判断
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: 3b2f0899e9
2023-12-14 18:42:17 +08:00
devad e2821fd51f 数据库连接判断
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: ac99327ac4
2023-12-13 15:37:26 +08:00
devad 33fcac84a0 update Dockerfile
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: a083d89102
2023-12-12 17:28:11 +08:00
zhangweiii d306cb310f refactor: .devops/rpc.yml
Former-commit-id: 20b6f0b3eb
2023-12-12 15:06:31 +08:00
zhangwei 8f7c3b5a7c 移除nacos
Former-commit-id: 20896519c2
2023-12-11 18:30:38 +08:00
zhangweiii f8a2362a6a refactor: .devops/api.yml
Former-commit-id: 2267561841
2023-12-11 16:11:05 +08:00
zhangwei 7bc4e121c2 p端id返回改成string
Former-commit-id: f77e73db57
2023-12-08 19:17:29 +08:00
tzwang 7e8f11a439 存算联动shuguangHpc调整
Former-commit-id: 9c92b5c259
2023-12-08 17:25:30 +08:00
zhangwei 4b797431be 提交任务修复
Former-commit-id: 8c0a644114
2023-12-08 15:36:13 +08:00
devad fbbc5e3b00 生成代码提交
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: ce056b8d2f
2023-12-08 15:20:43 +08:00
tzwang 1d296f2155 存算联动调整5
Former-commit-id: f59160f417
2023-12-08 11:20:58 +08:00
tzwang d7556a9c1f 存算联动调整4
Former-commit-id: 2a1ae75d61
2023-12-08 10:56:21 +08:00
tzwang ff4d0b7136 存算联动调整3
Former-commit-id: 5fb7b0313b
2023-12-07 20:10:04 +08:00
tzwang 09b56ce0d3 Merge remote-tracking branch 'origin/master'
Former-commit-id: c4945eaa44
2023-12-07 18:05:46 +08:00
tzwang 10e231544c 存算联动调整2
Former-commit-id: 8bdfaa2320
2023-12-07 18:05:34 +08:00
devad 45d1bdb4c3 提交任务list时存储yamlString
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: cad9cccd41
2023-12-07 15:48:26 +08:00
tzwang 3915d1953a 存算联动调整
Former-commit-id: eb90e99d47
2023-12-07 11:36:11 +08:00
zhangwei fdb2cda61a 新增提交任务接口增加非必填
Former-commit-id: afa3fa42e1
2023-12-06 21:27:41 +08:00
zhangwei 066250ff72 新增提交任务接口
Former-commit-id: 2e52eb0850
2023-12-06 21:03:01 +08:00
zhangwei 2321650bb1 初始化promeclient
Former-commit-id: 6519222177
2023-12-06 16:48:20 +08:00
devad 9acf1a1151 fix bug
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: 91a3a9d7f8
2023-12-06 15:53:10 +08:00
devad 828b6cdcc8 fix bug
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: 04346b58bc
2023-12-06 15:22:55 +08:00
zhangwei 8f044d5f37 添加执行任务列表接口
Former-commit-id: 96060f7cec
2023-12-06 15:15:46 +08:00
zhangwei 90f781d195 添加执行任务列表接口
Former-commit-id: ae0e533058
2023-12-06 14:33:04 +08:00
zhangwei fde491095a 添加执行任务列表接口
Former-commit-id: 55e7295cfc
2023-12-06 14:32:58 +08:00
zhangwei c11bd97a0c 添加执行任务列表接口
Former-commit-id: 2bdcb634ec
2023-12-06 14:31:08 +08:00
zhangwei 34c4a5813f 添加执行任务列表接口
Former-commit-id: dadb7daf83
2023-12-06 14:16:22 +08:00
zhangwei cde22cad93 添加执行任务列表接口
Former-commit-id: 730d24000a
2023-12-06 14:09:20 +08:00
devad 3b396e6e56 修复查询应用列表的bug
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: 2953905910
2023-12-06 10:59:19 +08:00
zhangwei 93773f801a 方法名称纠正
Former-commit-id: 1d0546bb3a
2023-12-05 09:20:58 +08:00
zhangwei 897642c5c6 修改配置信息
Former-commit-id: 35eddac8b6
2023-12-01 16:09:47 +08:00
zhangwei 5bfe2a3745 修改同步任务信息sql
Former-commit-id: 8acc866e51
2023-12-01 16:08:24 +08:00
zhangwei edaddf6b71 zw
Former-commit-id: 066007df0d
2023-11-29 19:09:33 +08:00
zhangwei acd45f79a5 zw
Former-commit-id: 5e7d1dc22a
2023-11-29 19:09:07 +08:00
zhouqunjie f16396c746 提交代码
Former-commit-id: 8710013a83
2023-11-29 17:27:51 +08:00
zhouqunjie 7cacc5347a 提交代码
Former-commit-id: 5db33d3353
2023-11-29 16:48:16 +08:00
devad 444e487e87 获取应用分发详情修改
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: a8959f0e07
2023-11-28 18:35:06 +08:00
zhangwei 1e3518a14e 将nsid设置到命名空间
Former-commit-id: d06528b408
2023-11-28 15:24:18 +08:00
zhangwei efb461294c p端根据id查询任务列表
Former-commit-id: 9dfd73aad8
2023-11-28 15:13:36 +08:00
devad d08558a080 依赖升级
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: 027911e82f
2023-11-28 12:08:20 +08:00
zhouqunjie aad64863ba 修改列表查询入参名称
Former-commit-id: 0c0586081f
2023-11-27 18:51:23 +08:00
zhouqunjie b5b23b876c 修改列表查询入参名称
Former-commit-id: f3a7238077
2023-11-27 18:48:24 +08:00
Diva123456 bbfd4ad044 增加sealos处理
Former-commit-id: e210b3c283
2023-11-27 17:37:44 +08:00
devad 39f40df764 根据应用名称查询pod列表
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: 990fc0500a
2023-11-27 17:37:10 +08:00
devad f426389e3f 根据应用名称查询pod列表
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: 9bb2c298b0
2023-11-27 17:33:34 +08:00
zhangwei c4615e3c18 rpc移除同步任务接口
Former-commit-id: 9c13fa7882
2023-11-27 15:52:47 +08:00
devad 9f570982ca 依赖升级
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: 1657ca7305
2023-11-27 12:19:24 +08:00
zhouqunjie 714ea0b797 Merge remote-tracking branch 'origin/master'
Former-commit-id: b6a7f7363d
2023-11-25 16:37:56 +08:00
zhouqunjie 405c972314 应用列表中展示子表中的副本数量
Former-commit-id: 8388d26ea8
2023-11-25 16:37:50 +08:00
devad e747d60264 gorm 连接池配置
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: 4ce1b2956b
2023-11-25 16:20:04 +08:00
zhouqunjie 68c82f7807 Merge remote-tracking branch 'origin/master'
Former-commit-id: f7cf741b54
2023-11-25 15:17:28 +08:00
zhouqunjie 876ce432eb 屏蔽调度算法,采用随机分发策略
Former-commit-id: e9df36b827
2023-11-25 15:17:20 +08:00
devad bb054c785f 依赖更新
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: 908063d5a4
2023-11-25 12:42:52 +08:00
devad 56a60801b5 fix bugs
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: 9c6277828c
2023-11-24 16:51:40 +08:00
devad 4fda5e80bf 列表查询
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: 1263851a58
2023-11-24 16:14:02 +08:00
devad 4a9b9d3c06 列表查询
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: f0de1a71a2
2023-11-24 15:42:30 +08:00
zhouqunjie 81f1a1ce1b 调度部分调整
Former-commit-id: 62ca70a4a1
2023-11-24 14:29:59 +08:00
devad 27cb0d6fbe 暂存
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: 1e2ca857dd
2023-11-24 14:22:40 +08:00
zhouqunjie d80c49dccb repeat cluster name validate
Former-commit-id: 9c04866bf2
2023-11-23 20:54:36 +08:00
zhouqunjie dfdedd7689 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	api/internal/logic/cloud/updatetenantlogic.go


Former-commit-id: 7ea991a272
2023-11-23 20:24:23 +08:00
zhouqunjie 2620759f8b jcos registCluster and deleteCluster
Former-commit-id: 7dd50995c0
2023-11-23 20:23:49 +08:00
devad 36ae5ad124 🐛 Fixing a bug.
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: cd070699d1
2023-11-23 20:14:58 +08:00
devad 3a999dc5d8 models更新
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: 5fa964122f
2023-11-23 19:45:24 +08:00
devad 94a73f6517 models更新
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: 85743ac872
2023-11-23 18:59:40 +08:00
devad 3120d5c081 models更新
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: b9775efde3
2023-11-23 18:53:33 +08:00
devad 48ff9d1d4f api新增集群注册接口
Signed-off-by: devad <cossjie@foxmail.com>

Former-commit-id: 9c8ef50b78
2023-11-23 18:36:41 +08:00
zhangwei e170538d86 pod图表接口
Former-commit-id: cfc3d23b49
2023-11-23 17:51:07 +08:00
zhangwei a88d3069eb controller图表接口
Former-commit-id: d11bdf17f5
2023-11-23 15:26:56 +08:00
zhangwei 0e0bc7be0f controller图表接口
Former-commit-id: c4bd96cf4d
2023-11-23 15:20:21 +08:00
zhangwei 6270da26bd controller图表接口
Former-commit-id: 035c357c62
2023-11-23 15:20:15 +08:00
tzwang feb444a53b 调度方法修改
Former-commit-id: f19df9d4b1
2023-11-23 15:09:13 +08:00
tzwang 1467cc1ace 存算联动添加曙光Hpc
Former-commit-id: e6103a5cd0
2023-11-23 10:50:32 +08:00
zhouqunjie 70698b5fa5 Merge remote-tracking branch 'origin/master'
Former-commit-id: 9905536031
2023-11-22 18:13:08 +08:00
zhouqunjie 40c39d8422 fix bug remove gotags for listparticipant
Former-commit-id: c00fb78c92
2023-11-22 18:12:51 +08:00
tzwang d207b844c9 调度结构修改
Former-commit-id: 35dc202d29
2023-11-22 18:12:15 +08:00
zhangwei 2d1d4ea57d 配置文件修改
Former-commit-id: a07fd6bad5
2023-11-22 14:48:20 +08:00
zhangwei e5b02d4d32 pod监控图表信息修改
Former-commit-id: 2e7cfdfda5
2023-11-22 14:37:26 +08:00
tzwang 2f8c24339a 调度结构修改
Former-commit-id: 3693b853c6
2023-11-22 11:30:48 +08:00
925 changed files with 43170 additions and 20003 deletions

53
.devops/aly.yml Normal file
View File

@ -0,0 +1,53 @@
version: 2
name: aly
description: 发布环境https://comnet.jointcloud.net
global:
concurrent: 1
workflow:
- ref: start
name: 开始
task: start
- ref: end
name: 结束
task: end
needs:
- ssh_cmd_0
- ref: git_clone_0
name: git clone
task: git_clone@1.2.9
input:
remote_url: '"https://gitlink.org.cn/JointCloud/pcm-coordinator.git"'
ref: '"refs/heads/master"'
commit_id: '""'
depth: 1
needs:
- start
- ref: docker_image_build_0
name: docker镜像构建
task: docker_image_build@1.6.0
input:
docker_username: ((aly.docker_user))
docker_password: ((aly.docker_password))
image_name: '"registry.cn-hangzhou.aliyuncs.com/jcce/pcm-core-api"'
image_tag: '"latest"'
registry_address: '"registry.cn-hangzhou.aliyuncs.com"'
docker_file: '"Dockerfile"'
docker_build_path: '"."'
workspace: git_clone_0.git_path
image_clean: true
image_push: true
build_args: '""'
needs:
- git_clone_0
- ref: ssh_cmd_0
name: ssh执行命令
task: ssh_cmd@1.1.1
input:
ssh_private_key: ((aly.ssh_private_key))
ssh_ip: '"47.92.39.128"'
ssh_port: '"22"'
ssh_user: '"root"'
ssh_cmd: '"kubectl rollout restart deployment pcm-core-api -n ns-admin"'
needs:
- docker_image_build_0

View File

@ -1,107 +0,0 @@
version: 2
name: api
description: ""
global:
concurrent: 1
param:
- ref: deploy_path
name: deploy_path
value: '"pcm-coordinator-api.yaml"'
required: false
type: STRING
hidden: false
- ref: nacos_host
name: nacos_host
value: '"10.206.0.12"'
required: false
type: STRING
hidden: false
- ref: secret_name
name: ""
value: '"jcce-aliyuncs"'
required: false
type: STRING
hidden: false
- ref: project_name
name: ""
value: '"pcm-coordinator-api"'
required: false
type: STRING
hidden: false
trigger:
webhook: gitlink@1.0.0
event:
- ref: create_tag
ruleset:
- param-ref: tag
operator: EQ
value: '""'
ruleset-operator: AND
workflow:
- ref: start
name: 开始
task: start
- ref: git_clone_0
name: git clone
task: git_clone@1.2.6
input:
remote_url: '"https://gitlink.org.cn/jcce-pcm/pcm-coordinator.git"'
ref: '"refs/heads/master"'
commit_id: '""'
depth: 1
needs:
- start
- ref: docker_image_build_0
name: docker镜像构建
task: docker_image_build@1.6.0
input:
docker_username: ((dev.docker_user))
docker_password: ((dev.docker_password))
image_name: '"registry.cn-hangzhou.aliyuncs.com/jcce/pcm-coordinator-api"'
image_tag: git_clone_0.commit_time
registry_address: '"registry.cn-hangzhou.aliyuncs.com"'
docker_file: git_clone_0.git_path + '/api/Dockerfile'
docker_build_path: git_clone_0.git_path
workspace: git_clone_0.git_path
image_clean: true
image_push: true
build_args: '""'
needs:
- shell_0
- ref: end
name: 结束
task: end
needs:
- kubectl_deploy_0
- ref: kubectl_deploy_0
name: kubectl部署资源
task: kubectl_deploy@1.1.0
input:
command: '"apply"'
resource_file_path: git_clone_0.git_path + '/api'
certificate_authority_data: ((dev.k8s_cad))
server: '"https://119.45.100.73:6443"'
client_certificate_data: ((dev.k8s_ccd))
client_key_data: ((dev.k8s_ckd))
hosts: '""'
needs:
- docker_image_build_0
- ref: shell_0
name: shell
image: docker.jianmuhub.com/library/debian:buster-slim
env:
IMAGE_NAME: '"registry.cn-hangzhou.aliyuncs.com/jcce/pcm-coordinator-api"'
IMAGE_TAG: git_clone_0.commit_time
SECRET_NAME: global.secret_name
NACOS_HOST: global.nacos_host
PROJECT_NAME: global.project_name
PROJECT_PATH: git_clone_0.git_path
script:
- cd ${PROJECT_PATH}/api
- sed -i "s#image_name#${IMAGE_NAME}:${IMAGE_TAG}#" ${PROJECT_NAME}.yaml
- sed -i "s#secret_name#${SECRET_NAME}#" ${PROJECT_NAME}.yaml
- sed -i "s#nacos_host#${NACOS_HOST}#" ${PROJECT_NAME}.yaml
- cat ${PROJECT_NAME}.yaml
needs:
- git_clone_0

View File

@ -1,107 +0,0 @@
version: 2
name: rpc
description: ""
global:
concurrent: 1
param:
- ref: deploy_path
name: deploy_path
value: '"pcm-coordinator-rpc.yaml"'
required: false
type: STRING
hidden: false
- ref: nacos_host
name: nacos_host
value: '"10.206.0.12"'
required: false
type: STRING
hidden: false
- ref: secret_name
name: ""
value: '"jcce-aliyuncs"'
required: false
type: STRING
hidden: false
- ref: project_name
name: ""
value: '"pcm-coordinator-rpc"'
required: false
type: STRING
hidden: false
trigger:
webhook: gitlink@1.0.0
event:
- ref: create_tag
ruleset:
- param-ref: tag
operator: EQ
value: '""'
ruleset-operator: AND
workflow:
- ref: start
name: 开始
task: start
- ref: git_clone_0
name: git clone
task: git_clone@1.2.6
input:
remote_url: '"https://gitlink.org.cn/jcce-pcm/pcm-coordinator.git"'
ref: '"refs/heads/master"'
commit_id: '""'
depth: 1
needs:
- start
- ref: docker_image_build_0
name: docker镜像构建
task: docker_image_build@1.6.0
input:
docker_username: ((dev.docker_user))
docker_password: ((dev.docker_password))
image_name: '"registry.cn-hangzhou.aliyuncs.com/jcce/pcm-coordinator-rpc"'
image_tag: git_clone_0.commit_time
registry_address: '"registry.cn-hangzhou.aliyuncs.com"'
docker_file: git_clone_0.git_path + '/rpc/Dockerfile'
docker_build_path: git_clone_0.git_path
workspace: git_clone_0.git_path
image_clean: true
image_push: true
build_args: '""'
needs:
- shell_0
- ref: end
name: 结束
task: end
needs:
- kubectl_deploy_0
- ref: kubectl_deploy_0
name: kubectl部署资源
task: kubectl_deploy@1.1.0
input:
command: '"apply"'
resource_file_path: git_clone_0.git_path + '/rpc'
certificate_authority_data: ((dev.k8s_cad))
server: '"https://119.45.100.73:6443"'
client_certificate_data: ((dev.k8s_ccd))
client_key_data: ((dev.k8s_ckd))
hosts: '""'
needs:
- docker_image_build_0
- ref: shell_0
name: shell
image: docker.jianmuhub.com/library/debian:buster-slim
env:
IMAGE_NAME: '"registry.cn-hangzhou.aliyuncs.com/jcce/pcm-coordinator-rpc"'
IMAGE_TAG: git_clone_0.commit_time
SECRET_NAME: global.secret_name
NACOS_HOST: global.nacos_host
PROJECT_NAME: global.project_name
PROJECT_PATH: git_clone_0.git_path
script:
- cd ${PROJECT_PATH}/rpc
- sed -i "s#image_name#${IMAGE_NAME}:${IMAGE_TAG}#" ${PROJECT_NAME}.yaml
- sed -i "s#secret_name#${SECRET_NAME}#" ${PROJECT_NAME}.yaml
- sed -i "s#nacos_host#${NACOS_HOST}#" ${PROJECT_NAME}.yaml
- cat ${PROJECT_NAME}.yaml
needs:
- git_clone_0

65
.devops/阿里云.yml Normal file
View File

@ -0,0 +1,65 @@
version: 2
name: 阿里云
description: ""
global:
concurrent: 1
param:
- ref: ssh_host
name: ""
value: '"47.92.39.128"'
required: false
type: STRING
hidden: true
- ref: ssh_user
name: ""
value: '"root"'
required: false
type: STRING
hidden: true
workflow:
- ref: start
name: 开始
task: start
- ref: end
name: 结束
task: end
needs:
- ssh_cmd_0
- ref: git_clone_0
name: git clone
task: git_clone@1.2.9
input:
remote_url: '"https://gitlink.org.cn/JointCloud/pcm-coordinator.git"'
ref: '"refs/heads/master"'
commit_id: '""'
depth: 1
needs:
- start
- ref: docker_image_build_0
name: docker镜像构建
task: docker_image_build@1.6.0
input:
docker_username: ((aly.docker_user))
docker_password: ((aly.docker_password))
image_name: '"registry.cn-hangzhou.aliyuncs.com/jcce/pcm-core-api"'
image_tag: '"latest"'
registry_address: '"registry.cn-hangzhou.aliyuncs.com"'
docker_file: '"Dockerfile"'
docker_build_path: git_clone_0.git_path
workspace: git_clone_0.git_path
image_push: true
build_args: '""'
needs:
- git_clone_0
- ref: ssh_cmd_0
name: ssh执行命令
task: ssh_cmd@1.1.1
input:
ssh_private_key: ((aly.ssh_private_key))
ssh_ip: global.ssh_host
ssh_port: '"22"'
ssh_user: global.ssh_user
ssh_cmd: '"kubectl rollout restart deployment pcm-core-api -n ns-admin"'
needs:
- docker_image_build_0

63
.github/workflows/docker-publish.yml vendored Normal file
View File

@ -0,0 +1,63 @@
name: Docker
on:
push:
branches: [ "master" ]
tags: [ 'v*.*.*' ]
pull_request:
branches: [ "master" ]
workflow_dispatch: # 允许手动触发
env:
REGISTRY: registry.cn-hangzhou.aliyuncs.com # 修改为你的阿里云镜像仓库地址
IMAGE_NAME: jcce/pcm-core-api # 修改为你的阿里云镜像仓库名称
IMAGE_TAG: latest
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.ALIYUN_USERNAME }}
password: ${{ secrets.ALIYUN_PASSWORD }}
- name: Get commit ID and build time
id: get_tags
run: |
echo "::set-output name=build_time::$(date +'%Y%m%d%H%M%S')"
- name: Build and push multi-arch image
run: |
docker buildx build \
--platform linux/amd64,linux/arm64 \
-t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} \
-t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.get_tags.outputs.build_time }} \
--push .
- name: Set up Kubernetes CLI
uses: azure/setup-kubectl@v1
- name: Configure kubeconfig
run: |
mkdir -p ~/.kube
echo "${{ secrets.KUBECONFIG }}" > ~/.kube/config
- name: Restart Deployment
run: kubectl rollout restart deployment ${{ secrets.SSH_DEPLOYMENT }}

26
.github/workflows/sync.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Sync Mirror Repository
on:
schedule:
- cron: '0 */8 * * *' # 每小时同步一次
workflow_dispatch: # 允许手动触发
jobs:
mirror:
runs-on: ubuntu-latest
timeout-minutes: 10 # 设置作业的超时时间为10分钟
steps:
- name: Checkout target repository
uses: actions/checkout@v2
with:
fetch-depth: 1 # 获取完整的提交历史
- name: Mirror source repository
uses: wearerequired/git-mirror-action@v1
with:
source-repo: "https://gitlink.org.cn/JointCloud/pcm-coordinator.git" # 源仓库的URL
destination-repo: "git@github.com:${{ github.repository }}.git" # 目标仓库的URL
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}

5
.gitignore vendored
View File

@ -13,9 +13,6 @@ PCM
*.out
coverage.txt
# Dependency directories (remove the comment below to include it)
vendor/
# buf for protobuf
buf.lock
@ -27,5 +24,5 @@ buf.lock
configs/tenanter.yaml
log/
/go_build_gitlink_org_cn_JCCE_PCM
/cache/
/vendor/

29
Dockerfile Normal file
View File

@ -0,0 +1,29 @@
FROM --platform=$BUILDPLATFORM golang:alpine AS builder
WORKDIR /app
COPY . .
ENV GO111MODULE=on
RUN go mod download
ARG TARGETOS
ARG TARGETARCH
# 使用 GOOS 和 GOARCH 环境变量来构建不同架构的二进制文件
RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -ldflags="-w -s" -o pcm-core-api
FROM --platform=$TARGETPLATFORM alpine:latest
WORKDIR /app
#修改alpine源为上海交通大学
RUN apk add --no-cache ca-certificates && update-ca-certificates && \
apk add --update tzdata && \
rm -rf /var/cache/apk/*
COPY --from=builder /app/pcm-core-api .
COPY --from=builder /app/etc/pcm.yaml .
ENV TZ=Asia/Shanghai
EXPOSE 8999
ENTRYPOINT ./pcm-core-api --f pcm.yaml

View File

@ -1,21 +1,8 @@
pcm-core-api:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pcm-core-api adaptor/PCM-CORE/api/pcm.go
api-gen:
goctl api go -api desc/pcm.api -dir . -style gozero --home ../deploy/goctl
pcm-core-rpc:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pcm-core-rpc adaptor/PCM-CORE/rpc/pcmcore.go
Generate-AMD64:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pcm-coordinator-api pcm.go
pcm-ac-rpc:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pcm-ac adaptor/PCM-HPC/PCM-AC/rpc/hpcac.go
pcm-kubenative-rpc:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pcm-kubenative adaptor/PCM-K8S/PCM-K8S-NATIVE/rpc/pcmkubenative.go
pcm-modelarts-rpc:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pcm-modelarts adaptor/PCM-AI/PCM-MODELARTS/rpc/pcmmodelarts.go
pcm-ceph-rpc:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pcm-ceph adaptor/PCM-STORAGE/PCM-CEPH/rpc/pcmceph.go
all-build: pcm-core-rpc pcm-core-api pcm-ac-rpc pcm-kubenative-rpc pcm-modelarts-rpc pcm-ceph-rpc
.PHONY: pcm-core-rpc pcm-core-api pcm-ac-rpc pcm-kubenative-rpc pcm-modelarts-rpc pcm-ceph-rpc
Generate-ARM64:
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GOARM=7 go build -o pcm-coordinator-api pcm.go

170
README.md
View File

@ -1,107 +1,97 @@
![PCM](https://www.gitlink.org.cn/images/avatars/Organization/123822?t=1689062058)
jointcloud云际团队正式发布PCM对等协作框架框架包含了kubernan核心组件源代码、8个participant协作者组件仓库以及PCM中定义的超算、智算、数算资源操作及信息收集规格。
<div style="text-align:center">
<img src="https://www.gitlink.org.cn/images/avatars/Organization/123822?t=1689062058" alt="PCM" style="float:center" />
</div>
<p align="center">
<a href="https://www.gitlink.org.cn/JointCloud/pcm-coordinator/tree/master/docs">Docs</a> |
<a href="https://www.gitlink.org.cn/JointCloud/pcm-coordinator/tree/master/docs">简体中文</a> |
<a href="https://www.gitlink.org.cn/JointCloud/pcm-coordinator/milestones">Milestones</a>
</p>
## 什么是Jointcloud和PCM
  云际协作环境 (JointCloud cooperation environment, JCCE), JCCE 包括分布云交易、分布云社区、分布云监管以及基于区块链的分布记账系统, JCCE 中与信息交换尤其是价值交换相关的支撑技术, 利于打破云际协作参与方之间的信息不对称, 为参与各方创造多赢机会, 实现对云际计算商业模式创新的强有力支撑。
  对等协作机制(peer cooperation mechanism, PCM)的愿景是在云际环境中构建一套所有服务提供方和需求方能够自主参与协作实现对等交易以非侵入的方式实现各利益主体间便捷高效的连接和调用并在构建云际生态的同时形成行业标准吸引更多云际服务商加入贡献。PCM站在云上视角叠加于云之上关注云之间协作多于云自身。
  对等协作机制建立在一个标准的软件定义框架之上按照这个标准框架拥有物理云资源的云服务提供者可以自主定义PCM规则框架其他遵循该规则框架的实体云即可参与协作交易并进而面向领域应用定制虚拟专用云满足各类云际参与者如中心侧、边缘侧和终端侧等异构基础设施资源直接自主参与协作和交易的需求。
## What is Jointcloud and PCM
Jointcloud Cooperation Environment (JCCE) comprises Distributed Cloud Trading, Distributed Cloud Community, Distributed Cloud Supervision, and a Blockchain-based Distributed Accounting System. JCCE, with its supporting technologies related to information and value exchange, facilitates breaking the information asymmetry among participants in cloud collaboration. It creates a win-win opportunity for all involved parties and provides robust support for innovative business models in the cloud collaboration computing environment.
The vision of the Peer Cooperation Mechanism (PCM) is to build a set of collaboration mechanisms in the cloud environment where all service providers and demand-side entities can autonomously participate, achieve peer-to-peer transactions, and establish efficient connections and invocations in a non-intrusive manner. PCM focuses more on collaboration among clouds rather than individual clouds themselves.
PCM is built upon a standardized software-defined framework. Cloud service providers with physical cloud resources can autonomously define PCM rule frameworks. Other entities adhering to these rule frameworks can then participate in collaborative transactions. Subsequently, tailored virtual private clouds can be created for domain-specific applications, meeting the diverse requirements of various cloud participants, such as central, edge, and terminal infrastructure, enabling them to directly participate in collaboration and transactions.
## Real-world Issues Addressed by PCM:
- **Performance Improvement**
Developers in the cloud collaboration environment experience performance enhancement upon joining the PCM framework. They can generate code for the internal functionality structure and most specification definitions using descriptive language, allowing them to focus on business logic development without concerning themselves with underlying management functions. The framework offers features such as microservices management, multi-language code generation, and model bridging, reducing coding workload and entry barriers while improving efficiency.
## PCM力求解决的现实问题
- **效能提升**:
  云际开发者加入PCM框架后可以通过描述性语言生成框架内部功能结构的代码和大部分规格定义专注于业务逻辑开发无需关心底层管理功能。框架提供微服务管理、多语言代码生成和模型桥接功能可降低编码工作量和入门难度提高能效。
- **解决平台锁定问题**:
  对等协作机制通过多云适配、标准化接口和抽象层等手段,有效解决平台锁定问题,实现跨平台运行、部署和交互。标准化接口简化开发人员工作,降低平台锁定风险。
- **降低代码开发难度**:
  对等协作开发框架降低了开发难度提供了结构化开发模式、现成组件和文档支持不同级别开发人员能更公平地协同工作。框架可节省约50%的开发时间初级程序员用约15人天完成原需1人月的任务。自动生成工具、代码模板和组件复用等功能让开发者更专注于业务逻辑实现。无需再培训高级开发人员可节省时间和人力资源成本提高投入产出比。
- **减少代码开发工作量**:
  PCM框架提供自动化功能和代码生成工具减少手动编写代码提高开发速度和代码质量。使用框架的自动生成工具后整体代码量超过一半由工具生成低代码率达到约63%。开发者主要工作是编写描述语言文件生成基础结构,然后调整和编写逻辑功能的开发。这使团队能更快速敏捷地交付产品并进行业务优化和用户反馈迭代。
- **Platform Lock-in Resolution**
The PCM effectively addresses platform lock-in issues through multi-cloud adaptation, standardized interfaces, and abstraction layers. This enables cross-platform operations, deployment, and interaction. Standardized interfaces simplify the work for developers, lowering the risk of platform lock-in.
## 设计架构
Kubernan是框架的核心组件实现了对不同Participant端技术栈的异构屏蔽。框架面向用户侧主要分为资源变更任务提交和集约展示两大功能。在任务提交后PCM通过架设在云算云、智算云、超算云之上的调度中心来实现任务的动态流转。在集约展示部分PCM主要通过Tracker以及P端主动上报的方式对多个Participant服务的资源、任务等信息进行收集和汇聚向用户提供标准化的统一接口。用户可以在前端页面上查看PCM提供的信息也可以通过接口直接获取数据。
![PCM架构](docs/images/img.png)
## 服务部署
- **Reduced Code Development Complexity**
The PCM development framework lowers the complexity of development by providing structured development patterns, ready-made components, and documentation support. Developers of different skill levels can collaborate more fairly. The framework can save approximately 50% of development time, with junior programmers completing tasks that originally required one person-month in about 15 person-days. Features such as automatic generation tools, code templates, and component reuse allow developers to focus more on business logic implementation. There is no need for additional training of advanced developers, saving time, and reducing labor costs while improving the return on investment.
  PCM的开发环境需要安装golang 1.18以上版本参考下文内容将会在本地启动kubernan的相关服务。
  拉取项目的命令如下
  
`git clone https://gitlink.org.cn/jcce-pcm/pcm-coordinator.git`
#### nacos
  配置管理采用nacos用户需要在本地或服务器上安装部署nacos服务对应教程可以参考[nacos安装](https://nacos.io/en-us/docs/quick-start.html)nacos中添加对应服务的配置文件具体配置内容参考下文。
#### kubernan-rpc
  rpc服务的配置内容模板如下
- **Reduced Code Development Workload**
The PCM framework offers automation features and code generation tools, reducing manual code writing and improving development speed and code quality. With the framework's auto-generation tools, over half of the code is generated, achieving a low code rate of approximately 63%. Developers primarily work on writing descriptive language files to generate the basic structure and then adjust and write logic functions. This enables teams to deliver products more quickly, iterate based on business optimization and user feedback, and be more agile.
## Architecture
The Coordinator is the core component of the framework, providing heterogeneous abstraction for different Participant-side technology stacks. The framework, oriented towards the user side, primarily involves two major functionalities: resource changes (task submission) and centralized display. After task submission, PCM achieves dynamic task flow through a scheduling center deployed on cloud computing, intelligent computing, and supercomputing clouds. In the centralized display section, PCM mainly collects and aggregates information about resources and tasks from multiple Participant services through Tracker and actively reported by the Participant side. It provides users with a standardized unified interface. Users can view the information provided by PCM on the frontend page or directly access data through the interface.
![PCM架构](docs/images/arch-eng.png)
## PCM deploy
The development environment for PCM requires the installation of Go version 1.18 or above. Please refer to the following instructions to locally start the Kubernetes-related services.
The command to fetch the project is as follows:
```bash
git clone https://gitlink.org.cn/JointCloud/pcm-coordinator.git
```
Name: pcm.core.rpc
ListenOn: 0.0.0.0:2004
DB:
DataSource: username:password@(x.x.x.x:3306)/pcm?parseTime=true
After executing the following command, the Kubernetes RPC service will be launched locally. For its specific functionalities, please refer to the description in the architecture design mentioned earlier.
``` bash
# get required packages
go mod tidy
SnowflakeConf:
MachineId: 1
# run rpc service
go run pcm-coordinator/rpc/pcmcore.go
```
  运行以下命令后将会在本地启动kubernan-rpc服务其具体功能可参考上文架构设计中的描述。
```
# get required packages
go mod tidy
# run rpc service
go run pcm-coordinator/rpc/pcmcore.go
```
#### kubernan-api
  api服务的配置内容模板如下其中各P端的config信息可以根据实际情况按需配置。
```
Name: pcm.core.api
Host: 0.0.0.0
Port: 8999
DB:
DataSource: username:password@(x.x.x.x:3306)/pcm?parseTime=true
#### coordinator-api
The template for the configuration content of the API service is as follows, where the config information for each Participant (P-side) can be configured as needed based on the actual situation.
``` bash
Name: pcm.core.api
Host: 0.0.0.0
Port: 8999
Redis:
Host: x.x.x.x:portnumber
Pass: password
# k8s rpc
K8sNativeConf:
Endpoints:
- 127.0.0.1:2003
NonBlock: true
#slurm rpc
THRpcConf:
Endpoints:
- 127.0.0.1:2007
NonBlock: true
#modelarts rpc
ModelArtsRpcConf:
Endpoints:
- 127.0.0.1:2002
NonBlock: true
DB:
DataSource: username:password@(x.x.x.x:3306)/pcm?parseTime=true Redis:
Host: x.x.x.x:portnumber Pass: password
# k8s rpc
K8sNativeConf:
Endpoints: - 127.0.0.1:2003 NonBlock: true
#slurm rpc
THRpcConf:
Endpoints: - 127.0.0.1:2007NonBlock: true
#modelarts rpc
ModelArtsRpcConf:
Endpoints: - 127.0.0.1:2002NonBlock: true
```
  运行以下命令后将会在本地启动kubernan-api服务服务启动后用户将可以通过http请求其接口进行各类功能调用。
```
# get required packages
go mod tidy
# run rpc service
go run pcm-coordinator/api/pcm.go
After executing the following command, the Kubernetes API service will be launched locally. Once the service is started, users can make HTTP requests to its interfaces for various functional calls.
``` bash
# get required packages
go mod tidy
# run rpc service
go run pcm-coordinator/api/pcm.go
```
## 接下来的计划
## Upcoming Plans
- 调度算法的插件化以及基础资源模板的定义
- 资源操作类型的基础定义
- 快捷的开发模式
- 一级调度的实现
- Pluginization of Scheduling Algorithms and Definition of Basic Resource Templates.
- Fundamental Definition of Resource Operation Types.
- Rapid Development Mode.
- Implementation of First-level Scheduling.
## 加入&贡献
  我们期待您的意见和贡献,欢迎所有的朋友对项目进行指正和改进,共同打造一套高效稳定的云际协作机制。
## JoinContribute
We look forward to your opinions and contributions. Welcome all friends to provide corrections and improvements to the project, collectively building an efficient and stable cloud collaboration mechanism.

View File

@ -1,33 +0,0 @@
FROM golang:1.20.2-alpine3.17 AS builder
WORKDIR /app
LABEL stage=gobuilder
ENV CGO_ENABLED 0
ENV GOARCH amd64
ENV GOPROXY https://goproxy.cn,direct
COPY . .
COPY api/etc/ /app/
RUN go mod download && go build -o pcm-coordinator-api /app/api/pcm.go
FROM alpine:3.16.2
WORKDIR /app
#修改alpine源为上海交通大学
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.sjtug.sjtu.edu.cn/g' /etc/apk/repositories && \
apk update && \
apk upgrade && \
apk add --no-cache ca-certificates && update-ca-certificates && \
apk add --update tzdata && \
rm -rf /var/cache/apk/*
COPY --from=builder /app/pcm-coordinator-api .
COPY api/etc/pcm.yaml .
ENV TZ=Asia/Shanghai
EXPOSE 8999
ENTRYPOINT ./pcm-coordinator-api -f pcm.yaml

View File

@ -1,8 +0,0 @@
api-gen:
goctl api go -api desc/pcm.api -dir . -style gozero --home ../deploy/goctl
Generate-AMD64:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pcm-coordinator-api pcm-coordinator-api pcm.go
Generate-ARM64:
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GOARM=7 go build -o pcm-coordinator-api pcm.go

View File

@ -1,55 +0,0 @@
syntax = "v1"
info(
title: "cloud core"
desc: "cloud core微服务"
author: "zhangwei"
email: ""
)
/******************find datasetList start*************************/
type ApplyReq {
YamlString string `json:"yamlString" copier:"yamlString"`
}
type DeleteReq {
YamlString string `json:"yamlString" copier:"yamlString"`
}
type ApplyResp {
Code int32 `json:"code,omitempty"`
Msg string `json:"msg,omitempty"`
DataSet []DataSet `json:"dataSet,omitempty"`
}
type DeleteResp {
Code int32 `json:"code,omitempty"`
Msg string `json:"msg,omitempty"`
Data string `json:"data,omitempty"`
}
type DataSet {
ApiVersion int32 `json:"apiVersion,omitempty"`
Kind string `json:"kind,omitempty"`
Name string `json:"name,omitempty"`
NameSpace string `json:"nameSpace,omitempty"`
}
type cloudListResp {
Clouds []Cloud `json:"clouds"`
}
type Cloud {
Id int64 `json:"id"` // id
TaskId int64 `json:"taskId"` // 任务id
ParticipantId int64 `json:"participantId"` // 集群静态信息id
ApiVersion string `json:"apiVersion"`
Name string `json:"name"` // 名称
Namespace string `json:"namespace"` // 命名空间
Kind string `json:"kind"` // 种类
Status string `json:"status"` // 状态
StartTime string `json:"startTime"` // 开始时间
RunningTime int64 `json:"runningTime"` // 运行时长
CreatedBy int64 `json:"createdBy"` // 创建人
CreatedTime string `json:"createdTime"` // 创建时间
Result string `json:"result"`
}

View File

@ -1,566 +0,0 @@
syntax = "v1"
info(
title: "gateway"
desc: "gateway端微服务"
author: "zhouqj"
email: "450705171@qq.com"
)
type (
submitJobReq {
SlurmVersion string `json:"slurmVersion"`
/****************parmas from ac********************/
Apptype string `json:"apptype,optional"`
Appname string `json:"appname,optional"`
StrJobManagerID int64 `json:"strJobManagerID,optional"`
MapAppJobInfo MapAppJobInfo `json:"mapAppJobInfo,optional"`
/****************parmas from ac********************/
Account string `json:"account,optional"` //
Acctg_freq string `json:"acctg_freq,optional"`
Alloc_node string `json:"alloc_node,optional"`
Alloc_resp_port int32 `json:"alloc_resp_port,optional"`
Alloc_sid int32 `json:"alloc_sid,optional"`
Argc int32 `json:"argc,optional"`
Argv []Argv `json:"Argv,optional"`
Array_inx string `json:"array_inx,optional"`
Begin_time int64 `json:"begin_time,optional"`
Ckpt_interval int32 `json:"ckpt_interval,optional"`
Ckpt_dir string `json:"ckpt_dir,optional"`
Comment string `json:"comment,optional"`
Contiguous int32 `json:"contiguous,optional"`
Cpu_bind string `json:"cpu_bind,optional"`
Cpu_bind_type int32 `json:"cpu_bind_type,optional"`
Dependency string `json:"dependency,optional"`
End_time int64 `json:"end_time,optional"`
Environment []Environment `json:"Environment,optional"`
Env_size int32 `json:"env_size,optional"`
Exc_nodes string `json:"exc_nodes,optional"`
Features string `json:"features,optional"`
Gres string `json:"gres,optional"`
Group_id int32 `json:"group_id,optional"`
Immediate int32 `json:"immediate,optional"`
Job_id int32 `json:"job_id,optional"`
Kill_on_node_fail int32 `json:"kill_on_node_fail,optional"`
Licenses string `json:"licenses,optional"`
Mail_type int32 `json:"mail_type,optional"`
Mail_user string `json:"mail_user,optional"`
Mem_bind string `json:"mem_bind,optional"`
Mem_bind_type int32 `json:"mem_bind_type,optional"`
Name string `json:"name,optional"` //
Network string `json:"network,optional"`
Nice int32 `json:"nice,optional"`
Num_tasks int32 `json:"num_tasks,optional"`
Open_mode int32 `json:"open_mode,optional"`
Other_port int32 `json:"other_port,optional"`
Overcommit int32 `json:"overcommit,optional"`
Partition string `json:"partition,optional"`
Plane_size int32 `json:"plane_size,optional"`
Priority int32 `json:"priority,optional"`
Profile int32 `json:"profile,optional"`
Qos string `json:"qos,optional"`
Resp_host string `json:"resp_host,optional"`
Req_nodes string `json:"req_nodes,optional"`
Requeue int32 `json:"requeue,optional"`
Reservation string `json:"reservation,optional"`
Script string `json:"script,optional"` //
Shared int32 `json:"shared,optional"`
Spank_job_env_size int32 `json:"spank_job_env_size,optional"`
Task_dist int32 `json:"task_dist,optional"`
Time_limit int32 `json:"time_limit,optional"`
Time_min int32 `json:"time_min,optional"`
User_id int32 `json:"user_id,optional"` //
Wait_all_nodes int32 `json:"wait_all_nodes,optional"`
Warn_signal int32 `json:"warn_signal,optional"`
Warn_time int32 `json:"warn_time,optional"`
Work_dir string `json:"work_dir,optional"`
Cpus_per_task int32 `json:"cpus_per_task,optional"`
Min_cpus int32 `json:"min_cpus,optional"` //
Max_cpus int32 `json:"max_cpus,optional"`
Min_nodes int32 `json:"min_nodes,optional"`
Max_nodes int32 `json:"max_nodes,optional"`
Boards_per_node int32 `json:"boards_per_node,optional"`
Sockets_per_board int32 `json:"sockets_per_board,optional"`
Sockets_per_node int32 `json:"sockets_per_node,optional"`
Cores_per_socket int32 `json:"cores_per_socket,optional"`
Threads_per_core int32 `json:"threads_per_core,optional"`
Ntasks_per_node int32 `json:"ntasks_per_node,optional"`
Ntasks_per_socket int32 `json:"ntasks_per_socket,optional"`
Ntasks_per_core int32 `json:"ntasks_per_core,optional"`
Ntasks_per_board int32 `json:"ntasks_per_board,optional"`
Pn_min_cpus int32 `json:"pn_min_cpus,optional"`
Pn_min_memory int32 `json:"pn_min_memory,optional"`
Pn_min_tmp_disk int32 `json:"pn_min_tmp_disk,optional"`
Reboot int32 `json:"reboot,optional"`
Rotate int32 `json:"rotate,optional"`
Req_switch int32 `json:"req_switch,optional"`
Std_err string `json:"std_err,optional"`
Std_in string `json:"std_in,optional"`
Std_out string `json:"std_out,optional"`
Wait4switch int32 `json:"wait4switch,optional"`
Wckey string `json:"wckey,optional"`
}
submitJobResp {
//Job_id int32 `json:"job_id"`
//Step_id int32 `json:"step_id"`
//Error_code int32 `json:"error_code"`
Code string `json:"code"` //Error_code 返回码 in Tianhe
Msg string `json:"msg"`
Data string `json:"data"` //Job_id 作业id in Tianhe
}
MapAppJobInfo {
GAP_CMD_FILE string `json:"GAP_CMD_FILE"` //命令行内容
GAP_NNODE string `json:"GAP_NNODE"` //节点个数当指定该参数时GAP_NODE_STRING必须为""
GAP_NODE_STRING string `json:"GAP_NODE_STRING,optional"` //指定节点当指定该参数时GAP_NNODE必须为""
GAP_SUBMIT_TYPE string `json:"GAP_SUBMIT_TYPE"` //cmd命令行模式
GAP_JOB_NAME string `json:"GAP_JOB_NAME"` //作业名称
GAP_WORK_DIR string `json:"GAP_WORK_DIR"` //工作路径
GAP_QUEUE string `json:"GAP_QUEUE"` //队列名称
GAP_NPROC string `json:"GAP_NPROC,optional"` //总核心数GAP_NPROC和GAP_PPN选其一填写
GAP_PPN string `json:"GAP_PPN,optional"` //CPU核心/节点GAP_NPROC和GAP_PPN选其一填写
GAP_NGPU string `json:"GAP_NGPU,optional"` //GPU卡数/节点
GAP_NDCU string `json:"GAP_NDCU,optional"` //DCU卡数/节点
GAP_JOB_MEM string `json:"GAP_JOB_MEM,optional"` //每个节点内存值单位为MB/GB
GAP_WALL_TIME string `json:"GAP_WALL_TIME"` //最大运行时长HH:MM:ss
GAP_EXCLUSIVE string `json:"GAP_EXCLUSIVE,optional"` // 是否独占节点1为独占空为非独占
GAP_APPNAME string `json:"GAP_APPNAME"` //BASE基础应用支持填写具体的应用英文名称
GAP_MULTI_SUB string `json:"GAP_MULTI_SUB,optional"` //作业组长度建议为小于等于50的正整数
GAP_STD_OUT_FILE string `json:"GAP_STD_OUT_FILE"` //工作路径/std.out.%j
GAP_STD_ERR_FILE string `json:"GAP_STD_ERR_FILE"` //工作路径/std.err.%j
}
Argv {
Argv string `json:"argv,optional"`
}
Environment {
Environment string `json:"environment,optional"`
}
)
type (
getRegionResp {
Code int32 `json:"code"`
Msg string `json:"msg"`
Data RegionNum `json:"data"`
}
RegionNum {
RegionSum int64 `json:"regionSum"`
SoftStackSum int64 `json:"softStackSum"`
}
)
type (
listRegionResp {
Code int32 `json:"code"`
Msg string `json:"msg"`
Data []Region `json:"data"`
}
Region {
RegionName string `json:"RegionName"` // 域名
SoftStack string `json:"SoftStack"` // 软件栈
SlurmNum int64 `json:"SlurmNum"` // 超算域适配slurm数量
AdaptorInterfaceSum int64 `json:"AdaptorInterfaceSum"` // 适配接口数量
RunningJobs int64 `json:"runningJobs"`
}
)
type deleteTaskReq {
Id int64 `path:"id"`
}
type (
scheduleTaskByYamlReq {
Name string `yaml:"name"`
Description string `yaml:"description"`
tenantId int64 `yaml:"tenantId"`
tasks []TaskYaml `yaml:"tasks"`
}
TaskYaml {
TaskId int64 `yaml:"taskId"`
taskType string `yaml:"taskType"`
participantId int64 `yaml:"participantId"`
matchLabels map[string]string `yaml:"matchLabels"`
metadata interface{} `yaml:"metadata"`
}
)
type (
commitHpcTaskReq {
Name string `json:"name"`
Description string `json:"description,optional"`
tenantId int64 `json:"tenantId,optional"`
TaskId int64 `json:"taskId,optional"`
participantId int64 `json:"participantId,optional"`
matchLabels map[string]string `json:"matchLabels,optional"`
cardCount int64 `json:"cardCount,optional"`
workDir string `json:"workDir,optional"`
wallTime string `json:"wallTime,optional"`
cmdScript string `json:"cmdScript,optional"`
appType string `json:"appType,optional"`
appName string `json:"appName,optional"`
queue string `json:"queue,optional"`
nNode string `json:"nNode,optional"`
submitType string `json:"submitType,optional"`
stdOutFile string `json:"stdOutFile,optional"`
stdErrFile string `json:"stdErrFile,optional"`
stdInput string `json:"stdInput,optional"`
environment map[string]string `json:"environment,optional"`
}
)
type (
commitHpcTaskResp {
TaskId int64 `json:"taskId"`
}
)
type (
scheduleTaskByYamlResp {
TaskId int64 `json:"taskId"`
}
)
type (
scheduleTaskReq {
Name string `json:"name"`
synergy string `json:"synergy"`
Description string `json:"description"`
strategy string `json:"strategy"`
tasks []TaskInfo `json:"tasks"`
}
TaskInfo {
TaskId int64 `json:"taskId,optional"`
TaskType string `json:"taskType,optional"`
matchLabels map[string]string `json:"matchLabels"`
participantId int64 `json:"participantId"`
metadata interface{} `json:"metadata"`
}
)
type (
jobTotalResp {
AllCardRunTime float64 `json:"allCardRunTime"`
AllJobCount float64 `json:"allJobCount"`
AllJobRunTime float64 `json:"allJobRunTime"`
TrainJobs []TrainJob `json:"trainJobs"`
}
TrainJob {
Name string `json:"name"`
Status string `json:"status"`
ParticipantName string `json:"participantName"`
SynergyStatus string `json:"synergyStatus"`
Strategy int `json:"strategy"`
}
)
// 任务列表参数
type (
taskListReq {
PageNum int `form:"pageNum"`
PageSize int `form:"pageSize"`
}
taskListResp {
TotalCount int64 `json:"totalCount"` // 任务总数
NormalCount int64 `json:"normalCount"` // 正常任务数
AlarmCount int64 `json:"alarmCount"` // 任务告警数
Tasks []Task `json:"tasks"`
}
Task {
Id int64 `json:"id"`
Name string `json:"name"`
Status string `json:"status"`
TaskType string `json:"taskType"`
StartTime string `json:"startTime"`
EndTime string `json:"endTime"`
ParticipantStatus string `json:"participantStatus"`
ParticipantId int64 `json:"participantId"`
ParticipantName string `json:"participantName"`
}
)
// 任务列表参数
type (
taskDetailReq {
TaskId int64 `path:"taskId"`
}
taskDetailResp {
CpuCores float64 `json:"cpuCores"`
CpuRate float64 `json:"cpuRate"`
CpuLimit float64 `json:"cpuLimit"`
GpuCores float64 `json:"gpuCores"`
GpuRate float64 `json:"gpuRate"`
GpuLimit float64 `json:"gpuLimit"`
MemoryTotal float64 `json:"memoryTotal"`
MemoryRate float64 `json:"memoryRate"`
MemoryLimit float64 `json:"memoryLimit"`
}
)
type (
listCenterResp {
Code int32 `json:"code"`
Msg string `json:"msg"`
Data CenterData `json:"data"`
}
CenterData {
TotalCount int `json:"totalCount"`
Centers []Center `json:"centers"`
}
Center {
Id int64 `json:"id"`
CenterSource string `json:"centerSource"`
SourceId string `json:"sourceId"`
Name string `json:"name"`
Description string `json:"description"`
Type string `json:"type"`
Area string `json:"area"`
City string `json:"city"`
Longitude float64 `json:"longitude"`
Latitude float64 `json:"latitude"`
Status string `json:"status"`
UserNum int64 `json:"userNum"`
DeletedFlag int64 `json:"deletedFlag"`
CloudClusterNum int64 `json:"cloudClusterNum"`
CloudNodeNum int64 `json:"cloudNodeNum"`
CloudCpuNum int64 `json:"cloudCpuNum"`
CloudGpuNum int64 `json:"cloudGpuNum"`
CloudMngFlops int64 `json:"cloudMngFlops"`
CloudUmngFlops int64 `json:"cloudUmngFlops"`
CloudMngStorage int64 `json:"cloudMngStorage"`
CloudUmngStorage int64 `json:"cloudUmngStorage"`
AiClusterNum int64 `json:"aiClusterNum"`
AiNodeNum int64 `json:"aiNodeNum"`
AiCpuNum int64 `json:"aiCpuNum"`
AiGpuNum int64 `json:"aiGpuNum"`
AiMngFlops int64 `json:"aiMngFlops"`
AiUmngFlops int64 `json:"aiUmngFlops"`
AiMngStorage int64 `json:"aiMngStorage"`
AiUmngStorage int64 `json:"aiUmngStorage"`
HpcClusterNum int64 `json:"hpcClusterNum"`
HpcNodeNum int64 `json:"hpcNodeNum"`
HpcCpuNum int64 `json:"hpcCpuNum"`
HpcGpuNum int64 `json:"hpcGpuNum"`
HpcMngFlops int64 `json:"hpcMngFlops"`
HpcUmngFlops int64 `json:"hpcUmngFlops"`
HpcMngStorage int64 `json:"hpcMngStorage"`
HpcUmngStorage int64 `json:"hpcUmngStorage"`
Edwc bool `json:"edwc"`
Ydyl bool `json:"ydyl"`
HubCode int64 `json:"hubCode"`
}
)
type (
listClusterReq {
CenterId int32 `path:"centerId"`
}
listClusterResp {
Code int32 `json:"code"`
Msg string `json:"msg"`
Data ClusterData `json:"data"`
}
ClusterData {
TotalCount int `json:"totalCount"`
Clusters []ComputeCluster `json:"clusters"`
}
ComputeCluster {
Id int64 `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
JcceDomainId int64 `json:"jcceDomainId"`
JcceDomainName string `json:"jcceDomainName"`
Longitude float64 `json:"longitude"`
Latitude float64 `json:"latitude"`
Description string `json:"description"`
}
)
type (
cpResp {
POpsAtFp16 float32 `json:"pOpsAtFp16"`
}
GiResp {
CpuNum int32 `json:"cpuNum,optional"`
MemoryInGib int32 `json:"memoryInGib,optional"`
StorageInGib int32 `json:"storageInGib,optional"`
}
)
type (
DomainResourceResp {
TotalCount int `json:"totalCount"`
DomainResourceList []DomainResource `json:"domainResourceList"`
}
DomainResource {
Id int64 `json:"id"` // id
DomainId string `json:"domainId"` // 资源域id
DomainName string `json:"domainName"` // 资源域名称
JobCount int64 `json:"jobCount"` // 资源域任务数量
DomainSource int64 `json:"domainSource"` // 资源域数据来源0-nudt1-鹏城
Stack string `json:"stack"` // 技术栈
ResourceType string `json:"resourceType"` // 资源类型
Cpu float64 `json:"cpu"` // cpu使用率
Memory float64 `json:"memory"` // 内存使用率
Disk float64 `json:"disk"` // 存储使用率
NodeCount float64 `json:"nodeCount"` //节点使用率
// DeleteFlag int64 `json:"delete_flag"` // 是否删除 0:未删除1:已经删除
Description string `json:"description"` //集群描述
ClusterName string `json:"clusterName"` //集群名称
CpuTotal float64 `json:"cpuTotal"` //cpu总核数
MemoryTotal float64 `json:"memoryTotal"` //内存总量Gi
DiskTotal float64 `json:"diskTotal"` //存储总量GB
NodeTotal float64 `json:"nodeTotal"` //容器节点数
CpuUsage float64 `json:"cpuUsage"` //cpu已使用核数
MemoryUsage float64 `json:"memoryUsage"` //内存已使用Gi
DiskUsage float64 `json:"diskUsage"` //存储已使用GB
NodeUsage float64 `json:"nodeUsage"` //容器节点已使用
}
)
type (
ResourcePanelConfigReq {
Id int64 `json:"id"` //id
Title string `json:"title"` //标题
TitleColor string `json:"titleColor"` //标题色
MainColor string `json:"mainColor"` //主色调
MainColor2 string `json:"mainColor2"` //次主色调
TextColor string `json:"textColor"` //文字颜色
BackgroundColor string `json:"backgroundColor"` //背景底色
Center string `json:"center"` //中心点
CenterPosition string `json:"centerPosition"` //comment 中心点坐标
ProvinceBgColor string `json:"provinceBgColor"` //三级地图底色
StatusIng string `json:"statusIng"` //接入中图标
StatusUn string `json:"statusUn"` //未接入图标
StatusEnd string `json:"statusEnd"` //已接入图标
TitleIcon string `json:"titleIcon"` //标题底图
SubTitleIcon string `json:"subTitleIcon"` //小标题底图
NumberBg string `json:"numberBg"` //数字底图
TaskBg string `json:"taskBg"` //任务底图
}
ResourcePanelConfigResp {
Id int64 `json:"id"` //id
Title string `json:"title"` //标题,
TitleColor string `json:"titleColor"` //标题色,
MainColor string `json:"mainColor"` //主色调,
MainColor2 string `json:"mainColor2"` //次主色调,
TextColor string `json:"textColor"` //文字颜色,
BackgroundColor string `json:"backgroundColor"` //背景底色,
Center string `json:"center"` //中心点,
CenterPosition string `json:"centerPosition"` //comment 中心点坐标,
ProvinceBgColor string `json:"provinceBgColor"` //三级地图底色,
StatusIng string `json:"statusIng"` //接入中图标,
StatusUn string `json:"statusUn"` //未接入图标,
StatusEnd string `json:"statusEnd"` //已接入图标,
TitleIcon string `json:"titleIcon"` //标题底图,
SubTitleIcon string `json:"subTitleIcon"` //小标题底图,
NumberBg string `json:"numberBg"` //数字底图,
TaskBg string `json:"taskBg"` //任务底图,
CreateTime string `json:"createTime"` //创建时间,
UpdateTime string `json:"updateTime"` //更新时间
}
)
type (
ComputilityStatisticsResp {
Code int32 `json:"code,omitempty"`
Msg string `json:"msg,omitempty"`
ErrorMsg string `json:"ErrorMsg,omitempty"`
ComputilityStatistics ComputilityStatistics `json:"data"` //容器节点已使用
}
ComputilityStatistics {
DomainSum int64 `json:"domainSum"` //域总数
TotalComputility float64 `json:"totalComputility"` //算力总和
ClusterNum int64 `json:"clusterNum"` //集群总数
}
)
//jccSchedule容器集群资源监控 > start
type ClusterMetrics struct {
Code int `json:"code,omitempty"`
Msg string `json:"msg,omitempty"`
Data []MetricResult `json:"data,omitempty"`
}
type MetricResult struct {
MetricName string `json:"metric_name, omitempty"`
MetricData MetricData `json:"data, omitempty"`
}
type MetricData struct {
Result []map[string]interface{} `json:"result"`
ResultType string `json:"resultType"`
}
type ResultData struct {
Status string `json:"status"`
Data MetricData `json:"data"`
}
type NodeAssetsResp {
NodeAssets []NodeAsset `json:"nodeAssets"`
}
type NodeAsset {
Name string `json:"Name"` //租户名称
NodeName string `json:"NodeName"` // 节点名称
CpuTotal int64 `json:"CpuTotal"` // cpu核数
CpuUsable float64 `json:"CpuUsable"` // cpu可用率
DiskTotal int64 `json:"DiskTotal"` // 磁盘空间
DiskAvail int64 `json:"DiskAvail"` // 磁盘可用空间
MemTotal int64 `json:"MemTotal"` // 内存总数
MemAvail int64 `json:"MemAvail"` // 内存可用数
GpuTotal int64 `json:"GpuTotal"` // gpu总数
GpuAvail int64 `json:"GpuAvail"` // gpu可用数
ParticipantId int64 `json:"ParticipantId"` // 集群动态信息id
}
type SaveHashcatReq {
CrackTaskId string `json:"crackTaskId"` // 任务id
CrackContainerId string `json:"crackContainerId"` // 容器id
CrackStatus string `json:"crackStatus"` // 状态
CrackStartTime string `json:"crackStartTime"` //开始时间
CrackEstimatedTime string `json:"crackEstimatedTime"` // 预计时间
CrackProgress string `json:"crackProgress"` // 进度
CrackResult string `json:"crackResult"` // 结果
Started string `json:"started"` // 开始时间
Stopped string `json:"stopped"` // 结束时间
}
type getHashcatHandlerReq {
CrackTaskId string `path:"crackTaskId"` // 任务id
}
type getHashcatHandlerResp {
HashCatList []HashCat `json:"hashCatList"`
}
type HashCat {
CrackTaskId string `json:"crackTaskId"` // 任务id
CrackContainerId string `json:"crackContainerId"` // 容器id
CrackStatus string `json:"crackStatus"` // 状态
CrackStartTime string `json:"crackStartTime"` //开始时间
CrackEstimatedTime string `json:"crackEstimatedTime"` // 预计时间
CrackProgress string `json:"crackProgress"` // 进度
CrackResult string `json:"crackResult"` // 结果
Started string `json:"started"` // 开始时间
Stopped string `json:"stopped"` // 结束时间
}
type participantListResp {
Participants []Participant `json:"participants"`
}
type Participant {
id int64 `json:"id"`
name string `json:"name"`
address string `json:"address"`
metricsUrl string `json:"metricsUrl"`
tenantName string `json:"tenantName"`
typeName string `json:"typeName"`
}

View File

@ -1,73 +0,0 @@
syntax = "v1"
info(
title: "type title here"
desc: "type desc here"
author: "type author here"
email: "type email here"
version: "type version here"
)
type Job {
SlurmVersion string `json:"slurmVersion"`
name string `json:"name"`
JobStartTime string `json:"JobStartTime"`
JobRunTime string `json:"JobRunTime"`
StateofJob string `json:"StateofJob"`
}
type (
listJobReq {
}
listJobResp {
Code int32 `json:"code"`
Msg string `json:"msg"`
RecordCount int32 `json:"recordCount"`
Jobs []Job `json:"jobInfos"`
}
)
type HistoryJob {
SlurmVersion string `json:"slurmVersion"`
name string `json:"name"`
JobStartTime string `json:"JobStartTime"`
JobRunTime string `json:"JobRunTime"`
StateofJob string `json:"StateofJob"`
}
type (
listHistoryJobReq {
}
listHistoryJobResp {
Code int32 `json:"code"`
Msg string `json:"msg"`
RecordCount int32 `json:"recordCount"`
HistoryJobs []HistoryJob `json:"jobInfoDbs"`
}
)
type QueueAssetsResp {
QueueAssets []QueueAsset `json:"queueAsset"`
}
type QueueAsset {
TenantName string `json:"tenantName"` //租户名称
ParticipantId int64 `json:"participantId"`
AclHosts string `json:"aclHosts"` // 可用节点,多个节点用逗号隔开
QueNodes string `json:"queNodes"` //队列节点总数
QueMinNodect string `json:"queMinNodect,omitempty"` //队列最小节点数
QueMaxNgpus string `json:"queMaxNgpus,omitempty"` //队列最大GPU卡数
QueMaxPPN string `json:"queMaxPPN,omitempty"` //使用该队列作业最大CPU核心数
QueChargeRate string `json:"queChargeRate,omitempty"` //费率
QueMaxNcpus string `json:"queMaxNcpus,omitempty"` //用户最大可用核心数
QueMaxNdcus string `json:"queMaxNdcus,omitempty"` //队列总DCU卡数
QueueName string `json:"queueName,omitempty"` //队列名称
QueMinNcpus string `json:"queMinNcpus,omitempty"` //队列最小CPU核数
QueFreeNodes string `json:"queFreeNodes,omitempty"` //队列空闲节点数
QueMaxNodect string `json:"queMaxNodect,omitempty"` //队列作业最大节点数
QueMaxGpuPN string `json:"queMaxGpuPN,omitempty"` //队列单作业最大GPU卡数
QueMaxWalltime string `json:"queMaxWalltime,omitempty"` //队列最大运行时间
QueMaxDcuPN string `json:"queMaxDcuPN,omitempty"` //队列单作业最大DCU卡数
QueFreeNcpus string `json:"queFreeNcpus"` //队列空闲cpu数
QueNcpus string `json:"queNcpus"` //队列cpu数
}

View File

@ -1,502 +0,0 @@
syntax = "v1"
import (
"core/pcm-core.api"
"hpc/pcm-hpc.api"
"ai/pcm-ai.api"
"storage/pcm-storage.api"
"vm/pcm-vm.api"
"cloud/pcm-cloud.api"
"storelink/pcm-storelink.api"
)
info(
title: "pcm api service"
desc: "type desc here"
author: "type author here"
email: "type email here"
version: "type version here"
)
//core端接口
@server(
prefix: pcm/v1
group : core
)
service pcm {
@doc "查询P端服务列表"
@handler participantListHandler
get /core/participantList returns (participantListResp)
@doc "yaml提交任务"
@handler scheduleTaskByYamlHandler
post /core/scheduleTaskByYaml (scheduleTaskByYamlReq) returns (scheduleTaskByYamlResp)
@doc "提交超算任务"
@handler commitHpcTaskHandler
post /core/commitHpcTask (commitHpcTaskReq) returns (commitHpcTaskResp)
@doc "删除任务"
@handler deleteTaskHandler
delete /core/deleteTask/:id (deleteTaskReq)
@doc "查询任务列表"
@handler TaskListHandler
get /core/taskList (taskListReq)returns (taskListResp)
@doc "查询任务详情"
@handler TaskDetailHandler
get /core/taskDetail/:taskId (taskDetailReq) returns (taskDetailResp)
@doc "任务概览"
@handler JobTotalHandler
get /core/jobTotal returns (jobTotalResp)
@doc "数据中心概览"
@handler listCenterHandler
get /core/listCenter returns (listCenterResp)
@doc "查询集群列表"
@handler listClusterHandler
get /core/listCluster/:centerId (listClusterReq) returns (listClusterResp)
@doc "提交任务(超算)"
@handler submitJobHandler
post /core/submitJob (submitJobReq) returns (submitJobResp)
@doc "获取region"
@handler getRegionHandler
get /core/getRegion returns (getRegionResp)
@doc "获取region列表"
@handler listRegionHandler
get /core/listRegion returns (listRegionResp)
@doc "查询算力"
@handler getComputingPowerHandler
get /core/getComputingPower returns (cpResp)
@doc "查询通用信息"
@handler getGeneralInfoHandler
get /core/getGeneralInfo returns (GiResp)
@doc "查询各域资源信息"
@handler listDomainResourceHandler
get /core/listDomainResource returns (DomainResourceResp)
@doc "查询控制面板配置信息"
@handler getResourcePanelConfigHandler
get /core/getResourcePanelConfigHandler returns (ResourcePanelConfigResp)
@doc "设置控制面板配置信息"
@handler putResourcePanelConfigHandler
put /core/resourcePanelConfigHandler (ResourcePanelConfigReq)
@doc "获取算力统计信息"
@handler getComputilityStatisticsHandler
get /core/getComputilityStatistics returns (ComputilityStatisticsResp)
@doc "获取节点资产"
@handler nodeAssetsHandler
get /core/assets returns (NodeAssetsResp)
@doc "保存hashcat"
@handler saveHashcatHandler
post /core/saveHashcat (SaveHashcatReq)
@doc "获取hashcat"
@handler getHashcatHandler
get /core/getHashcat/:crackTaskId (getHashcatHandlerReq) returns (getHashcatHandlerResp)
}
//hpc二级接口
@server(
prefix: pcm/v1
group : hpc
)
service pcm {
@doc "超算查询任务列表"
@handler listJobHandler
get /hpc/listJob (listJobReq) returns (listJobResp)
@doc "超算查询历史任务列表"
@handler listHistoryJobHandler
get /hpc/listHistoryJob (listHistoryJobReq) returns (listHistoryJobResp)
@doc "超算查询资产列表"
@handler queueAssetsHandler
get /queue/assets returns (QueueAssetsResp)
}
//cloud二级接口
@server(
prefix: pcm/v1
group : cloud
)
service pcm {
@doc "云算任务列表"
@handler cloudListHandler
get /task/list returns (cloudListResp)
@doc "yaml删除"
@handler deleteYamlHandler
get /cloud/DeleteYaml (ApplyReq) returns (DeleteResp)
}
//智算二级接口
@server(
prefix: pcm/v1
group : ai
)
service pcm {
@doc "查询数据集列表"
@handler listDataSetHandler
get /ai/listDataSet/:projectId (DataSetReq) returns (DataSetResp)
@doc "创建数据集"
@handler CreateDataSetHandler
post /ai/createDataSet/:projectId (CreateDataSetReq) returns (CreateDataSetResp)
@doc "删除数据集"
@handler DeleteDataSetHandler
delete /ai/deleteDataSet/:projectId/:datasetId (DeleteDataSetReq) returns (DeleteDataSetResp)
@doc "创建导入任务"
@handler CreateTaskHandler
post /ai/CreateTask/:projectId/:datasetId (ImportTaskDataReq) returns (ImportTaskDataResp)
@doc "查询数据集导入任务列表"
@handler ListImportHandler
get /ai/ListImport/:projectId/:datasetId (ListImportTasksReq) returns (ListImportTasksResp)
@doc "查询训练作业列表"
@handler GetListTrainingJobsHandler
get /ai/GetListTrainingJobs/:projectId (ListTrainingJobsreq) returns (ListTrainingJobsresp)
@doc "删除训练作业"
@handler DeleteTrainingJobHandler
delete /ai/DeleteTrainingJob/:projectId/:trainingJobId (DeleteTrainingJobReq) returns (DeleteTrainingJobResp)
@doc "创建算法"
@handler CreateAlgorithmHandler
post /ai/CreateAlgorithm/:projectId (CreateAlgorithmReq) returns (CreateAlgorithmResp)
@doc "查询创建算法列表"
@handler ListAlgorithms
get /ai/ListAlgorithms/:projectId (ListAlgorithmsReq) returns (ListAlgorithmsResp)
@doc "删除算法"
@handler DeleteAlgorithm
delete /ai/DeleteAlgorithm/:projectId/:algorithmId (DeleteAlgorithmReq) returns (DeleteAlgorithmResp)
@doc "创建训练作业"
@handler CreateTrainingJobHandler
post /ai/CreateTrainingJob/:projectId (CreateTrainingJobReq) returns (CreateTrainingJobResp)
@doc "展示算法详情"
@handler ShowAlgorithmByUuid
get /ai/ShowAlgorithmByUuid/:projectId/:algorithmId (ShowAlgorithmByUuidReq) returns (ShowAlgorithmByUuidResp)
@doc "创建导出任务"
@handler CreateExportTaskHandler
post /ai/CreateExportTask/:projectId/:datasetId (CreateExportTaskReq) returns (ExportTaskDataResp)
@doc "获取导出任务数据集"
@handler GetExportTasksOfDatasetHandler
get /ai/GetExportTasksOfDataset/:projectId/:datasetId (GetExportTasksOfDatasetReq) returns (GetExportTasksOfDatasetResp)
@doc "获取导出任务数据集状态"
@handler GetExportTaskStatusOfDatasetHandler
get /ai/GetExportTaskStatusOfDataset/:projectId/:resourceId/:taskId (GetExportTaskStatusOfDatasetReq) returns (GetExportTaskStatusOfDatasetResp)
@doc "创建处理任务"
@handler CreateProcessorTaskHandler
post /ai/CreateProcessorTask (CreateProcessorTaskReq) returns (CreateProcessorTaskResp)
@doc "创建服务"
@handler CreateServiceHandler
post /ai/CreateService/:projectId (CreateServiceReq) returns (CreateServiceResp)
@doc "展示服务"
@handler ListServicesHandler
get /ai/ListServices/:projectId (ListServicesReq) returns (ListServicesResp)
@doc "展示服务详情"
@handler ShowServiceHandler
get /ai/ShowService/:projectId/:serviceId (ShowServiceReq) returns (ShowServiceResp)
@doc "删除服务"
@handler DeleteServiceHandler
delete /ai/DeleteService/:projectId/:serviceId (DeleteServiceReq) returns (DeleteServiceResp)
@doc "查询专属资源池列表"
@handler ListClustersHandler
get /ai/ListClusters (ListClustersReq) returns (ListClustersResp)
/******************Notebook Method start*************************/
@doc "查询notebook列表"
@handler listNotebookHandler
get /ai/listNotebook (ListNotebookReq) returns (ListNotebookResp)
@doc "创建notebook"
@handler createNotebookHandler
post /ai/createNotebook (CreateNotebookReq) returns (CreateNotebookResp)
@doc "启动notebook"
@handler startNotebookHandler
post /ai/startNotebook (StartNotebookReq) returns (StartNotebookResp)
@doc "停止notebook"
@handler stopNotebookHandler
post /ai/stopNotebook (StopNotebookReq) returns (StopNotebookResp)
@doc "查询notebook存储"
@handler getNotebookStorageHandler
get /ai/getNotebookStorage (GetNotebookStorageReq) returns (GetNotebookStorageResp)
@doc "挂载notebook存储"
@handler mountNotebookStorageHandler
post /ai/mountNotebookStorage (MountNotebookStorageReq) returns (MountNotebookStorageResp)
/******************Notebook Method end*************************/
/******************Visualization Job Method start*************************/
@doc "获取虚拟化任务"
@handler getVisualizationJobHandler
get /ai/getVisualizationJob (GetVisualizationJobReq) returns (GetVisualizationJobResp)
@doc "创建虚拟化任务"
@handler createVisualizationJobHandler
post /ai/CreateVisualizationJob (CreateVisualizationJobReq) returns (CreateVisualizationJobResp)
/******************Visualization Job Method start*************************/
}
//screen接口
@server(
prefix: pcm/v1
group : storage
)
service pcm {
@doc "存储概览"
@handler screenStorageHandler
get /storage/screenStorage (StorageScreenReq) returns (StorageScreenResp)
@doc "日常算力查询"
@handler dailyPowerScreenHandler
get /storage/dailyPowerScreen (DailyPowerScreenReq) returns (DailyPowerScreenResp)
@doc "算力中心算力情况"
@handler perCenterComputerPowersHandler
get /storage/perCenterComputerPowers (PerCenterComputerPowersReq) returns (PerCenterComputerPowersResp)
}
//镜像接口
@server(
prefix: pcm/v1
group : image
)
service pcm {
@doc "镜像上传"
@handler uploadHandler
post /upload
@doc "镜像分块"
@handler chunkHandler
post /chunk
@doc "查询镜像列表"
@handler imageListHandler
get /image/list returns (imageListResp)
@doc "数据集检查"
@handler dataSetCheckHandler
get /dataSet/check/:fileMd5 (checkReq) returns (checkResp)
@doc "上传数据集"
@handler uploadDataSetHandler
post /dataSet/upload
}
//openstack 接口
@server(
prefix: pcm/v1
group : vm
)
service pcm {
@doc "openstack计算中心概览"
@handler GetComputeLimitsHandler
get /vm/getComputeLimits (GetComputeLimitsReq) returns (GetComputeLimitsResp)
@doc "查询卷列表"
@handler GetVolumeLimitsHandler
get /vm/getVolumeLimits (GetVolumeLimitsReq) returns (GetVolumeLimitsResp)
@doc "查询虚拟机列表"
@handler ListServerHandler
get /vm/listServer (ListServersReq) returns (ListServersResp)
@doc "查询虚拟机详情列表"
@handler ListServersDetailedHandler
get /vm/listServersDetailed (ListServersDetailedReq) returns (ListServersDetailedResp)
@doc "删除虚拟机"
@handler DeleteServerHandler
delete /vm/deleteServer (DeleteServerReq) returns (DeleteServerResp)
@doc "创建虚拟机"
@handler CreateServerHandler
post /vm/createServer (CreateServerReq) returns (CreateServerResp)
@doc "根据ID查询虚拟机详情"
@handler GetServersDetailedByIdHandler
get /vm/getServersDetailedById (GetServersDetailedByIdReq) returns (GetServersDetailedByIdResp)
@doc "更新虚拟机"
@handler UpdateServerHandler
put /vm/updateServer (UpdateServerReq) returns (UpdateServerResp)
@doc "启动虚拟机"
@handler StartServerHandler
post /vm/startServer (StartServerReq) returns (StartServerResp)
@doc "停止虚拟机"
@handler StopServerHandler
post /vm/stopServer (StopServerReq) returns (StopServerResp)
@doc "重启虚拟机"
@handler RebootServerHandler
post /vm/rebootServer (RebootServerReq) returns (RebootServerResp)
@doc "暂停虚拟机"
@handler PauseServerHandler
post /vm/pauseServer (PauseServerReq) returns (PauseServerResp)
@doc "查询镜像列表"
@handler ListImagesHandler
get /vm/listImages (ListImagesReq) returns (ListImagesResp)
@doc "删除镜像"
@handler DeleteImageHandler
delete /vm/deleteImage (DeleteImageReq) returns (DeleteImageResp)
@doc "创建镜像"
@handler CreateImageHandler
post /vm/createImage (CreateImageReq) returns (CreateImageResp)
@doc "上传镜像"
@handler UploadImageHandler
put /vm/uploadImage (UploadOsImageReq) returns (UploadOsImageResp)
@doc "查询网络列表"
@handler ListNetworksHandler
get /vm/listNetworks (ListNetworksReq) returns (ListNetworksResp)
@doc "删除网络"
@handler DeleteNetworkHandler
delete /vm/deleteNetwork (DeleteNetworkReq) returns (DeleteNetworkResp)
@doc "创建网络"
@handler CreateNetworkHandler
post /vm/createNetwork (CreateNetworkReq) returns (CreateNetworkResp)
@doc "创建子网"
@handler CreateSubnetHandler
post /vm/createSubnet (CreateSubnetReq) returns (CreateSubnetResp)
@doc "查询网络详情"
@handler ShowNetworkDetailsHandler
get /vm/showNetworkDetails (ShowNetworkDetailsReq) returns (ShowNetworkDetailsResp)
@doc "更新网络"
@handler UpdateNetworkHandler
put /vm/updateNetwork (UpdateNetworkReq) returns (UpdateNetworkResp)
@doc "批量创建网络"
@handler BulkCreateNetworksHandler
post /vm/bulkCreateNetworks (BulkCreateNetworksReq) returns (BulkCreateNetworksResp)
@doc "查询卷详情列表"
@handler ListVolumesDetailHandler
get /vm/listVolumesDetail (ListVolumesDetailReq) returns (ListVolumesDetailResp)
@doc "删除卷"
@handler DeleteVolumeHandler
delete /vm/deleteVolume (DeleteVolumeReq) returns (DeleteVolumeResp)
@doc "创建卷"
@handler CreateVolumeHandler
post /vm/createVolume (CreateVolumeReq) returns (CreateVolumeResp)
@doc "查询规格详情列表"
@handler ListFlavorsDetailHandler
get /vm/listFlavorsDetail (ListFlavorsDetailReq) returns (ListFlavorsDetailResp)
@doc "查询规格类型列表"
@handler ListVolumeTypesHandler
get /vm/listVolumeTypes (ListVolumeTypesReq) returns (ListVolumeTypesResp)
@doc "更新卷"
@handler UpdateVolumeHandler
put /vm/updateVolume (UpdateVolumeReq) returns (UpdateVolumeResp)
@doc "创建卷类型"
@handler CreateVolumeTypesHandler
post /vm/createVolumeTypes (CreateVolumeTypeReq) returns (CreateVolumeTypeResp)
@doc "删除卷类型"
@handler DeleteVolumeTypeHandler
delete /vm/deleteVolumeType (DeleteVolumeTypeReq) returns (DeleteVolumeTypeResp)
@doc "查询卷列表"
@handler ListVolumesHandler
get /vm/listVolumes (ListVolumesReq) returns (ListVolumesResp)
@doc "根据ID获取卷详情"
@handler GetVolumeDetailedByIdHandler
get /vm/getVolumeDetailedById (GetVolumeDetailedByIdReq) returns (GetVolumeDetailedByIdResp)
@doc "查询节点列表"
@handler ListNodesHandler
get /vm/listNodes (ListNodesReq) returns (ListNodesResp)
@doc "创建节点"
@handler CreateNodeHandler
post /vm/createNode (CreateNodeReq) returns (CreateNodeResp)
@doc "删除节点"
@handler DeleteNodeHandler
delete /vm/deleteNode (DeleteNodeReq) returns (DeleteNodeResp)
@doc "查询节点详情"
@handler ShowNodeDetailsHandler
get /vm/showNodeDetails (ShowNodeDetailsReq) returns (ShowNodeDetailsResp)
}
//存算联动 接口
@server(
prefix: pcm/v1
group : storelink
)
service pcm {
@handler UploadLinkImageHandler
post /storelink/uploadImage (UploadLinkImageReq) returns (UploadLinkImageResp)
@handler GetLinkImageListHandler
get /storelink/getImageList (GetLinkImageListReq) returns (GetLinkImageListResp)
@handler DeleteLinkImageHandler
delete /storelink/deleteImage (DeleteLinkImageReq) returns (DeleteLinkImageResp)
@handler SubmitLinkTaskHandler
post /storelink/submitTask (SubmitLinkTaskReq) returns (SubmitLinkTaskResp)
@handler GetLinkTaskHandler
get /storelink/getTask (GetLinkTaskReq) returns (GetLinkTaskResp)
@handler DeleteLinkTaskHandler
delete /storelink/deleteTask (DeleteLinkTaskReq) returns (DeleteLinkTaskResp)
@handler GetParticipantsHandler
get /storelink/getParticipants (GetParticipantsReq) returns (GetParticipantsResp)
@handler GetAISpecsHandler
get /storelink/getResourceSpecs (GetResourceSpecsReq) returns (GetResourceSpecsResp)
}

File diff suppressed because it is too large Load Diff

View File

@ -1,18 +0,0 @@
NacosConfig:
DataId: pcm-core-api.yaml
Group: DEFAULT_GROUP
ServerConfigs:
# - IpAddr: 127.0.0.1
# Port: 8848
# - IpAddr: 10.101.15.7
# Port: 8848
- IpAddr: 119.45.100.73
Port: 8848
ClientConfig:
NamespaceId: tzwang
# NamespaceId: test
TimeoutMs: 5000
NotLoadCacheAtStart: true
LogDir:
CacheDir:
LogLevel: debug

View File

@ -1,31 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package cron
import (
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
)
func AddCronGroup(svc *svc.ServiceContext) {
// 同步任务信息到core端
svc.Cron.AddFunc("*/5 * * * * ?", func() {
SyncParticipantRpc(svc)
})
// 删除三天前的监控信息
svc.Cron.AddFunc("*/5 * * * * ?", func() {
ClearMetricsData(svc)
})
}

View File

@ -1,28 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package cron
import (
"github.com/rs/zerolog/log"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/pkg/models"
)
func ClearMetricsData(svc *svc.ServiceContext) {
tx := svc.DbEngin.Where("DATE(created_time) <= DATE(DATE_SUB(NOW(),INTERVAL 3 DAY))").Delete(&models.ScNodeAvailInfo{})
if tx.Error != nil {
log.Err(tx.Error)
}
}

View File

@ -1,45 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package cron
import (
"github.com/zeromicro/go-zero/zrpc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/pkg/constants"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/pkg/models"
"gitlink.org.cn/jcce-pcm/pcm-participant-kubernetes/kubernetesclient"
)
func SyncParticipantRpc(svc *svc.ServiceContext) {
// 查询出所有p端信息
var participants []*models.ScParticipantPhyInfo
tx := svc.DbEngin.Find(&participants)
if tx.Error != nil {
}
for _, participant := range participants {
// 初始化p端rpc客户端
if len(participant.RpcAddress) != 0 && svc.K8sRpc[participant.Id] == nil {
switch participant.Type {
case constants.CLOUD:
svc.K8sRpc[participant.Id] = kubernetesclient.NewKubernetes(zrpc.MustNewClient(zrpc.RpcClientConf{
Endpoints: []string{participant.RpcAddress},
NonBlock: true,
}))
}
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func CreateAlgorithmHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.CreateAlgorithmReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewCreateAlgorithmLogic(r.Context(), svcCtx)
resp, err := l.CreateAlgorithm(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func CreateDataSetHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.CreateDataSetReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewCreateDataSetLogic(r.Context(), svcCtx)
resp, err := l.CreateDataSet(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func CreateExportTaskHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.CreateExportTaskReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewCreateExportTaskLogic(r.Context(), svcCtx)
resp, err := l.CreateExportTask(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func CreateNotebookHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.CreateNotebookReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewCreateNotebookLogic(r.Context(), svcCtx)
resp, err := l.CreateNotebook(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func CreateProcessorTaskHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.CreateProcessorTaskReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewCreateProcessorTaskLogic(r.Context(), svcCtx)
resp, err := l.CreateProcessorTask(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func CreateServiceHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.CreateServiceReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewCreateServiceLogic(r.Context(), svcCtx)
resp, err := l.CreateService(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func CreateTaskHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.ImportTaskDataReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewCreateTaskLogic(r.Context(), svcCtx)
resp, err := l.CreateTask(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func CreateTrainingJobHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.CreateTrainingJobReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewCreateTrainingJobLogic(r.Context(), svcCtx)
resp, err := l.CreateTrainingJob(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func CreateVisualizationJobHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.CreateVisualizationJobReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewCreateVisualizationJobLogic(r.Context(), svcCtx)
resp, err := l.CreateVisualizationJob(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func DeleteAlgorithmHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.DeleteAlgorithmReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewDeleteAlgorithmLogic(r.Context(), svcCtx)
resp, err := l.DeleteAlgorithm(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func DeleteDataSetHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.DeleteDataSetReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewDeleteDataSetLogic(r.Context(), svcCtx)
resp, err := l.DeleteDataSet(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func DeleteServiceHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.DeleteServiceReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewDeleteServiceLogic(r.Context(), svcCtx)
resp, err := l.DeleteService(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func DeleteTrainingJobHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.DeleteTrainingJobReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewDeleteTrainingJobLogic(r.Context(), svcCtx)
resp, err := l.DeleteTrainingJob(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func GetExportTasksOfDatasetHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.GetExportTasksOfDatasetReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewGetExportTasksOfDatasetLogic(r.Context(), svcCtx)
resp, err := l.GetExportTasksOfDataset(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func GetExportTaskStatusOfDatasetHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.GetExportTaskStatusOfDatasetReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewGetExportTaskStatusOfDatasetLogic(r.Context(), svcCtx)
resp, err := l.GetExportTaskStatusOfDataset(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func GetListTrainingJobsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.ListTrainingJobsreq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewGetListTrainingJobsLogic(r.Context(), svcCtx)
resp, err := l.GetListTrainingJobs(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func GetNotebookStorageHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.GetNotebookStorageReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewGetNotebookStorageLogic(r.Context(), svcCtx)
resp, err := l.GetNotebookStorage(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func GetVisualizationJobHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.GetVisualizationJobReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewGetVisualizationJobLogic(r.Context(), svcCtx)
resp, err := l.GetVisualizationJob(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func ListAlgorithmsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.ListAlgorithmsReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewListAlgorithmsLogic(r.Context(), svcCtx)
resp, err := l.ListAlgorithms(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func ListClustersHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.ListClustersReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewListClustersLogic(r.Context(), svcCtx)
resp, err := l.ListClusters(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func ListDataSetHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.DataSetReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewListDataSetLogic(r.Context(), svcCtx)
resp, err := l.ListDataSet(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func ListImportHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.ListImportTasksReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewListImportLogic(r.Context(), svcCtx)
resp, err := l.ListImport(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func ListNotebookHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.ListNotebookReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewListNotebookLogic(r.Context(), svcCtx)
resp, err := l.ListNotebook(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func ListServicesHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.ListServicesReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewListServicesLogic(r.Context(), svcCtx)
resp, err := l.ListServices(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func MountNotebookStorageHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.MountNotebookStorageReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewMountNotebookStorageLogic(r.Context(), svcCtx)
resp, err := l.MountNotebookStorage(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func ShowAlgorithmByUuidHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.ShowAlgorithmByUuidReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewShowAlgorithmByUuidLogic(r.Context(), svcCtx)
resp, err := l.ShowAlgorithmByUuid(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func ShowServiceHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.ShowServiceReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewShowServiceLogic(r.Context(), svcCtx)
resp, err := l.ShowService(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func StartNotebookHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.StartNotebookReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewStartNotebookLogic(r.Context(), svcCtx)
resp, err := l.StartNotebook(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package ai
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/ai"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func StopNotebookHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.StopNotebookReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := ai.NewStopNotebookLogic(r.Context(), svcCtx)
resp, err := l.StopNotebook(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,31 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package cloud
import (
"gitlink.org.cn/jcce-pcm/utils/result"
"net/http"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/cloud"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
)
func CloudListHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := cloud.NewCloudListLogic(r.Context(), svcCtx)
resp, err := l.CloudList()
result.HttpResult(r, w, resp, err)
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package cloud
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/cloud"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func DeleteYamlHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.ApplyReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := cloud.NewDeleteYamlLogic(r.Context(), svcCtx)
resp, err := l.DeleteYaml(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,28 +0,0 @@
package core
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/core"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func CommitHpcTaskHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.CommitHpcTaskReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := core.NewCommitHpcTaskLogic(r.Context(), svcCtx)
resp, err := l.CommitHpcTask(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,39 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package core
import (
"gitlink.org.cn/jcce-pcm/utils/result"
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/core"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func DeleteTaskHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.DeleteTaskReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := core.NewDeleteTaskLogic(r.Context(), svcCtx)
err := l.DeleteTask(&req)
result.HttpResult(r, w, nil, err)
}
}

View File

@ -1,35 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package core
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/core"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
)
func GetComputilityStatisticsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := core.NewGetComputilityStatisticsLogic(r.Context(), svcCtx)
resp, err := l.GetComputilityStatistics()
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,35 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package core
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/core"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
)
func GetComputingPowerHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := core.NewGetComputingPowerLogic(r.Context(), svcCtx)
resp, err := l.GetComputingPower()
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,35 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package core
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/core"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
)
func GetGeneralInfoHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := core.NewGetGeneralInfoLogic(r.Context(), svcCtx)
resp, err := l.GetGeneralInfo()
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,39 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package core
import (
"gitlink.org.cn/jcce-pcm/utils/result"
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/core"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func GetHashcatHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.GetHashcatHandlerReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := core.NewGetHashcatLogic(r.Context(), svcCtx)
resp, err := l.GetHashcat(&req)
result.HttpResult(r, w, resp, err)
}
}

View File

@ -1,35 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package core
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/core"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
)
func GetRegionHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := core.NewGetRegionLogic(r.Context(), svcCtx)
resp, err := l.GetRegion()
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,32 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package core
import (
"net/http"
"gitlink.org.cn/jcce-pcm/utils/result"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/core"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
)
func GetResourcePanelConfigHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := core.NewGetResourcePanelConfigLogic(r.Context(), svcCtx)
resp, err := l.GetResourcePanelConfig()
result.HttpResult(r, w, resp, err)
}
}

View File

@ -1,31 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package core
import (
"gitlink.org.cn/jcce-pcm/utils/result"
"net/http"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/core"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
)
func JobTotalHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := core.NewJobTotalLogic(r.Context(), svcCtx)
resp, err := l.JobTotal()
result.HttpResult(r, w, resp, err)
}
}

View File

@ -1,35 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package core
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/core"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
)
func ListCenterHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := core.NewListCenterLogic(r.Context(), svcCtx)
resp, err := l.ListCenter()
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package core
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/core"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func ListClusterHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.ListClusterReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := core.NewListClusterLogic(r.Context(), svcCtx)
resp, err := l.ListCluster(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,32 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package core
import (
"net/http"
"gitlink.org.cn/jcce-pcm/utils/result"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/core"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
)
func ListDomainResourceHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := core.NewListDomainResourceLogic(r.Context(), svcCtx)
resp, err := l.ListDomainResource()
result.HttpResult(r, w, resp, err)
}
}

View File

@ -1,35 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package core
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/core"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
)
func ListRegionHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := core.NewListRegionLogic(r.Context(), svcCtx)
resp, err := l.ListRegion()
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,31 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package core
import (
"gitlink.org.cn/jcce-pcm/utils/result"
"net/http"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/core"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
)
func NodeAssetsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := core.NewNodeAssetsLogic(r.Context(), svcCtx)
resp, err := l.NodeAssets()
result.HttpResult(r, w, resp, err)
}
}

View File

@ -1,31 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package core
import (
"gitlink.org.cn/jcce-pcm/utils/result"
"net/http"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/core"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
)
func ParticipantListHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := core.NewParticipantListLogic(r.Context(), svcCtx)
resp, err := l.ParticipantList()
result.HttpResult(r, w, resp, err)
}
}

View File

@ -1,40 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package core
import (
"net/http"
"gitlink.org.cn/jcce-pcm/utils/result"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/core"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func PutResourcePanelConfigHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.ResourcePanelConfigReq
if err := httpx.Parse(r, &req); err != nil {
result.ParamErrorResult(r, w, err)
return
}
l := core.NewPutResourcePanelConfigLogic(r.Context(), svcCtx)
err := l.PutResourcePanelConfig(&req)
result.HttpResult(r, w, nil, err)
}
}

View File

@ -1,39 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package core
import (
"gitlink.org.cn/jcce-pcm/utils/result"
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/core"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func SaveHashcatHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.SaveHashcatReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := core.NewSaveHashcatLogic(r.Context(), svcCtx)
err := l.SaveHashcat(&req)
result.HttpResult(r, w, nil, err)
}
}

View File

@ -1,50 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package core
import (
"gitlink.org.cn/jcce-pcm/pcm-coordinator/pkg/repository/result"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/pkg/utils"
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/core"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func ScheduleTaskByYamlHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.ScheduleTaskByYamlReq
if err := httpx.Parse(r, &req); err != nil {
result.HttpResult(r, w, nil, err)
return
}
// 解析yaml文件
_, fileHeader, err := r.FormFile("file")
if err != nil {
result.HttpResult(r, w, nil, err)
return
}
err = utils.Yaml2struct(fileHeader, &req)
if err != nil {
result.HttpResult(r, w, nil, err)
return
}
l := core.NewScheduleTaskByYamlLogic(r.Context(), svcCtx)
resp, err := l.ScheduleTaskByYaml(&req)
result.HttpResult(r, w, resp, err)
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package core
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/core"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func SubmitJobHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.SubmitJobReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := core.NewSubmitJobLogic(r.Context(), svcCtx)
resp, err := l.SubmitJob(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,39 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package core
import (
"gitlink.org.cn/jcce-pcm/pcm-coordinator/pkg/repository/result"
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/core"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func TaskDetailHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.TaskDetailReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := core.NewTaskDetailLogic(r.Context(), svcCtx)
resp, err := l.TaskDetail(&req)
result.HttpResult(r, w, resp, err)
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package core
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/core"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func TaskListHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.TaskListReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := core.NewTaskListLogic(r.Context(), svcCtx)
resp, err := l.TaskList(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package hpc
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/hpc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func ListHistoryJobHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.ListHistoryJobReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := hpc.NewListHistoryJobLogic(r.Context(), svcCtx)
resp, err := l.ListHistoryJob(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package hpc
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/hpc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func ListJobHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.ListJobReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := hpc.NewListJobLogic(r.Context(), svcCtx)
resp, err := l.ListJob(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,31 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package hpc
import (
"gitlink.org.cn/jcce-pcm/utils/result"
"net/http"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/hpc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
)
func QueueAssetsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := hpc.NewQueueAssetsLogic(r.Context(), svcCtx)
resp, err := l.QueueAssets()
result.HttpResult(r, w, resp, err)
}
}

View File

@ -1,208 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package image
import (
"bufio"
"context"
"encoding/base64"
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/s3/s3manager"
types2 "github.com/docker/docker/api/types"
"github.com/zeromicro/go-zero/core/logx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/pkg/models"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/pkg/repository/result"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/pkg/utils/fileutils"
"io/ioutil"
"k8s.io/apimachinery/pkg/util/json"
"net/http"
"os"
"path/filepath"
"strconv"
"strings"
"sync"
"time"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
)
var dir, _ = os.Getwd()
var uploadPath = filepath.Join(dir, "uploads")
func ChunkHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
size, _ := strconv.ParseInt(r.PostFormValue("size"), 10, 64)
hash := r.PostFormValue("hash")
name := r.PostFormValue("name")
dataType := r.PostFormValue("dataType")
kind := r.PostFormValue("kind")
// 对比合并请求的文件大小和已上传文件夹大小
toSize, err := fileutils.GetDirSize(filepath.Join(uploadTempPath, hash))
if err != nil {
logx.Error(err)
result.HttpResult(r, w, nil, err)
return
}
if size != toSize {
fmt.Fprintf(w, "文件上传错误")
}
chunksPath := filepath.Join(uploadTempPath, hash)
files, _ := ioutil.ReadDir(chunksPath)
// 将文件根据索引序号排序
filesSort := make(map[string]string)
for _, f := range files {
nameArr := strings.Split(f.Name(), "-")
filesSort[nameArr[1]] = f.Name()
}
saveFile := filepath.Join(uploadPath, name)
if exists, _ := fileutils.PathExists(saveFile); exists {
os.Remove(saveFile)
}
fs, _ := os.OpenFile(saveFile, os.O_CREATE|os.O_RDWR|os.O_APPEND, os.ModeAppend|os.ModePerm)
var wg sync.WaitGroup
filesCount := len(files)
if filesCount != len(filesSort) {
fmt.Fprintf(w, "文件上传错误2")
}
wg.Add(filesCount)
for i := 0; i < filesCount; i++ {
// 这里一定要注意按顺序读取不然文件就会损坏
fileName := filepath.Join(chunksPath, filesSort[strconv.Itoa(i)])
data, err := ioutil.ReadFile(fileName)
fmt.Println(err)
fs.Write(data)
wg.Done()
}
wg.Wait()
os.RemoveAll(chunksPath)
// 保存到数据库表里
svcCtx.DbEngin.Create(&models.File{
Name: name,
Hash: hash,
DataType: dataType,
Status: "local",
Kind: kind,
Bucket: "pcm"})
// 根据数据类型按需上传镜像推送到nexus 数据集和算法推送到云际存储)
switch kind {
case "image":
err = pushImage(svcCtx, hash, name)
case "dataSet", "algorithm":
err = uploadStorage(svcCtx, hash, name)
}
// 删除本地文件 避免占用本地存储资源
defer os.Remove(filepath.Join(uploadPath, name))
defer fs.Close()
result.HttpResult(r, w, nil, err)
}
}
// 同步数据集到modelArts
func syncDataSet() {
}
// 上传文件到云集存储
func uploadStorage(svcCtx *svc.ServiceContext, hash string, name string) error {
fileInfo, err := os.Open(filepath.Join(uploadPath, name))
if err != nil {
logx.Error(err)
return err
}
_, err = svcCtx.Uploader.Upload(&s3manager.UploadInput{
Bucket: aws.String("pcm"),
Key: aws.String(name),
Body: fileInfo,
})
if err != nil {
logx.Error(err)
return err
}
// 更新数据状态
svcCtx.DbEngin.Model(&models.File{}).Where("hash = ?", hash).Update("status", "cloud")
return nil
}
// 推送镜像到nexus仓库
func pushImage(svcCtx *svc.ServiceContext, hash string, name string) error {
// 加载镜像文件到docker
fileInfo, err := os.Open(filepath.Join(uploadPath, name))
if err != nil {
logx.Error(err)
return err
}
defer fileInfo.Close()
reader := bufio.NewReader(fileInfo)
body, err := svcCtx.DockerClient.ImageLoad(context.Background(), reader, false)
if err != nil {
logx.Error(err)
return err
}
bytes, err := ioutil.ReadAll(body.Body)
println(string(bytes))
if err != nil {
logx.Error(err)
return err
}
//time.Sleep(12 * 100 * time.Millisecond)
privateImageName := "registry.cn-hangzhou.aliyuncs.com/jointcloud/pcm:" + name
// 给镜像打上私有仓库的tag
err = svcCtx.DockerClient.ImageTag(context.Background(), name, privateImageName)
if err != nil {
logx.Error(err)
return err
}
// 删除原镜像
_, err = svcCtx.DockerClient.ImageRemove(context.Background(), name, types2.ImageRemoveOptions{})
if err != nil {
logx.Error(err)
return err
}
// 推送镜像到registry
authConfig := types2.AuthConfig{
Username: svcCtx.Config.RegistryConf.Username,
Password: svcCtx.Config.RegistryConf.Password,
}
authConfigBytes, err := json.Marshal(authConfig)
if err != nil {
logx.Error(err)
return err
}
logx.Infof(fmt.Sprintln("传输开始", time.Now()))
authStr := base64.URLEncoding.EncodeToString(authConfigBytes)
pushBody, err := svcCtx.DockerClient.ImagePush(context.Background(), privateImageName, types2.ImagePushOptions{RegistryAuth: authStr})
pushBytes, _ := ioutil.ReadAll(pushBody)
println(string(pushBytes))
if err != nil {
logx.Error(err)
return err
}
logx.Infof(fmt.Sprintln("传输完成", time.Now()))
// 删除本地镜像 避免存储资源浪费
_, err = svcCtx.DockerClient.ImageRemove(context.Background(), privateImageName, types2.ImageRemoveOptions{})
if err != nil {
logx.Error(err)
return err
}
// 更新数据状态
svcCtx.DbEngin.Model(&models.File{}).Where("hash = ?", hash).Update("status", "cloud")
return nil
}

View File

@ -1,39 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package image
import (
result2 "gitlink.org.cn/jcce-pcm/utils/result"
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/image"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func DataSetCheckHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.CheckReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := image.NewDataSetCheckLogic(r.Context(), svcCtx)
resp, err := l.DataSetCheck(&req)
result2.HttpResult(r, w, resp, err)
}
}

View File

@ -1,31 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package image
import (
"gitlink.org.cn/jcce-pcm/utils/result"
"net/http"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/image"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
)
func ImageListHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := image.NewImageListLogic(r.Context(), svcCtx)
resp, err := l.ImageList()
result.HttpResult(r, w, resp, err)
}
}

View File

@ -1,72 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package image
import (
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"net/http"
)
func UploadDataSetHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
////file, fileHeader, err := r.FormFile("file")
////if err != nil {
//// return
////}
//AK := "your_access_key"
//SK := "your_secret_key"
//cred := aws.Credentials{AccessKeyID: AK, SecretAccessKey: SK}
//
//uploader := manager.NewUploader(client)
//endpointURL := "http://10.105.24.4:7480"
//
//customResolver := aws.EndpointResolverWithOptionsFunc(func(service, region string, options ...interface{}) (aws.Endpoint, error) {
// return aws.Endpoint{
// URL: endpointURL,
// }, nil
//})
//
//client := s3.NewFromConfig(aws.Config{Credentials: credentials.NewAccessKeyCredential()})
//cfg, err := config.LoadDefaultConfig(context.TODO(), config.WithEndpointResolverWithOptions(customResolver))
//if err != nil {
// panic(err)
//}
//
//s3Client := s3.NewFromConfig(cfg, func(options *s3.Options) {
// options.UsePathStyle = true
//})
// 上传文件
//uploader := manager.NewUploader(s3Client)
//bucket := "pcm"
//key := fileHeader.Filename
//result, err := uploader.Upload(context.TODO(), &s3.PutObjectInput{
// Bucket: &bucket,
// Key: &key,
// Body: file,
//})
//println(result)
//output, err := s3Client.ListObjectsV2(context.TODO(), &s3.ListObjectsV2Input{
// Bucket: aws.String("my-bucket"),
//})
//if err != nil {
// log.Fatal(err)
//}
//
//log.Println("first page results:")
//for _, object := range output.Contents {
// log.Printf("key=%s size=%d", aws.ToString(object.Key), object.Size)
//}
}
}

View File

@ -1,118 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package image
import (
"bufio"
"fmt"
"github.com/zeromicro/go-zero/core/logx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/pkg/repository/result"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/pkg/utils/fileutils"
"io"
"net/http"
"os"
"path/filepath"
"strconv"
"syscall"
)
type LoadBody struct {
Stream string `json:"stream"`
}
var uploadTempPath = filepath.Join(uploadPath, "temp")
func UploadHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
file, fileHeader, err := r.FormFile("file")
if err != nil {
logx.Error(err)
result.HttpResult(r, w, nil, err)
return
}
index := r.PostFormValue("index")
hash := r.PostFormValue("hash")
defer file.Close()
// 合并路径
chunksPath := filepath.Join(uploadTempPath, hash)
// 文件路径
filePath := filepath.Join(chunksPath, hash+"-"+index)
// 检查临时文件夹是否存在 不存在则创建文件夹
isPathExists, err := fileutils.PathExists(chunksPath)
if !isPathExists {
err = os.MkdirAll(chunksPath, os.ModePerm)
if err != nil {
logx.Error(err)
result.HttpResult(r, w, nil, err)
return
}
}
// 检查文件是否存在
exists, err := fileutils.PathExists(filePath)
if err != nil {
logx.Error(err)
result.HttpResult(r, w, nil, err)
return
}
// 文件存在 进行断点续传
if exists {
fileInfo, _ := os.Stat(filePath)
if fileInfo.Size() == fileHeader.Size {
result.HttpResult(r, w, nil, err)
return
}
start := strconv.Itoa(int(fileInfo.Size()))
oldFile, _ := os.OpenFile(filePath, os.O_CREATE|os.O_WRONLY, os.ModePerm)
defer oldFile.Close()
count, _ := strconv.ParseInt(start, 10, 64)
fmt.Println("已上传:", count)
// 设置读,写的偏移量
file.Seek(count, 0)
oldFile.Seek(count, 0)
data := make([]byte, 1024, 1024)
for {
total, err := file.Read(data)
if err == io.EOF {
fmt.Println("文件复制完毕")
break
}
oldFile.Write(data[:total])
}
// 文件不存在 直接上传
} else {
destFile, _ := os.OpenFile(filepath.Join(chunksPath, hash+"-"+index), syscall.O_CREAT|syscall.O_WRONLY, 0777)
reader := bufio.NewReader(file)
writer := bufio.NewWriter(destFile)
buf := make([]byte, 1024*1024) // 1M buf
for {
n, err := reader.Read(buf)
if err == io.EOF {
writer.Flush()
break
} else if err != nil {
return
} else {
writer.Write(buf[:n])
}
}
defer file.Close()
defer destFile.Close()
}
result.HttpResult(r, w, nil, err)
}
}

View File

@ -1,608 +0,0 @@
// Code generated by goctl. DO NOT EDIT.
package handler
import (
"net/http"
ai "gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/handler/ai"
cloud "gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/handler/cloud"
core "gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/handler/core"
hpc "gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/handler/hpc"
image "gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/handler/image"
storage "gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/handler/storage"
storelink "gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/handler/storelink"
vm "gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/handler/vm"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"github.com/zeromicro/go-zero/rest"
)
func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
server.AddRoutes(
[]rest.Route{
{
Method: http.MethodGet,
Path: "/core/participantList",
Handler: core.ParticipantListHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/core/scheduleTaskByYaml",
Handler: core.ScheduleTaskByYamlHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/core/commitHpcTask",
Handler: core.CommitHpcTaskHandler(serverCtx),
},
{
Method: http.MethodDelete,
Path: "/core/deleteTask/:id",
Handler: core.DeleteTaskHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/core/taskList",
Handler: core.TaskListHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/core/taskDetail/:taskId",
Handler: core.TaskDetailHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/core/jobTotal",
Handler: core.JobTotalHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/core/listCenter",
Handler: core.ListCenterHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/core/listCluster/:centerId",
Handler: core.ListClusterHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/core/submitJob",
Handler: core.SubmitJobHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/core/getRegion",
Handler: core.GetRegionHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/core/listRegion",
Handler: core.ListRegionHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/core/getComputingPower",
Handler: core.GetComputingPowerHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/core/getGeneralInfo",
Handler: core.GetGeneralInfoHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/core/listDomainResource",
Handler: core.ListDomainResourceHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/core/getResourcePanelConfigHandler",
Handler: core.GetResourcePanelConfigHandler(serverCtx),
},
{
Method: http.MethodPut,
Path: "/core/resourcePanelConfigHandler",
Handler: core.PutResourcePanelConfigHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/core/getComputilityStatistics",
Handler: core.GetComputilityStatisticsHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/core/assets",
Handler: core.NodeAssetsHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/core/saveHashcat",
Handler: core.SaveHashcatHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/core/getHashcat/:crackTaskId",
Handler: core.GetHashcatHandler(serverCtx),
},
},
rest.WithPrefix("/pcm/v1"),
)
server.AddRoutes(
[]rest.Route{
{
Method: http.MethodGet,
Path: "/hpc/listJob",
Handler: hpc.ListJobHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/hpc/listHistoryJob",
Handler: hpc.ListHistoryJobHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/queue/assets",
Handler: hpc.QueueAssetsHandler(serverCtx),
},
},
rest.WithPrefix("/pcm/v1"),
)
server.AddRoutes(
[]rest.Route{
{
Method: http.MethodGet,
Path: "/task/list",
Handler: cloud.CloudListHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/cloud/DeleteYaml",
Handler: cloud.DeleteYamlHandler(serverCtx),
},
},
rest.WithPrefix("/pcm/v1"),
)
server.AddRoutes(
[]rest.Route{
{
Method: http.MethodGet,
Path: "/ai/listDataSet/:projectId",
Handler: ai.ListDataSetHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/ai/createDataSet/:projectId",
Handler: ai.CreateDataSetHandler(serverCtx),
},
{
Method: http.MethodDelete,
Path: "/ai/deleteDataSet/:projectId/:datasetId",
Handler: ai.DeleteDataSetHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/ai/CreateTask/:projectId/:datasetId",
Handler: ai.CreateTaskHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/ai/ListImport/:projectId/:datasetId",
Handler: ai.ListImportHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/ai/GetListTrainingJobs/:projectId",
Handler: ai.GetListTrainingJobsHandler(serverCtx),
},
{
Method: http.MethodDelete,
Path: "/ai/DeleteTrainingJob/:projectId/:trainingJobId",
Handler: ai.DeleteTrainingJobHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/ai/CreateAlgorithm/:projectId",
Handler: ai.CreateAlgorithmHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/ai/ListAlgorithms/:projectId",
Handler: ai.ListAlgorithmsHandler(serverCtx),
},
{
Method: http.MethodDelete,
Path: "/ai/DeleteAlgorithm/:projectId/:algorithmId",
Handler: ai.DeleteAlgorithmHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/ai/CreateTrainingJob/:projectId",
Handler: ai.CreateTrainingJobHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/ai/ShowAlgorithmByUuid/:projectId/:algorithmId",
Handler: ai.ShowAlgorithmByUuidHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/ai/CreateExportTask/:projectId/:datasetId",
Handler: ai.CreateExportTaskHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/ai/GetExportTasksOfDataset/:projectId/:datasetId",
Handler: ai.GetExportTasksOfDatasetHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/ai/GetExportTaskStatusOfDataset/:projectId/:resourceId/:taskId",
Handler: ai.GetExportTaskStatusOfDatasetHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/ai/CreateProcessorTask",
Handler: ai.CreateProcessorTaskHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/ai/CreateService/:projectId",
Handler: ai.CreateServiceHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/ai/ListServices/:projectId",
Handler: ai.ListServicesHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/ai/ShowService/:projectId/:serviceId",
Handler: ai.ShowServiceHandler(serverCtx),
},
{
Method: http.MethodDelete,
Path: "/ai/DeleteService/:projectId/:serviceId",
Handler: ai.DeleteServiceHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/ai/ListClusters",
Handler: ai.ListClustersHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/ai/listNotebook",
Handler: ai.ListNotebookHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/ai/createNotebook",
Handler: ai.CreateNotebookHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/ai/startNotebook",
Handler: ai.StartNotebookHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/ai/stopNotebook",
Handler: ai.StopNotebookHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/ai/getNotebookStorage",
Handler: ai.GetNotebookStorageHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/ai/mountNotebookStorage",
Handler: ai.MountNotebookStorageHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/ai/getVisualizationJob",
Handler: ai.GetVisualizationJobHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/ai/CreateVisualizationJob",
Handler: ai.CreateVisualizationJobHandler(serverCtx),
},
},
rest.WithPrefix("/pcm/v1"),
)
server.AddRoutes(
[]rest.Route{
{
Method: http.MethodGet,
Path: "/storage/screenStorage",
Handler: storage.ScreenStorageHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/storage/dailyPowerScreen",
Handler: storage.DailyPowerScreenHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/storage/perCenterComputerPowers",
Handler: storage.PerCenterComputerPowersHandler(serverCtx),
},
},
rest.WithPrefix("/pcm/v1"),
)
server.AddRoutes(
[]rest.Route{
{
Method: http.MethodPost,
Path: "/upload",
Handler: image.UploadHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/chunk",
Handler: image.ChunkHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/image/list",
Handler: image.ImageListHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/dataSet/check/:fileMd5",
Handler: image.DataSetCheckHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/dataSet/upload",
Handler: image.UploadDataSetHandler(serverCtx),
},
},
rest.WithPrefix("/pcm/v1"),
)
server.AddRoutes(
[]rest.Route{
{
Method: http.MethodGet,
Path: "/vm/getComputeLimits",
Handler: vm.GetComputeLimitsHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/vm/getVolumeLimits",
Handler: vm.GetVolumeLimitsHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/vm/listServer",
Handler: vm.ListServerHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/vm/listServersDetailed",
Handler: vm.ListServersDetailedHandler(serverCtx),
},
{
Method: http.MethodDelete,
Path: "/vm/deleteServer",
Handler: vm.DeleteServerHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/vm/createServer",
Handler: vm.CreateServerHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/vm/getServersDetailedById",
Handler: vm.GetServersDetailedByIdHandler(serverCtx),
},
{
Method: http.MethodPut,
Path: "/vm/updateServer",
Handler: vm.UpdateServerHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/vm/startServer",
Handler: vm.StartServerHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/vm/stopServer",
Handler: vm.StopServerHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/vm/rebootServer",
Handler: vm.RebootServerHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/vm/pauseServer",
Handler: vm.PauseServerHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/vm/listImages",
Handler: vm.ListImagesHandler(serverCtx),
},
{
Method: http.MethodDelete,
Path: "/vm/deleteImage",
Handler: vm.DeleteImageHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/vm/createImage",
Handler: vm.CreateImageHandler(serverCtx),
},
{
Method: http.MethodPut,
Path: "/vm/uploadImage",
Handler: vm.UploadImageHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/vm/listNetworks",
Handler: vm.ListNetworksHandler(serverCtx),
},
{
Method: http.MethodDelete,
Path: "/vm/deleteNetwork",
Handler: vm.DeleteNetworkHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/vm/createNetwork",
Handler: vm.CreateNetworkHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/vm/createSubnet",
Handler: vm.CreateSubnetHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/vm/showNetworkDetails",
Handler: vm.ShowNetworkDetailsHandler(serverCtx),
},
{
Method: http.MethodPut,
Path: "/vm/updateNetwork",
Handler: vm.UpdateNetworkHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/vm/bulkCreateNetworks",
Handler: vm.BulkCreateNetworksHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/vm/listVolumesDetail",
Handler: vm.ListVolumesDetailHandler(serverCtx),
},
{
Method: http.MethodDelete,
Path: "/vm/deleteVolume",
Handler: vm.DeleteVolumeHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/vm/createVolume",
Handler: vm.CreateVolumeHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/vm/listFlavorsDetail",
Handler: vm.ListFlavorsDetailHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/vm/listVolumeTypes",
Handler: vm.ListVolumeTypesHandler(serverCtx),
},
{
Method: http.MethodPut,
Path: "/vm/updateVolume",
Handler: vm.UpdateVolumeHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/vm/createVolumeTypes",
Handler: vm.CreateVolumeTypesHandler(serverCtx),
},
{
Method: http.MethodDelete,
Path: "/vm/deleteVolumeType",
Handler: vm.DeleteVolumeTypeHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/vm/listVolumes",
Handler: vm.ListVolumesHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/vm/getVolumeDetailedById",
Handler: vm.GetVolumeDetailedByIdHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/vm/listNodes",
Handler: vm.ListNodesHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/vm/createNode",
Handler: vm.CreateNodeHandler(serverCtx),
},
{
Method: http.MethodDelete,
Path: "/vm/deleteNode",
Handler: vm.DeleteNodeHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/vm/showNodeDetails",
Handler: vm.ShowNodeDetailsHandler(serverCtx),
},
},
rest.WithPrefix("/pcm/v1"),
)
server.AddRoutes(
[]rest.Route{
{
Method: http.MethodPost,
Path: "/storelink/uploadImage",
Handler: storelink.UploadLinkImageHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/storelink/getImageList",
Handler: storelink.GetLinkImageListHandler(serverCtx),
},
{
Method: http.MethodDelete,
Path: "/storelink/deleteImage",
Handler: storelink.DeleteLinkImageHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/storelink/submitTask",
Handler: storelink.SubmitLinkTaskHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/storelink/getTask",
Handler: storelink.GetLinkTaskHandler(serverCtx),
},
{
Method: http.MethodDelete,
Path: "/storelink/deleteTask",
Handler: storelink.DeleteLinkTaskHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/storelink/getParticipants",
Handler: storelink.GetParticipantsHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/storelink/getResourceSpecs",
Handler: storelink.GetAISpecsHandler(serverCtx),
},
},
rest.WithPrefix("/pcm/v1"),
)
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package storage
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/storage"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func DailyPowerScreenHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.DailyPowerScreenReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := storage.NewDailyPowerScreenLogic(r.Context(), svcCtx)
resp, err := l.DailyPowerScreen(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package storage
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/storage"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func PerCenterComputerPowersHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.PerCenterComputerPowersReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := storage.NewPerCenterComputerPowersLogic(r.Context(), svcCtx)
resp, err := l.PerCenterComputerPowers(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package storage
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/storage"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func ScreenStorageHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.StorageScreenReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := storage.NewScreenStorageLogic(r.Context(), svcCtx)
resp, err := l.ScreenStorage(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package storelink
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/storelink"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func DeleteLinkImageHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.DeleteLinkImageReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := storelink.NewDeleteLinkImageLogic(r.Context(), svcCtx)
resp, err := l.DeleteLinkImage(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package storelink
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/storelink"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func DeleteLinkTaskHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.DeleteLinkTaskReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := storelink.NewDeleteLinkTaskLogic(r.Context(), svcCtx)
resp, err := l.DeleteLinkTask(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package storelink
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/storelink"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func GetAISpecsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.GetResourceSpecsReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := storelink.NewGetAISpecsLogic(r.Context(), svcCtx)
resp, err := l.GetAISpecs(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package storelink
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/storelink"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func GetLinkImageListHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.GetLinkImageListReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := storelink.NewGetLinkImageListLogic(r.Context(), svcCtx)
resp, err := l.GetLinkImageList(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package storelink
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/storelink"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func GetLinkTaskHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.GetLinkTaskReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := storelink.NewGetLinkTaskLogic(r.Context(), svcCtx)
resp, err := l.GetLinkTask(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package storelink
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/storelink"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func GetParticipantsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.GetParticipantsReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := storelink.NewGetParticipantsLogic(r.Context(), svcCtx)
resp, err := l.GetParticipants(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package storelink
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/storelink"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func SubmitLinkTaskHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.SubmitLinkTaskReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := storelink.NewSubmitLinkTaskLogic(r.Context(), svcCtx)
resp, err := l.SubmitLinkTask(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package storelink
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/storelink"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func UploadLinkImageHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.UploadLinkImageReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := storelink.NewUploadLinkImageLogic(r.Context(), svcCtx)
resp, err := l.UploadLinkImage(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package vm
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/vm"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func BulkCreateNetworksHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.BulkCreateNetworksReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := vm.NewBulkCreateNetworksLogic(r.Context(), svcCtx)
resp, err := l.BulkCreateNetworks(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package vm
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/vm"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func CreateImageHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.CreateImageReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := vm.NewCreateImageLogic(r.Context(), svcCtx)
resp, err := l.CreateImage(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package vm
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/vm"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func CreateNetworkHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.CreateNetworkReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := vm.NewCreateNetworkLogic(r.Context(), svcCtx)
resp, err := l.CreateNetwork(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package vm
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/vm"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func CreateNodeHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.CreateNodeReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := vm.NewCreateNodeLogic(r.Context(), svcCtx)
resp, err := l.CreateNode(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package vm
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/vm"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func CreateServerHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.CreateServerReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := vm.NewCreateServerLogic(r.Context(), svcCtx)
resp, err := l.CreateServer(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package vm
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/vm"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func CreateSubnetHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.CreateSubnetReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := vm.NewCreateSubnetLogic(r.Context(), svcCtx)
resp, err := l.CreateSubnet(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -1,42 +0,0 @@
/*
Copyright (c) [2023] [pcm]
[pcm-coordinator] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
package vm
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/vm"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
)
func CreateVolumeHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.CreateVolumeReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := vm.NewCreateVolumeLogic(r.Context(), svcCtx)
resp, err := l.CreateVolume(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

Some files were not shown because too many files have changed in this diff Show More