aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/fsouza/go-dockerclient/cancelable_go14.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/fsouza/go-dockerclient/cancelable_go14.go')
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/cancelable_go14.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/vendor/github.com/fsouza/go-dockerclient/cancelable_go14.go b/vendor/github.com/fsouza/go-dockerclient/cancelable_go14.go
deleted file mode 100644
index 3c20398..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/cancelable_go14.go
+++ /dev/null
@@ -1,19 +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
7package docker
8
9import "net/http"
10
11func cancelable(client *http.Client, req *http.Request) func() {
12 return func() {
13 if rc, ok := client.Transport.(interface {
14 CancelRequest(*http.Request)
15 }); ok {
16 rc.CancelRequest(req)
17 }
18 }
19}