|
|
|
@@ -0,0 +1,34 @@ |
|
|
|
package schsdk |
|
|
|
|
|
|
|
import ( |
|
|
|
"gitlink.org.cn/cloudream/common/pkgs/types" |
|
|
|
"gitlink.org.cn/cloudream/common/utils/serder" |
|
|
|
) |
|
|
|
|
|
|
|
type JCWNodeInfos struct { |
|
|
|
Jobs []JobInfo `json:"jobs"` |
|
|
|
} |
|
|
|
|
|
|
|
type JCWNode interface { |
|
|
|
} |
|
|
|
|
|
|
|
var JCWNodeTypeUnion = types.NewTypeUnion[JCWNode]( |
|
|
|
(*JCWAITrainNode)(nil), |
|
|
|
) |
|
|
|
var _ = serder.UseTypeUnionInternallyTagged(&JCWNodeTypeUnion, "type") |
|
|
|
|
|
|
|
type JCWNodeBase struct { |
|
|
|
LocalJobID string `json:"id"` |
|
|
|
Name string `json:"name"` |
|
|
|
} |
|
|
|
|
|
|
|
type JCWAITrainNode struct { |
|
|
|
serder.Metadata `union:"Normal"` |
|
|
|
JobInfoBase |
|
|
|
Type string `json:"type"` |
|
|
|
Files JobFilesInfo `json:"files"` |
|
|
|
Runtime JobRuntimeInfo `json:"runtime"` |
|
|
|
Resources JobResourcesInfo `json:"resources"` |
|
|
|
Services JobServicesInfo `json:"services"` |
|
|
|
ModelJobInfo ModelJobInfo `json:"modelJobInfo"` |
|
|
|
} |