build(deps): bump github.com/docker/docker from 20.10.24 to 24.0.9 (#6099)
build(deps): bump github.com/docker/docker from 20.10.24+incompatible to 24.0.9+incompatible Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>
This commit is contained in:
@@ -59,7 +59,7 @@ func (lcs loginCredentialStore) SetRefreshToken(u *url.URL, service, token strin
|
||||
// loginWithTLS tries to login to the v2 registry server.
|
||||
// A custom tls.Config is used to override the default TLS configuration of the different registry endpoints.
|
||||
// The tls.Config is created using the provided certificate, certificate key and certificate authority.
|
||||
func (c *Client) loginWithTLS(ctx context.Context, service registry.Service, certFile, keyFile, caFile string, authConfig *types.AuthConfig, userAgent string) (string, string, error) {
|
||||
func (c *Client) loginWithTLS(ctx context.Context, service *registry.Service, certFile, keyFile, caFile string, authConfig *types.AuthConfig, userAgent string) (string, string, error) {
|
||||
tlsConfig, err := tlsconfig.Client(tlsconfig.Options{CAFile: caFile, CertFile: certFile, KeyFile: keyFile})
|
||||
if err != nil {
|
||||
return "", "", err
|
||||
@@ -91,7 +91,7 @@ func (c *Client) loginWithTLS(ctx context.Context, service registry.Service, cer
|
||||
}
|
||||
|
||||
// getEndpoints returns the endpoints for the given hostname.
|
||||
func (c *Client) getEndpoints(address string, service registry.Service) ([]registry.APIEndpoint, error) {
|
||||
func (c *Client) getEndpoints(address string, service *registry.Service) ([]registry.APIEndpoint, error) {
|
||||
var registryHostName = IndexHostname
|
||||
|
||||
if address != "" {
|
||||
@@ -178,7 +178,7 @@ func newTransport(tlsConfig *tls.Config) *http.Transport {
|
||||
}
|
||||
|
||||
func v2AuthHTTPClient(endpoint *url.URL, authTransport http.RoundTripper, modifiers []transport.RequestModifier, creds auth.CredentialStore, scopes []auth.Scope) (*http.Client, error) {
|
||||
challengeManager, _, err := registry.PingV2Registry(endpoint, authTransport)
|
||||
challengeManager, err := registry.PingV2Registry(endpoint, authTransport)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user