mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-08 23:23:59 -06:00
1b6abe6f43
Downgrade go-dockerclient to before it used the docker packages. Remove new docker packages from vendor. Remove gotty client from vendor, which can't build on solaris at all.
18 lines
364 B
Go
18 lines
364 B
Go
// Copyright 2016 go-dockerclient authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// +build go1.5
|
|
|
|
package docker
|
|
|
|
import "net/http"
|
|
|
|
func cancelable(client *http.Client, req *http.Request) func() {
|
|
ch := make(chan struct{})
|
|
req.Cancel = ch
|
|
return func() {
|
|
close(ch)
|
|
}
|
|
}
|