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.2 kB

123456789101112131415161718192021222324252627
  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. Name string `json:"name" gorm:"null;comment:名称"`
  9. TaskId uint `json:"taskId" gorm:"not null;comment:task表id"`
  10. AdapterId uint `json:"adapterId" gorm:"not null;comment:适配器id"`
  11. AdapterName string `json:"adapterName" gorm:"not null;comment:适配器名称"`
  12. ClusterId uint `json:"clusterId" gorm:"not null;comment:集群id"`
  13. ClusterName string `json:"clusterName" gorm:"not null;comment:集群名称"`
  14. Kind string `json:"kind" gorm:"comment:种类"`
  15. Status string `json:"status" gorm:"comment:状态"`
  16. StartTime *time.Time `json:"startTime,string" gorm:"comment:开始时间"`
  17. YamlString string `json:"yamlString" gorm:"not null;comment:入参"`
  18. Result string `json:"result" gorm:"comment:运行结果"`
  19. Namespace string `json:"namespace" gorm:"comment:命名空间"`
  20. base.BaseModel
  21. }
  22. func (TaskCloudModel) TableName() string {
  23. return "task_cloud"
  24. }

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.