Documentation ¶
Index ¶
- func CreateFailover(request *msgs.CreateFailoverRequest, ns, pgouser string) msgs.CreateFailoverResponse
- func CreateFailoverHandler(w http.ResponseWriter, r *http.Request)
- func QueryFailover(name, ns string) msgs.QueryFailoverResponse
- func QueryFailoverHandler(w http.ResponseWriter, r *http.Request)
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.
Click to show internal directories.
Click to hide internal directories.