restartservice

package
v4.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

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