MCPcopy Create free account
hub / github.com/rilldata/rill / formatDeploymentStatus

Function formatDeploymentStatus

cli/pkg/printer/resources.go:783–804  ·  view source on GitHub ↗
(status adminv1.DeploymentStatus)

Source from the content-addressed store, hash-verified

781}
782
783func 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
806type deployment struct {
807 Branch string `header:"branch" json:"branch"`

Callers 2

PrintDeploymentMethod · 0.85
toDeploymentRowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected