open-nomad/api
Tim Gross 1724765096
api: use cleanhttp.DefaultPooledTransport for default API client (#12492)
We expect every Nomad API client to use a single connection to any
given agent, so take advantage of keep-alive by switching the default
transport to `DefaultPooledClient`. Provide a facility to close idle
connections for testing purposes.

Restores the previously reverted #12409


Co-authored-by: Ben Buzbee <bbuzbee@cloudflare.com>
2022-04-06 16:14:53 -04:00
..
contexts
internal/testutil ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
acl.go
acl_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
agent.go
agent_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
allocations.go
allocations_exec.go
allocations_test.go Merge branch 'main' into f-1.3-boogie-nights 2022-03-23 09:41:25 +01:00
api.go api: use cleanhttp.DefaultPooledTransport for default API client (#12492) 2022-04-06 16:14:53 -04:00
api_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
compose_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
constraint.go
constraint_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
consul.go api: move serviceregistration client to servics to match CLI. 2022-03-24 09:08:45 +01:00
consul_test.go api: move serviceregistration client to servics to match CLI. 2022-03-24 09:08:45 +01:00
csi.go CSI: Add secrets flag support for delete volume (#11245) 2022-04-05 08:59:11 -04:00
csi_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
deployments.go
evaluations.go api: add related evals to eval details (#12305) 2022-03-17 13:56:14 -04:00
evaluations_test.go Merge pull request #12313 from hashicorp/purge-parallel-2 2022-03-17 13:48:37 -05:00
event_stream.go events: add API helpers for service events stream topics. 2022-04-05 08:26:02 +01:00
event_stream_test.go events: add API helpers for service events stream topics. 2022-04-05 08:26:02 +01:00
fs.go Ensure to close StreamFrame channel (#12248) 2022-03-28 10:28:23 -04:00
fs_test.go raw_exec: fixup review comments 2022-04-05 15:21:28 -05:00
go.mod build(deps): bump github.com/stretchr/testify from 1.7.0 to 1.7.1 (#12306) 2022-03-23 19:12:51 -04:00
go.sum build(deps): bump github.com/stretchr/testify from 1.7.0 to 1.7.1 (#12306) 2022-03-23 19:12:51 -04:00
ioutil.go
ioutil_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
jobs.go Add unknown to TaskGroupSummary (#12269) 2022-04-05 17:12:23 -04:00
jobs_test.go Merge branch 'main' into f-1.3-boogie-nights 2022-03-23 09:41:25 +01:00
namespace.go
namespace_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
nodes.go raw_exec: fixup review comments 2022-04-05 15:21:28 -05:00
nodes_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
operator.go
operator_autopilot.go
operator_ent_test.go api: fix ENT-only test imports for moved testutil package (#12320) 2022-03-18 10:12:28 -04:00
operator_metrics.go
operator_metrics_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
operator_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
quota.go
quota_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
raw.go
recommendations.go
regions.go
regions_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
resources.go
resources_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
scaling.go
scaling_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
search.go
search_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
sentinel.go
sentinel_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
services.go api: move serviceregistration client to servics to match CLI. 2022-03-24 09:08:45 +01:00
services_test.go api: move serviceregistration client to servics to match CLI. 2022-03-24 09:08:45 +01:00
status.go
status_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
system.go
system_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00
tasks.go MaxClientDisconnect Jobspec checklist (#12177) 2022-04-05 17:12:23 -04:00
tasks_test.go Support Vault entity aliases (#12449) 2022-04-05 14:18:10 -04:00
util_test.go
utils.go
utils_test.go ci: use serial testing for api in CI 2022-03-17 08:35:01 -05:00