debian-forge-composer/internal/cloudapi/v2
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
..
compose.go Add password to User schema 2024-07-22 09:11:36 +02:00
compose_test.go Add password to User schema 2024-07-22 09:11:36 +02:00
errors.go cloudapi/v2: add details for non-service errors 2024-06-25 17:27:28 +02:00
errors_test.go cloudapi/v2: add test for errors 2024-06-25 17:27:28 +02:00
handler.go cloudapi/v2: include details in case internal error is set 2024-06-25 17:27:28 +02:00
imagerequest.go cloudapi: Add forgotten iot-simplified-installer to getDefaultTarget 2024-02-21 12:09:01 +01:00
imagerequest_test.go deps: update images to v0.54.0 2024-04-11 16:43:40 +02:00
middleware.go internal/auth: add TenantChannelMiddleware 2023-06-28 15:08:37 +02:00
openapi.v2.gen.go Add password to User schema 2024-07-22 09:11:36 +02:00
openapi.v2.yml Add password to User schema 2024-07-22 09:11:36 +02:00
server.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
v2_internal_test.go lint: Fix implicit memory aliasing in for loops 2023-09-21 16:56:54 +02:00
v2_koji_test.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
v2_multi_tenancy_test.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
v2_test.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00