func (c *dockerhub) DecideBaseURL() error {
	c.repoDetails.ServerAddress = dockerServerAddress
	if err := c.baseClient.DecideBaseURL(); err != nil {
		return errors.Trace(err)
	}
	url, err := url.Parse(c.repoDetails.ServerAddress)
	if err != nil {
		return errors.Trace(err)
	}
	url.Scheme = "https"
	addr := url.String()
	if !strings.HasSuffix(addr, "/") {
		// This "/" matters because docker uses url string for the credential key and expects the trailing slash.
		addr += "/"
	}
	c.repoDetails.ServerAddress = addr
	logger.Tracef("dockerhub repoDetails %s", c.repoDetails)
	return nil
}
// DecideBaseURL decides the API url to use.
DecideBaseURL decides the API url to use.
// DecideBaseURL decides the API url to use .
func (c *dockerhub) DecideBaseURL() error {
	c.repoDetails.ServerAddress = dockerServerAddress
	if err := c.baseClient.DecideBaseURL(); err != nil {
		return errors.Trace(err)
	}
	url, err := url.Parse(c.repoDetails.ServerAddress)
	if err != nil {
		return errors.Trace(err)
	}
	url.Scheme = "https"
	addr := url.String()
	if !strings.HasSuffix(addr, "/") {
		addr += "/"
	}
	c.repoDetails.ServerAddress = addr
	logger.Tracef("dockerhub repoDetails %s", c.repoDetails)
	return nil
}
func ( c * dockerhub ) DecideBaseURL ( ) error { c . repoDetails . ServerAddress = dockerServerAddress if err := c . baseClient . DecideBaseURL ( ) ; err != nil { return errors . Trace ( err ) } url , err := url . Parse ( c . repoDetails . ServerAddress ) if err != nil { return errors . Trace ( err ) } url . Scheme = " " addr := url . String ( ) if ! strings . HasSuffix ( addr , " " ) { addr += " " } c . repoDetails . ServerAddress = addr logger . Tracef ( " " , c . repoDetails ) return nil }
DecideBaseURL decides the API url to use.
DecideBaseURL decides the API url to use .
// This "/" matters because docker uses url string for the credential key and expects the trailing slash.