mirror of
https://github.com/containers/podman.git
synced 2025-06-01 17:17:47 +08:00
[NO TESTS NEEDED] Vendor in containers/buildah v1.20.0
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
5
vendor/github.com/fsouza/go-dockerclient/container_kill.go
generated
vendored
5
vendor/github.com/fsouza/go-dockerclient/container_kill.go
generated
vendored
@ -2,6 +2,7 @@ package docker
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
@ -27,8 +28,8 @@ func (c *Client) KillContainer(opts KillContainerOptions) error {
|
||||
path := "/containers/" + opts.ID + "/kill" + "?" + queryString(opts)
|
||||
resp, err := c.do(http.MethodPost, path, doOptions{context: opts.Context})
|
||||
if err != nil {
|
||||
e, ok := err.(*Error)
|
||||
if !ok {
|
||||
var e *Error
|
||||
if !errors.As(err, &e) {
|
||||
return err
|
||||
}
|
||||
switch e.Status {
|
||||
|
Reference in New Issue
Block a user