code: func ValidateSocketPath(socket string, fldPath *field.Path) field.ErrorList {
  	allErrs := field.ErrorList{}
  
  	u, err := url.Parse(socket)
  	if err != nil {
  		return append(allErrs, field.Invalid(fldPath, socket, fmt.Sprintf("URL parsing error: %v", err)))
  	}
  
  	if u.Scheme == "" {
  		if !filepath.IsAbs(u.Path) {
  			return append(allErrs, field.Invalid(fldPath, socket, fmt.Sprintf("path is not absolute: %s", socket)))
  		}
  	} else if u.Scheme != kubeadmapiv1beta2.DefaultUrlScheme {
  		return append(allErrs, field.Invalid(fldPath, socket, fmt.Sprintf("URL scheme %s is not supported", u.Scheme)))
  	}
  
  	return allErrs
  }
docs: // ValidateSocketPath validates format of socket path or url