diff options
author | Alex Pilon <apilon@hashicorp.com> | 2019-02-22 18:24:22 -0500 |
---|---|---|
committer | Alex Pilon <apilon@hashicorp.com> | 2019-02-22 18:24:22 -0500 |
commit | 07971ca38143c5faf951d152fba370ddcbe26ad5 (patch) | |
tree | 09af1ef91c782de921efc83113907184c8adecee /vendor/github.com/fsouza/go-dockerclient/cancelable.go | |
parent | 9b6f05970a001f683b9c886c652de81f00cd5f00 (diff) | |
download | terraform-provider-statuscake-07971ca38143c5faf951d152fba370ddcbe26ad5.tar.gz terraform-provider-statuscake-07971ca38143c5faf951d152fba370ddcbe26ad5.tar.zst terraform-provider-statuscake-07971ca38143c5faf951d152fba370ddcbe26ad5.zip |
deps: use go modules for dep mgmt
run go mod tidy
remove govendor from makefile and travis config
set appropriate env vars for go modules
Diffstat (limited to 'vendor/github.com/fsouza/go-dockerclient/cancelable.go')
-rw-r--r-- | vendor/github.com/fsouza/go-dockerclient/cancelable.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/vendor/github.com/fsouza/go-dockerclient/cancelable.go b/vendor/github.com/fsouza/go-dockerclient/cancelable.go deleted file mode 100644 index 375fbd1..0000000 --- a/vendor/github.com/fsouza/go-dockerclient/cancelable.go +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | // Copyright 2016 go-dockerclient authors. All rights reserved. | ||
2 | // Use of this source code is governed by a BSD-style | ||
3 | // license that can be found in the LICENSE file. | ||
4 | |||
5 | // +build go1.5 | ||
6 | |||
7 | package docker | ||
8 | |||
9 | import "net/http" | ||
10 | |||
11 | func cancelable(client *http.Client, req *http.Request) func() { | ||
12 | ch := make(chan struct{}) | ||
13 | req.Cancel = ch | ||
14 | return func() { | ||
15 | close(ch) | ||
16 | } | ||
17 | } | ||