code: func (c *CAClientImpl) GetIdentity(id, caname string) (*api.IdentityResponse, error) {
  
  	if c.adapter == nil {
  		return nil, fmt.Errorf("no CAs configured for organization: %s", c.orgName)
  	}
  
  	// Checke required parameters (ID and affiliation)
  	if id == "" {
  		return nil, errors.New("id is required")
  	}
  
  	registrar, err := c.getRegistrar(c.registrar.EnrollID, c.registrar.EnrollSecret)
  	if err != nil {
  		return nil, err
  	}
  
  	return c.adapter.GetIdentity(registrar.PrivateKey(), registrar.EnrollmentCertificate(), id, caname)
  }
docs: // GetIdentity retrieves identity information.
  //  Parameters:
  //  id is required identity id
  //
  //  Returns:
  //  Returns identity information