open-nomad/drivers/docker
Seth Hoenig db2347a86c cleanup: prevent leaks from time.After
This PR replaces use of time.After with a safe helper function
that creates a time.Timer to use instead. The new function returns
both a time.Timer and a Stop function that the caller must handle.

Unlike time.NewTimer, the helper function does not panic if the duration
set is <= 0.
2022-02-02 14:32:26 -06:00
..
cmd
docklog Apply some suggested fixes from staticcheck (#9598) 2020-12-10 07:29:18 -08:00
test-resources/docker drivers/docker: add support for STOPSIGNAL 2021-05-05 10:27:58 -07:00
util metrics: added mapped_file metric (#11500) 2022-01-10 15:35:19 -05:00
config.go Add support for setting pids_limit in docker plugin config. (#11526) 2021-12-21 13:31:34 -05:00
config_test.go gofmt all the files 2021-10-01 10:14:28 -04:00
coordinator.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
coordinator_test.go drivers/docker: fix flaky image coordinator test 2021-03-31 15:59:01 -04:00
driver.go Add support for setting pids_limit in docker plugin config. (#11526) 2021-12-21 13:31:34 -05:00
driver_darwin.go drivers/docker: move cgroups logic to linux build file 2021-04-15 10:39:11 -04:00
driver_darwin_test.go use allow/deny instead of the colored alternatives (#9019) 2020-10-12 08:47:05 -04:00
driver_default.go gofmt all the files 2021-10-01 10:14:28 -04:00
driver_linux.go driver/docker: ignore cpuset errors for short-lived tasks follow up (#10730) 2021-06-09 11:00:39 -04:00
driver_linux_test.go Add support for setting pids_limit in docker plugin config. (#11526) 2021-12-21 13:31:34 -05:00
driver_pre09.go Apply some suggested fixes from staticcheck (#9598) 2020-12-10 07:29:18 -08:00
driver_test.go Add support for --init to docker driver. 2021-10-15 12:53:25 -07:00
driver_unix_test.go test: update tests to properly use AllocDir 2021-10-19 10:49:07 -07:00
driver_windows.go drivers/docker: move cgroups logic to linux build file 2021-04-15 10:39:11 -04:00
driver_windows_test.go gofmt all the files 2021-10-01 10:14:28 -04:00
fingerprint.go Add support for setting pids_limit in docker plugin config. (#11526) 2021-12-21 13:31:34 -05:00
fingerprint_test.go
handle.go drivers/docker: add support for STOPSIGNAL 2021-05-05 10:27:58 -07:00
network.go allow configuration of Docker hostnames in bridge mode (#11173) 2021-09-16 08:13:09 +02:00
network_test.go allow configuration of Docker hostnames in bridge mode (#11173) 2021-09-16 08:13:09 +02:00
ports.go drivers/docker: support mapping multiple host ports to the same container port 2021-02-02 22:54:23 -05:00
ports_test.go drivers/docker: support mapping multiple host ports to the same container port 2021-02-02 22:54:23 -05:00
progress.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
progress_test.go
reconciler.go
reconciler_test.go
state.go
stats.go cleanup: prevent leaks from time.After 2022-02-02 14:32:26 -06:00
stats_test.go metrics: added mapped_file metric (#11500) 2022-01-10 15:35:19 -05:00
utils.go fix: load token in docker auth config 2021-07-22 22:27:29 +02:00
utils_test.go
utils_unix_test.go gofmt all the files 2021-10-01 10:14:28 -04:00
utils_windows_test.go gofmt all the files 2021-10-01 10:14:28 -04:00
win32_volume_parse.go