failoverservice

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFailover

func CreateFailover(request *msgs.CreateFailoverRequest, ns, pgouser string) msgs.CreateFailoverResponse

CreateFailover is the API endpoint for triggering a manual failover of a cluster. It performs this function inline, i.e. it does not trigger any asynchronous methods.

pgo failover mycluster

func CreateFailoverHandler

func CreateFailoverHandler(w http.ResponseWriter, r *http.Request)

CreateFailoverHandler ... pgo failover mycluster

func QueryFailover

func QueryFailover(name, ns string) msgs.QueryFailoverResponse

QueryFailover provides the user with a list of replicas that can be failed over to pgo failover mycluster --query

func QueryFailoverHandler

func QueryFailoverHandler(w http.ResponseWriter, r *http.Request)

QueryFailoverHandler ... pgo failover mycluster --query

Types

This section is empty.

Jump to

Keyboard shortcuts

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