You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

jcweaver_models.go 823 B

2 months ago
12345678910111213141516171819202122232425262728293031323334
  1. package schsdk
  2. import (
  3. "gitlink.org.cn/cloudream/common/pkgs/types"
  4. "gitlink.org.cn/cloudream/common/utils/serder"
  5. )
  6. type JCWNodeInfos struct {
  7. Jobs []JobInfo `json:"jobs"`
  8. }
  9. type JCWNode interface {
  10. }
  11. var JCWNodeTypeUnion = types.NewTypeUnion[JCWNode](
  12. (*JCWAITrainNode)(nil),
  13. )
  14. var _ = serder.UseTypeUnionInternallyTagged(&JCWNodeTypeUnion, "type")
  15. type JCWNodeBase struct {
  16. LocalJobID string `json:"id"`
  17. Name string `json:"name"`
  18. }
  19. type JCWAITrainNode struct {
  20. serder.Metadata `union:"Normal"`
  21. JobInfoBase
  22. Type string `json:"type"`
  23. Files JobFilesInfo `json:"files"`
  24. Runtime JobRuntimeInfo `json:"runtime"`
  25. Resources JobResourcesInfo `json:"resources"`
  26. Services JobServicesInfo `json:"services"`
  27. ModelJobInfo ModelJobInfo `json:"modelJobInfo"`
  28. }