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

Method Provision

controlplane/provisioning/api.go:79–79  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 2

provisionWarehouseMethod · 0.65
executeProvisionMethod · 0.65

Implementers 2

gormStorecontrolplane/provisioning/store.go
fakeStorecontrolplane/provisioning/api_test.go

Calls

no outgoing calls

Tested by

no test coverage detected