spiegel_podman/pkg/bindings/test
Moritz "WanzenBug" Wanzenböck 5df883e87d bindings: reuse context for API requests
One of the main uses of context.Context is to provide cancellation for
go-routines, including API requests. While all user-facing bindings
already used a context parameter, it was only used to pass the client
information around.

This commit changes the internal DoRequest wrapper to take an additional
context argument, and pass that to the http request. Previously, the context
was derived from context.Background(), which made it impossible to cancel
once started.

All the convenience wrappers already supported the context parameter, so the
only user facing change is that cancelling those context now works as one
would expect.

Signed-off-by: Moritz "WanzenBug" Wanzenböck <moritz@wanzenbug.xyz>
2021-11-15 15:42:39 +01:00
..
fixture Add guard for BuildOptions.CommonBuildOpts 2021-09-30 14:30:06 -07:00
attach_test.go Fix file descriptor leaks and add test 2021-08-24 16:36:10 -07:00
auth_test.go bump go module to v3 2021-02-22 09:03:51 +01:00
common_test.go Handle HTTP 409 error messages properly for Pod actions 2021-11-02 12:28:52 +01:00
connection_test.go bindings: reuse context for API requests 2021-11-15 15:42:39 +01:00
containers_test.go Fix bindings container log test 2021-11-04 17:04:27 +01:00
create_test.go bump go module to v3 2021-02-22 09:03:51 +01:00
exec_test.go Use version package to track all versions 2021-03-03 17:03:19 -07:00
generator_test.go Enhance bindings for IDE hints 2021-09-14 07:47:24 -07:00
images_test.go Add guard for BuildOptions.CommonBuildOpts 2021-09-30 14:30:06 -07:00
info_test.go Use version package to track all versions 2021-03-03 17:03:19 -07:00
manifests_test.go bump go module to v3 2021-02-22 09:03:51 +01:00
networks_test.go Wire network interface into libpod 2021-09-15 20:00:20 +02:00
pods_test.go Handle HTTP 409 error messages properly for Pod actions 2021-11-02 12:28:52 +01:00
resource_test.go Fix file descriptor leaks and add test 2021-08-24 16:36:10 -07:00
secrets_test.go bump go module to v3 2021-02-22 09:03:51 +01:00
system_test.go migrate Podman to containers/common/libimage 2021-05-05 11:30:12 +02:00
test_suite_test.go WIP V2 attach bindings and test 2020-05-13 11:49:17 -07:00
volumes_test.go Add network bindings tests: remove and list 2021-04-15 22:41:06 +02:00