debian-forge-composer/internal/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
..
api worker: add ability to track workers serverside 2023-12-06 17:22:36 +01:00
clienterrors clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
client.go Drop common.CurrentArch() in favor of osbuild/images 2024-01-26 11:32:34 +01:00
client_test.go worker: let client register itself with the worker server 2023-12-06 17:22:36 +01:00
json.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
json_test.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
proxy_test.go worker: add proxy support to composer and oauth calls 2022-05-03 06:19:31 +01:00
server.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
server_test.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00