github.com/gravitational/moby@v1.13.1/daemon/auth.go (about)

     1  package daemon
     2  
     3  import (
     4  	"golang.org/x/net/context"
     5  
     6  	"github.com/docker/docker/api/types"
     7  	"github.com/docker/docker/dockerversion"
     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  }