github.com/portworx/docker@v1.12.1/daemon/auth.go (about) 1 package daemon 2 3 import ( 4 "golang.org/x/net/context" 5 6 "github.com/docker/docker/dockerversion" 7 "github.com/docker/engine-api/types" 8 ) 9 10 // AuthenticateToRegistry checks the validity of credentials in authConfig 11 func (daemon *Daemon) AuthenticateToRegistry(ctx context.Context, authConfig *types.AuthConfig) (string, string, error) { 12 return daemon.RegistryService.Auth(ctx, authConfig, dockerversion.DockerUserAgent(ctx)) 13 }