1
0
mirror of https://github.com/taigrr/wtf synced 2026-04-01 00:18:44 -07:00

Update go.mod, go.sum and vendor

Running `go mod vendor` generates new additions and deletions.
This commit is contained in:
Indradhanush Gupta
2019-09-14 16:23:09 +05:30
parent 1ee3e6d213
commit f737c53864
660 changed files with 73712 additions and 17787 deletions

View File

@@ -0,0 +1,17 @@
package client
import (
"net/url"
"golang.org/x/net/context"
)
// ContainerKill terminates the container process but does not remove the container from the docker host.
func (cli *Client) ContainerKill(ctx context.Context, containerID, signal string) error {
query := url.Values{}
query.Set("signal", signal)
resp, err := cli.post(ctx, "/containers/"+containerID+"/kill", query, nil, nil)
ensureReaderClosed(resp)
return err
}