Succeeded sets the job to succeeded status. This is the default status.
(opts ...BuilderOption)
| 250 | // Succeeded sets the job to succeeded status. |
| 251 | // This is the default status. |
| 252 | func (b WorkspaceBuildBuilder) Succeeded(opts ...BuilderOption) WorkspaceBuildBuilder { |
| 253 | //nolint: revive // returns modified struct |
| 254 | b.jobStatus = database.ProvisionerJobStatusSucceeded |
| 255 | for _, opt := range opts { |
| 256 | opt(&b) |
| 257 | } |
| 258 | return b |
| 259 | } |
| 260 | |
| 261 | // Failed sets the provisioner job to a failed state. Use WithJobError and |
| 262 | // WithJobErrorCode options to set the error message and code. If no error |
no outgoing calls