Signed-off-by: devad <cossjie@foxmail.com>
Former-commit-id: 0b06b3b508
pull/9/head
| @@ -3388,9 +3388,15 @@ type SubmitLinkTaskReq struct { | |||||
| ImageId string `json:"imageId"` | ImageId string `json:"imageId"` | ||||
| Cmd string `json:"cmd"` | Cmd string `json:"cmd"` | ||||
| Params []*ParamSl `json:"params"` | Params []*ParamSl `json:"params"` | ||||
| Envs []*EnvSl `json:"params"` | |||||
| ResourceId string `json:"resourceId"` | ResourceId string `json:"resourceId"` | ||||
| } | } | ||||
| type EnvSl struct { | |||||
| Key string `json:"key"` | |||||
| Val string `json:"value"` | |||||
| } | |||||
| type ParamSl struct { | type ParamSl struct { | ||||
| Key string `json:"key"` | Key string `json:"key"` | ||||
| Val string `json:"value"` | Val string `json:"value"` | ||||
| @@ -3446,10 +3452,11 @@ type GetResourceSpecsReq struct { | |||||
| type GetResourceSpecsResp struct { | type GetResourceSpecsResp struct { | ||||
| Success bool `json:"success"` | Success bool `json:"success"` | ||||
| ResourceSpecs []*ResourceSpecSl `json:"resourceSpecs"` | ResourceSpecs []*ResourceSpecSl `json:"resourceSpecs"` | ||||
| ErrorMsg string `json:"errorMsg"` | |||||
| } | } | ||||
| type ResourceSpecSl struct { | type ResourceSpecSl struct { | ||||
| ParticipantId string `json:"participantId"` | |||||
| ParticipantId int64 `json:"participantId"` | |||||
| ParticipantName string `json:"participantName"` | ParticipantName string `json:"participantName"` | ||||
| SpecName string `json:"specName"` | SpecName string `json:"specName"` | ||||
| SpecId string `json:"specId"` | SpecId string `json:"specId"` | ||||
| @@ -3457,7 +3464,7 @@ type ResourceSpecSl struct { | |||||
| } | } | ||||
| type ParticipantSl struct { | type ParticipantSl struct { | ||||
| ParticipantId string `json:"id"` | |||||
| ParticipantId int64 `json:"id"` | |||||
| ParticipantName string `json:"name"` | ParticipantName string `json:"name"` | ||||
| ParticipantType string `json:"type"` | ParticipantType string `json:"type"` | ||||
| } | } | ||||
| @@ -26,7 +26,7 @@ require ( | |||||
| gitlink.org.cn/jcce-pcm/pcm-participant-ac v0.0.0-20231027084000-16876da5aa31 | gitlink.org.cn/jcce-pcm/pcm-participant-ac v0.0.0-20231027084000-16876da5aa31 | ||||
| gitlink.org.cn/jcce-pcm/pcm-participant-ceph v0.0.0-20230817103341-2459e5bfc835 | gitlink.org.cn/jcce-pcm/pcm-participant-ceph v0.0.0-20230817103341-2459e5bfc835 | ||||
| gitlink.org.cn/jcce-pcm/pcm-participant-kubernetes v0.0.0-20231027083610-c8a292768f4a | gitlink.org.cn/jcce-pcm/pcm-participant-kubernetes v0.0.0-20231027083610-c8a292768f4a | ||||
| gitlink.org.cn/jcce-pcm/pcm-participant-modelarts v0.0.0-20231024115530-f6fd0505d2a1 | |||||
| gitlink.org.cn/jcce-pcm/pcm-participant-modelarts v0.0.0-20231101085149-724c7c4cc090 | |||||
| gitlink.org.cn/jcce-pcm/pcm-participant-octopus v0.0.0-20231101091522-38307e241dfd | gitlink.org.cn/jcce-pcm/pcm-participant-octopus v0.0.0-20231101091522-38307e241dfd | ||||
| gitlink.org.cn/jcce-pcm/pcm-participant-openstack v0.0.0-20231024105731-cbdceff549c9 | gitlink.org.cn/jcce-pcm/pcm-participant-openstack v0.0.0-20231024105731-cbdceff549c9 | ||||
| gitlink.org.cn/jcce-pcm/pcm-participant-slurm v0.0.0-20230714030125-a52fa198ddf4 | gitlink.org.cn/jcce-pcm/pcm-participant-slurm v0.0.0-20230714030125-a52fa198ddf4 | ||||
| @@ -1039,8 +1039,8 @@ gitlink.org.cn/jcce-pcm/pcm-participant-ceph v0.0.0-20230817103341-2459e5bfc835 | |||||
| gitlink.org.cn/jcce-pcm/pcm-participant-ceph v0.0.0-20230817103341-2459e5bfc835/go.mod h1:r/KLzUpupCV5jdxSfgDhc2pVjP0fBi3VhAWRttsBn30= | gitlink.org.cn/jcce-pcm/pcm-participant-ceph v0.0.0-20230817103341-2459e5bfc835/go.mod h1:r/KLzUpupCV5jdxSfgDhc2pVjP0fBi3VhAWRttsBn30= | ||||
| gitlink.org.cn/jcce-pcm/pcm-participant-kubernetes v0.0.0-20231027083610-c8a292768f4a h1:12PKPeDecCY7IfPp9JZmdMEIoJn6fF1oT4WW4ZKEUFM= | gitlink.org.cn/jcce-pcm/pcm-participant-kubernetes v0.0.0-20231027083610-c8a292768f4a h1:12PKPeDecCY7IfPp9JZmdMEIoJn6fF1oT4WW4ZKEUFM= | ||||
| gitlink.org.cn/jcce-pcm/pcm-participant-kubernetes v0.0.0-20231027083610-c8a292768f4a/go.mod h1:xtSfvDUd+jJhqHBBibZ1d9/ud3oN9nxaNYYHwz+CDgY= | gitlink.org.cn/jcce-pcm/pcm-participant-kubernetes v0.0.0-20231027083610-c8a292768f4a/go.mod h1:xtSfvDUd+jJhqHBBibZ1d9/ud3oN9nxaNYYHwz+CDgY= | ||||
| gitlink.org.cn/jcce-pcm/pcm-participant-modelarts v0.0.0-20231024115530-f6fd0505d2a1 h1:4Ibzcl4waYiHO3tdbqvcLUWEoV51ZaJhZBi7T518AA8= | |||||
| gitlink.org.cn/jcce-pcm/pcm-participant-modelarts v0.0.0-20231024115530-f6fd0505d2a1/go.mod h1:pisJKAI8FRFFUcBaH3Gob+ENXWRM97rpuYmv9s1raag= | |||||
| gitlink.org.cn/jcce-pcm/pcm-participant-modelarts v0.0.0-20231101085149-724c7c4cc090 h1:jztlHo72bcWM1jUwvG3Hfk2K+AJL0RvlsdIqlktH/MI= | |||||
| gitlink.org.cn/jcce-pcm/pcm-participant-modelarts v0.0.0-20231101085149-724c7c4cc090/go.mod h1:pisJKAI8FRFFUcBaH3Gob+ENXWRM97rpuYmv9s1raag= | |||||
| gitlink.org.cn/jcce-pcm/pcm-participant-octopus v0.0.0-20231101091522-38307e241dfd h1:9GIKpN6nel4U5jD91HL/vjzwo+EHTpE13SkT7WKyXtQ= | gitlink.org.cn/jcce-pcm/pcm-participant-octopus v0.0.0-20231101091522-38307e241dfd h1:9GIKpN6nel4U5jD91HL/vjzwo+EHTpE13SkT7WKyXtQ= | ||||
| gitlink.org.cn/jcce-pcm/pcm-participant-octopus v0.0.0-20231101091522-38307e241dfd/go.mod h1:uyvpVqG1jHDXX+ubXI0RBwnWXzVykD/mliqGQIDvRoo= | gitlink.org.cn/jcce-pcm/pcm-participant-octopus v0.0.0-20231101091522-38307e241dfd/go.mod h1:uyvpVqG1jHDXX+ubXI0RBwnWXzVykD/mliqGQIDvRoo= | ||||
| gitlink.org.cn/jcce-pcm/pcm-participant-openstack v0.0.0-20231024105731-cbdceff549c9 h1:r352e/Vrnity+BgrWyWCgn8uT2xPg6O86g+H4aIOdX8= | gitlink.org.cn/jcce-pcm/pcm-participant-openstack v0.0.0-20231024105731-cbdceff549c9 h1:r352e/Vrnity+BgrWyWCgn8uT2xPg6O86g+H4aIOdX8= | ||||
| @@ -5,7 +5,7 @@ import ( | |||||
| "github.com/zeromicro/go-zero/core/logx" | "github.com/zeromicro/go-zero/core/logx" | ||||
| "gitlink.org.cn/jcce-pcm/pcm-coordinator/pkg/models" | "gitlink.org.cn/jcce-pcm/pcm-coordinator/pkg/models" | ||||
| "gitlink.org.cn/jcce-pcm/pcm-coordinator/pkg/utils" | "gitlink.org.cn/jcce-pcm/pcm-coordinator/pkg/utils" | ||||
| pcmcore "gitlink.org.cn/jcce-pcm/pcm-coordinator/rpc/client/pcmCore" | |||||
| "gitlink.org.cn/jcce-pcm/pcm-coordinator/rpc/client/pcmcore" | |||||
| "gitlink.org.cn/jcce-pcm/pcm-coordinator/rpc/internal/svc" | "gitlink.org.cn/jcce-pcm/pcm-coordinator/rpc/internal/svc" | ||||
| "gorm.io/gorm" | "gorm.io/gorm" | ||||
| ) | ) | ||||