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.

task_cloud.go 1.0 kB

12345678910111213141516171819202122232425
  1. package cloud
  2. import (
  3. "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models/base"
  4. "time"
  5. )
  6. type TaskCloudModel struct {
  7. Id uint `json:"id" gorm:"primarykey;not null;comment:id"`
  8. TaskId uint `json:"taskId" gorm:"not null;comment:task表id"`
  9. AdapterId uint `json:"adapterId" gorm:"not null;comment:适配器id"`
  10. ClusterId uint `json:"clusterId" gorm:"not null;comment:集群id"`
  11. ClusterName string `json:"clusterName" gorm:"not null;comment:集群名称"`
  12. Kind string `json:"kind" gorm:"comment:种类"`
  13. Status string `json:"status" gorm:"comment:状态"`
  14. StartTime *time.Time `json:"startTime,string" gorm:"comment:开始时间"`
  15. YamlString string `json:"yamlString" gorm:"not null;comment:入参"`
  16. Result string `json:"result" gorm:"comment:运行结果"`
  17. Namespace string `json:"namespace" gorm:"comment:命名空间"`
  18. base.BaseModel
  19. }
  20. func (TaskCloudModel) TableName() string {
  21. return "task_cloud"
  22. }

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.