postgresflex

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2026 License: MIT Imports: 3 Imported by: 0

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

New returns a Postgres Flex handler backed by db.

func (*Handler) Matches

func (*Handler) Matches(r *http.Request) bool

Matches returns true for ARM Microsoft.DBforPostgreSQL/flexibleServers paths.

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP routes the request based on path shape and method.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL