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

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

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.