2018-02-05 16:05:59 -05:00
|
|
|
package daemon // import "github.com/docker/docker/daemon"
|
2016-05-27 05:32:26 -04:00
|
|
|
|
|
|
|
import (
|
2018-04-19 18:30:59 -04:00
|
|
|
"context"
|
2016-05-27 05:32:26 -04:00
|
|
|
|
2022-03-03 04:30:47 -05:00
|
|
|
"github.com/docker/docker/api/types/registry"
|
2016-05-27 05:32:26 -04:00
|
|
|
"github.com/docker/docker/dockerversion"
|
|
|
|
)
|
|
|
|
|
|
|
|
// AuthenticateToRegistry checks the validity of credentials in authConfig
|
2022-03-03 04:30:47 -05:00
|
|
|
func (daemon *Daemon) AuthenticateToRegistry(ctx context.Context, authConfig *registry.AuthConfig) (string, string, error) {
|
2022-03-02 05:43:33 -05:00
|
|
|
return daemon.registryService.Auth(ctx, authConfig, dockerversion.DockerUserAgent(ctx))
|
2016-05-27 05:32:26 -04:00
|
|
|
}
|