()
| 269 | } |
| 270 | |
| 271 | func (e PipelineExecutionStatus) IsValid() bool { |
| 272 | switch e { |
| 273 | case PipelineExecutionStatusActive, PipelineExecutionStatusSucceeded, PipelineExecutionStatusFailed, PipelineExecutionStatusPending: |
| 274 | return true |
| 275 | } |
| 276 | return false |
| 277 | } |
| 278 | |
| 279 | func (e PipelineExecutionStatus) String() string { |
| 280 | return string(e) |