code: func (s *SetupService) IsOnboarding(ctx context.Context) (bool, error) {
  	u, err := newURL(s.Addr, setupPath)
  	if err != nil {
  		return false, err
  	}
  	req, err := http.NewRequest("GET", u.String(), nil)
  	if err != nil {
  		return false, err
  	}
  	hc := newClient(u.Scheme, s.InsecureSkipVerify)
  	resp, err := hc.Do(req)
  	if err != nil {
  		return false, err
  	}
  	if err := CheckError(resp); err != nil {
  		return false, err
  	}
  	defer resp.Body.Close()
  	var ir isOnboardingResponse
  	if err := json.NewDecoder(resp.Body).Decode(&ir); err != nil {
  		return false, err
  	}
  	return ir.Allowed, nil
  }
docs: // IsOnboarding determine if onboarding request is allowed.