Documentation
¶
Overview ¶
Package postgresflex implements the Azure Database for PostgreSQL Flexible Server (Microsoft.DBforPostgreSQL/flexibleServers) ARM REST API as a server.Handler. Real github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers clients configured with a custom endpoint hit this handler the same way they hit management.azure.com.
MVP coverage:
PUT .../providers/Microsoft.DBforPostgreSQL/flexibleServers/{name} — Create
GET .../providers/Microsoft.DBforPostgreSQL/flexibleServers/{name} — Get
PATCH .../providers/Microsoft.DBforPostgreSQL/flexibleServers/{name} — Update
DELETE .../providers/Microsoft.DBforPostgreSQL/flexibleServers/{name} — Delete
GET .../providers/Microsoft.DBforPostgreSQL/flexibleServers — List by RG
POST .../providers/Microsoft.DBforPostgreSQL/flexibleServers/{name}/start — Start
POST .../providers/Microsoft.DBforPostgreSQL/flexibleServers/{name}/stop — Stop
POST .../providers/Microsoft.DBforPostgreSQL/flexibleServers/{name}/restart — Restart
Mutating ops return 200 OK with the resource body inline so the SDK's LRO poller terminates on the first response.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler serves Microsoft.DBforPostgreSQL ARM requests against a relationaldb driver.
func New ¶
func New(db rdsdriver.RelationalDB) *Handler
New returns a Postgres Flex handler backed by db.
Click to show internal directories.
Click to hide internal directories.