(status adminv1.DeploymentStatus)
| 781 | } |
| 782 | |
| 783 | func formatDeploymentStatus(status adminv1.DeploymentStatus) string { |
| 784 | switch status { |
| 785 | case adminv1.DeploymentStatus_DEPLOYMENT_STATUS_PENDING: |
| 786 | return "Pending" |
| 787 | case adminv1.DeploymentStatus_DEPLOYMENT_STATUS_RUNNING: |
| 788 | return "Running" |
| 789 | case adminv1.DeploymentStatus_DEPLOYMENT_STATUS_ERRORED: |
| 790 | return "Errored" |
| 791 | case adminv1.DeploymentStatus_DEPLOYMENT_STATUS_STOPPED: |
| 792 | return "Stopped" |
| 793 | case adminv1.DeploymentStatus_DEPLOYMENT_STATUS_UPDATING: |
| 794 | return "Updating" |
| 795 | case adminv1.DeploymentStatus_DEPLOYMENT_STATUS_STOPPING: |
| 796 | return "Stopping" |
| 797 | case adminv1.DeploymentStatus_DEPLOYMENT_STATUS_DELETING: |
| 798 | return "Deleting" |
| 799 | case adminv1.DeploymentStatus_DEPLOYMENT_STATUS_DELETED: |
| 800 | return "Deleted" |
| 801 | default: |
| 802 | return "Unknown" |
| 803 | } |
| 804 | } |
| 805 | |
| 806 | type deployment struct { |
| 807 | Branch string `header:"branch" json:"branch"` |
no outgoing calls
no test coverage detected