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 (
|
|
|
|
"golang.org/x/net/context"
|
|
|
|
|
2016-09-06 14:18:12 -04:00
|
|
|
"github.com/docker/docker/api/types"
|
2016-05-27 05:32:26 -04:00
|
|
|
"github.com/docker/docker/dockerversion"
|
|
|
|
)
|
|
|
|
|
|
|
|
// AuthenticateToRegistry checks the validity of credentials in authConfig
|
|
|
|
func (daemon *Daemon) AuthenticateToRegistry(ctx context.Context, authConfig *types.AuthConfig) (string, string, error) {
|
|
|
|
return daemon.RegistryService.Auth(ctx, authConfig, dockerversion.DockerUserAgent(ctx))
|
|
|
|
}
|