mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
Update vendor containers/(common,storage,buildah,image)
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
13
vendor/github.com/fsouza/go-dockerclient/auth.go
generated
vendored
13
vendor/github.com/fsouza/go-dockerclient/auth.go
generated
vendored
@ -6,6 +6,7 @@ package docker
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"encoding/base64"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
@ -262,11 +263,21 @@ type AuthStatus struct {
|
||||
//
|
||||
// See https://goo.gl/6nsZkH for more details.
|
||||
func (c *Client) AuthCheck(conf *AuthConfiguration) (AuthStatus, error) {
|
||||
return c.AuthCheckWithContext(conf, context.TODO())
|
||||
}
|
||||
|
||||
// AuthCheckWithContext validates the given credentials. It returns nil if successful. The context object
|
||||
// can be used to cancel the request.
|
||||
//
|
||||
// For Docker API versions >= 1.23, the AuthStatus struct will be populated, otherwise it will be empty.
|
||||
//
|
||||
// See https://goo.gl/6nsZkH for more details.
|
||||
func (c *Client) AuthCheckWithContext(conf *AuthConfiguration, ctx context.Context) (AuthStatus, error) {
|
||||
var authStatus AuthStatus
|
||||
if conf == nil {
|
||||
return authStatus, errors.New("conf is nil")
|
||||
}
|
||||
resp, err := c.do(http.MethodPost, "/auth", doOptions{data: conf})
|
||||
resp, err := c.do(http.MethodPost, "/auth", doOptions{data: conf, context: ctx})
|
||||
if err != nil {
|
||||
return authStatus, err
|
||||
}
|
||||
|
1
vendor/github.com/fsouza/go-dockerclient/client_unix.go
generated
vendored
1
vendor/github.com/fsouza/go-dockerclient/client_unix.go
generated
vendored
@ -3,7 +3,6 @@
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !windows
|
||||
// +build !windows
|
||||
|
||||
package docker
|
||||
|
||||
|
Reference in New Issue
Block a user