debian-forge-composer/cmd/osbuild-worker
Michael Vogt 573b349f16 clienterrors: rename WorkerClientError to clienterrors.New
The usual convention to create new object is to prefix `New*` so
this commit renames the `WorkerClientError`. Initially I thought
it would be `NewWorkerClientError()` but looking at the package
prefix it seems unneeded, i.e. `clienterrors.New()` already
provides enough context it seems and it's the only error we
construct.

We could consider renaming it to `clienterror` (singular) too
but that could be a followup.

I would also like to make `clienterror.Error` implement the
`error` interface but that should be a followup to make this
(mechanical) rename trivial to review.
2024-07-31 17:04:58 +02:00
..
config.go worker: support a proxy for repository mtls configuration 2024-04-17 16:17:57 +02:00
config_test.go Worker: allow configuring executor CloudWatch group 2024-03-08 13:13:44 +01:00
export_test.go osbuild-worker: improve error "reason" in case of stage failures 2024-07-09 12:12:36 +02:00
jobimpl-awsec2.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
jobimpl-container-resolve.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
jobimpl-depsolve.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
jobimpl-depsolve_test.go cmd/osbuild-worker/jobimpl-depsolve: show error.Reason only once 2024-07-09 12:12:36 +02:00
jobimpl-file-resolve.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
jobimpl-koji-finalize.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
jobimpl-koji-init.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
jobimpl-osbuild.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
jobimpl-osbuild_test.go osbuild-worker: tweak error to not include a \n for a failed stage 2024-07-11 09:33:40 +02:00
jobimpl-ostree-resolve.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
main.go worker: support a proxy for repository mtls configuration 2024-04-17 16:17:57 +02:00