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.

pcm-storage.api 3.2 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. syntax = "v1"
  2. info(
  3. title: "AI core"
  4. desc: "AI core微服务"
  5. author: "wanqgi"
  6. email: "1364512070@qq.com"
  7. )
  8. /****************** screen storage start*************************/
  9. type (
  10. StorageScreenReq {
  11. }
  12. StorageScreenResp {
  13. TotalSize int32 `json:"totalSize" copier:"TotalSize"`
  14. AiCenterInfos []AiCenterInfos `json:"aiCenterInfos" copier:"AiCenterInfos"`
  15. StorageUsed float32 `json:"storageUsed" copier:"StorageUsed"`
  16. StorageUsing float32 `json:"storageUsing" copier:"StorageUsing"`
  17. UsageRate float32 `json:"usageRate" copier:"UsageRate"`
  18. UsingRate float32 `json:"usingRate" copier:"UsingRate"`
  19. Code int32 `json:"code,omitempty"`
  20. Msg string `json:"msg,omitempty"`
  21. ErrorMsg string `json:"ErrorMsg,omitempty"`
  22. }
  23. AiCenterInfos {
  24. Id string `json:"id" copier:"Id"`
  25. Name string `json:"name" copier:"Name"`
  26. Desc string `json:"desc" copier:"Desc"`
  27. Resource string `json:"resource" copier:"Resource"`
  28. TrainJob string `json:"trainJob" copier:"TrainJob"`
  29. ComputeScale int32 `json:"computeScale" copier:"ComputeScale"`
  30. StorageScale int32 `json:"storageScale" copier:"StorageScale"`
  31. Province string `json:"path:province" copier:"Province"`
  32. City string `json:"city" copier:"City"`
  33. CoordinateX int32 `json:"coordinateX" copier:"CoordinateX"`
  34. CoordinateY int32 `json:"coordinateY" copier:"CoordinateY"`
  35. Type int32 `json:"type" copier:"Type"`
  36. Weight int32 `json:"weight" copier:"Weight"`
  37. ConnectionState int32 `json:"connectionState" copier:"ConnectionState"`
  38. BusyState int32 `json:"busyState" copier:"BusyState"`
  39. ImageUrl string `json:"imageUrl" copier:"ImageUrl"`
  40. AccDevices string `json:"accDevices" copier:"AccDevices"`
  41. MarketTime int64 `json:"marketTime" copier:"MarketTime"`
  42. CreatedAt int64 `json:"createdAt" copier:"CreatedAt"`
  43. AccessTime int32 `json:"accessTime" copier:"AccessTime"`
  44. CardRunTime int32 `json:"cardRunTime" copier:"CardRunTime"`
  45. JobCount int32 `json:"jobCount" copier:"JobCount"`
  46. }
  47. )
  48. /******************screen storage end*************************/
  49. /******************screen computing power Start*************************/
  50. type (
  51. DailyPowerScreenResp {
  52. // DailyComputerPowers []DailyComputerPowers `json:"dailyComputerPowers" copier:"DailyComputerPowers"`
  53. chart interface{} `json:"chart"`
  54. }
  55. )
  56. type (
  57. PerCenterComputerPowersResp {
  58. chart interface{} `json:"chart"`
  59. }
  60. )
  61. /******************screen computing power End*************************/
  62. type (
  63. UploadImageReq {
  64. name string `json:"name" copier:"name"`
  65. }
  66. )
  67. type (
  68. imageListResp {
  69. repositories []string `json:"repositories" copier:"repositories"`
  70. }
  71. )
  72. type (
  73. imageTagsReq {
  74. name string `form:"name"`
  75. }
  76. imageTagsResp {
  77. name string `json:"name"`
  78. tags []string `json:"tags" copier:"tags"`
  79. }
  80. )
  81. type (
  82. checkReq {
  83. fileMd5 string `path:"fileMd5"`
  84. }
  85. checkResp {
  86. exist bool `json:"exist"`
  87. }
  88. )

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.