()
| 160 | |
| 161 | // Overview |
| 162 | r.GET("/status", h.getClusterStatus) |
| 163 | } |
| 164 | |
| 165 | type apiStore interface { |
| 166 | ListOrgs() ([]configstore.Org, error) |
| 167 | // CreateOrg creates the org row AND its required first team row (plain — |
| 168 | // no billing semantics) in one transaction; the handler validates |
| 169 | // teamID/schemaName before calling. |
| 170 | CreateOrg(org *configstore.Org, teamID int64, schemaName string) error |
| 171 | GetOrg(name string) (*configstore.Org, error) |