Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryRestart ¶
func QueryRestart(clusterName, namespace string) msgs.QueryRestartResponse
QueryRestart queries a cluster for instances available to use as as targets for a PostgreSQL restart. pgo restart mycluster --query
func QueryRestartHandler ¶
func QueryRestartHandler(w http.ResponseWriter, r *http.Request)
QueryRestartHandler handles requests to query a cluster for instances available to use as as targets for a PostgreSQL restart. pgo restart mycluster --query
func Restart ¶
func Restart(request *msgs.RestartRequest, pgouser string) msgs.RestartResponse
Restart restarts either all PostgreSQL databases within a PostgreSQL cluster (i.e. the primary and all replicas) or if targets are specified, just those targets. pgo restart mycluster pgo restart mycluster --target=mycluster-abcd
func RestartHandler ¶
func RestartHandler(w http.ResponseWriter, r *http.Request)
RestartHandler handles requests to the "restart" endpoint. pgo restart mycluster pgo restart mycluster --target=mycluster-abcd
Types ¶
This section is empty.