()
| 52 | ) |
| 53 | |
| 54 | func (s RunnerStatus) IsValid() bool { |
| 55 | switch s { |
| 56 | case RunnerIdle, RunnerPending, RunnerTerminated, |
| 57 | RunnerInstalling, RunnerFailed, |
| 58 | RunnerActive, RunnerOffline, |
| 59 | RunnerUnknown, RunnerOnline: |
| 60 | |
| 61 | return true |
| 62 | } |
| 63 | return false |
| 64 | } |
| 65 | |
| 66 | const ( |
| 67 | // PoolBalancerTypeRoundRobin will try to cycle through the pools of an entity |