deployment_target.go 597 B

12345678910111213141516171819202122232425
  1. package models
  2. import (
  3. "github.com/google/uuid"
  4. "gorm.io/gorm"
  5. )
  6. type DeploymentTarget struct {
  7. gorm.Model
  8. // ID is a UUID for the Revision
  9. ID uuid.UUID `gorm:"type:uuid;primaryKey" json:"id"`
  10. // ClusterID is the ID of the cluster that is being targeted.
  11. ClusterID int `json:"cluster_id"`
  12. // ProjectID is the ID of the project that the target belongs to.
  13. ProjectID int `json:"project_id"`
  14. // Selector is the identifier to target.
  15. Selector string `json:"selector"`
  16. // SelectorType is the kind of selector (i.e. NAMESPACE or LABEL).
  17. SelectorType string `json:"selector_type"`
  18. }