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.

pipeline.go 612 B

2 years ago
1234567891011121314151617181920212223
  1. package structs
  2. type Pipeline struct {
  3. ID int64 `json:"id"`
  4. Name string `json:"name"`
  5. Status string `json:"status"`
  6. }
  7. type NodeInfo struct {
  8. Name string `json:"name"`
  9. Status string `json:"status"`
  10. Code string `json:"code"`
  11. Message string `json:"message"`
  12. }
  13. type PipelineNotification struct {
  14. Type int `json:"type"`
  15. Username string `json:"username"`
  16. Reponame string `json:"reponame"`
  17. Pipeline Pipeline `json:"pipeline"`
  18. PipelineRunId string `json:"pipeline_run_id"`
  19. Node NodeInfo `json:"node"`
  20. OccurTime int64 `json:"occur_time"`
  21. }