Provision is the all-or-nothing entrypoint for POST /provision — wraps warehouse + root-user writes in a single configstore transaction so partial failure rolls back cleanly. Use this for the public provision endpoint; the older per-step methods below are kept for the standalone surfaces (reset-pass
(req ProvisionRequest)
| 77 | // per-step methods below are kept for the standalone surfaces |
| 78 | // (reset-password, enable/disable trino on an existing org). |
| 79 | Provision(req ProvisionRequest) error |
| 80 | CreatePendingWarehouse(orgID, databaseName string, warehouse *configstore.ManagedWarehouse) error |
| 81 | CreateOrgUser(orgID, username, passwordHash string) error |
| 82 | // GetOrgUser reads one login. Used to preflight the Trino opt-in: an org |