()
| 181 | } |
| 182 | |
| 183 | func (e ModelStatus) IsValid() bool { |
| 184 | switch e { |
| 185 | case ModelStatusNotDeployed, ModelStatusDeploying, ModelStatusReady, ModelStatusError: |
| 186 | return true |
| 187 | } |
| 188 | return false |
| 189 | } |
| 190 | |
| 191 | func (e ModelStatus) String() string { |
| 192 | return string(e) |