backupservice

package
v4.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBackup

func CreateBackup(request *msgs.CreateBackupRequest, ns, pgouser string) msgs.CreateBackupResponse
CreateBackup ...

pgo backup mycluster pgo backup all pgo backup --selector=name=mycluster

func CreateBackupHandler

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

CreateBackupHandler ... pgo backup all pgo backup --selector=name=mycluster pgo backup mycluster

func DeleteBackup

func DeleteBackup(clusterName, ns string) msgs.DeleteBackupResponse

DeleteBackup ...

func DeleteBackupHandler

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

DeleteBackupHandler ... returns a ShowBackupResponse

func Restore

Restore takes a PgbasebackupRestoreRequest, creates the pgtask's needed to initiate the restore of a cluster using a pg_basebackup backup, and then returns a PgbasebackupRestoreResponse

func RestoreHandler

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

RestoreHandler takes a GET request for URL path '/pgbasebackuprestore', calls the required business logic to perform a pg_basebackup restore, and then returns the appropriate response

func ShowBackup

func ShowBackup(name, ns string) msgs.ShowBackupResponse

ShowBackup ...

func ShowBackupHandler

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

ShowBackupHandler ... returns a ShowBackupResponse

Types

This section is empty.

Jump to

Keyboard shortcuts

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