code: func (c *CAClientImpl) GetAllAffiliations(caname string) (*api.AffiliationResponse, error) {
  	if c.adapter == nil {
  		return nil, fmt.Errorf("no CAs configured for organization %s", c.orgName)
  	}
  
  	registrar, err := c.getRegistrar(c.registrar.EnrollID, c.registrar.EnrollSecret)
  	if err != nil {
  		return nil, err
  	}
  
  	return c.adapter.GetAllAffiliations(registrar.PrivateKey(), registrar.EnrollmentCertificate(), caname)
  }
docs: // GetAllAffiliations returns all affiliations that the caller is authorized to see