(org *configstore.Org)
| 41 | teams: make(map[string]map[int64]*configstore.OrgTeam), |
| 42 | grants: make(map[string][]*configstore.ServiceGrant), |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | func (s *fakeAPIStore) ListOrgs() ([]configstore.Org, error) { |
| 47 | orgs := make([]configstore.Org, 0, len(s.orgs)) |
| 48 | for _, org := range s.orgs { |
| 49 | orgs = append(orgs, *copyOrg(org)) |
| 50 | } |
| 51 | return orgs, nil |
| 52 | } |
| 53 | |
| 54 | func (s *fakeAPIStore) CreateOrg(org *configstore.Org, teamID int64, schemaName string) error { |