code: func (c *fabricCAAdapter) GetAffiliation(key core.Key, cert []byte, affiliation, caname string) (*api.AffiliationResponse, error) {
  	logger.Debugf("Retrieving affiliation [%s]", affiliation)
  
  	registrar, err := c.newIdentity(key, cert)
  	if err != nil {
  		return nil, errors.Wrap(err, "failed to create CA signing identity")
  	}
  
  	r, err := registrar.GetAffiliation(affiliation, caname)
  	if err != nil {
  		return nil, errors.Wrap(err, "failed to get affiliation")
  	}
  
  	resp := &api.AffiliationResponse{CAName: r.CAName, AffiliationInfo: api.AffiliationInfo{}}
  	err = fillAffiliationInfo(&resp.AffiliationInfo, r.Name, r.Affiliations, r.Identities)
  
  	return resp, err
  }
docs: // GetAffiliation returns information about the requested affiliation