distribution/registry
Sebastiaan van Stijn c8ba5d7081
registry/client: combine SuccessStatus and HandleErrorResponse
The SuccessStatus acted on the response's status code, and was used to return
early, before checking the same status code with HandleErrorResponse.

This patch combines both functions into a HandleHTTPResponseError, which
returns an error for "non-success" status-codes, which simplifies handling
of responses, and makes some logic slightly more idiomatic.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-09-08 14:40:41 +02:00
..
api deprecate reference package, migrate to github.com/distribution/reference 2023-08-31 15:47:06 +02:00
auth ignore SA1019: ac.(*accessController).rootCerts.Subjects has been deprecated 2023-05-09 16:04:17 +02:00
client registry/client: combine SuccessStatus and HandleErrorResponse 2023-09-08 14:40:41 +02:00
handlers Remove libtrust from handler tests 2023-09-05 08:41:29 +01:00
listener [Server] Listen and serve on a unix socket 2015-05-11 16:00:14 +03:00
middleware Merge pull request #2752 from davidswu/registry-driver-middleware 2023-06-21 10:06:13 -07:00
proxy Enable prealloc linter 2023-09-03 22:41:51 +01:00
storage Merge pull request #4037 from milosgajdos/enable-prealloc 2023-09-04 16:57:29 +01:00
doc.go Move initialization code from main.go to the registry package 2015-09-09 14:39:31 -07:00
registry.go Remove bugsnag 2023-08-21 10:24:36 +02:00
registry_test.go Enable bodyclose linter 2023-08-19 09:45:44 +01:00
root.go feat(storage)!: remove schema1 except manifeststore_test 2023-08-28 12:44:46 +02:00