(state int)
| 114 | } |
| 115 | |
| 116 | func FromDeployState(state int) DeployState { |
| 117 | switch state { |
| 118 | case 1: |
| 119 | return DeployStateDownload |
| 120 | case 2: |
| 121 | return DeployStateDeploy |
| 122 | case 3: |
| 123 | return DeployStateInitializing |
| 124 | case 4: |
| 125 | return DeployStateFinish |
| 126 | case 5: |
| 127 | return DeployStateDownloadError |
| 128 | case 6: |
| 129 | return DeployStateDeployError |
| 130 | case 7: |
| 131 | return DeployStateInitializingError |
| 132 | default: |
| 133 | return DeployStateDownload |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | type ModelInfo struct { |
| 138 | Current int64 `json:"current"` |
nothing calls this directly
no outgoing calls
no test coverage detected