JobIsInsufficientQuotaErrorCode returns whether the error is an insufficient quota error. This can indicate to consumers that they should explain quota recovery options instead of treating the failure as a generic build error.
(code JobErrorCode)
| 186 | // quota error. This can indicate to consumers that they should explain quota |
| 187 | // recovery options instead of treating the failure as a generic build error. |
| 188 | func JobIsInsufficientQuotaErrorCode(code JobErrorCode) bool { |
| 189 | return string(code) == runner.InsufficientQuotaErrorCode |
| 190 | } |
| 191 | |
| 192 | // ProvisionerJob describes the job executed by the provisioning daemon. |
| 193 | type ProvisionerJob struct { |
no outgoing calls
no test coverage detected