Pending sets the job to pending status.
(opts ...BuilderOption)
| 229 | |
| 230 | // Pending sets the job to pending status. |
| 231 | func (b WorkspaceBuildBuilder) Pending(opts ...BuilderOption) WorkspaceBuildBuilder { |
| 232 | //nolint: revive // returns modified struct |
| 233 | b.jobStatus = database.ProvisionerJobStatusPending |
| 234 | for _, opt := range opts { |
| 235 | opt(&b) |
| 236 | } |
| 237 | return b |
| 238 | } |
| 239 | |
| 240 | // Canceled sets the job to canceled status. |
| 241 | func (b WorkspaceBuildBuilder) Canceled(opts ...BuilderOption) WorkspaceBuildBuilder { |
no outgoing calls