MCPcopy Create free account
hub / github.com/PostHog/duckgres / CreateOrg

Method CreateOrg

controlplane/admin/api_test.go:43–51  ·  view source on GitHub ↗
(org *configstore.Org)

Source from the content-addressed store, hash-verified

41 teams: make(map[string]map[int64]*configstore.OrgTeam),
42 grants: make(map[string][]*configstore.ServiceGrant),
43 }
44}
45
46func (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
54func (s *fakeAPIStore) CreateOrg(org *configstore.Org, teamID int64, schemaName string) error {

Callers

nothing calls this directly

Calls 1

copyOrgFunction · 0.85

Tested by

no test coverage detected