code: func (url *DockerRegistryURL) parsePath(s string) error {
  	s, err := cleanPath(s)
  	if err != nil {
  		return err
  	}
  
  	if s == "" {
  		return nil
  	}
  
  	imageName, tag, err := parseTag(s)
  	if err != nil {
  		return err
  	}
  	url.Tag = tag
  	url.ImageName = imageName
  
  	return nil
  }
docs: // parsePath parses the Registry URL path (after <scheme>://<host>:<port>)
  // into namespace, repo, and tag. All of these are optional parts of the
  // path.